Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Respect psr buffer streams and use them for string streams #3333

Draft
wants to merge 2 commits into
base: 9.0
Choose a base branch
from

Conversation

mhsdesign
Copy link
Member

the idea is that this is more light weight instead of creating a memory resource.

see https://neos-project.slack.com/archives/C050KKBEB/p1710320388608069

Originally meant as part of #3286, but we dont support buffer streams yet fully in all places.

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

The `BufferStream` is simpler as it operates just on a simple string
```
Cannot seek a BufferStream

GuzzleHttp\Psr7\BufferStream::seek(0)
GuzzleHttp\Psr7\BufferStream::rewind()
Neos\Flow\Mvc\ActionResponse::getContent()
Neos\FluidAdaptor\Core\Widget\AbstractWidgetViewHelper::initiateSubRequest(
```
@mhsdesign mhsdesign force-pushed the task/usePsrBufferStreamForStringStreams branch from d640fc6 to a7ff07b Compare April 24, 2024 19:02
@mhsdesign mhsdesign changed the title TASK: Use psr buffer stream for string streams BUGFIX: Respect psr buffer streams and use them for string streams Jun 22, 2024
@github-actions github-actions bot added the Bug label Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant