Problem/Motivation

This is a followup of #2767269: LocalReadOnlyStream must declare itself not writeable. We made there LocalReadOnlyStream return the correct type in terms of writability but we forgot to add the StreamWrapperInterface::LOCAL bit to the stream wrapper type composite bit pack. Right now LocalReadOnlyStream doesn't say that is a local stream wrapper.

The attached patch proves the bug.

Proposed resolution

Add the StreamWrapperInterface::LOCAL to the returned value of LocalReadOnlyStream::getType().

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

claudiu.cristea created an issue. See original summary.

claudiu.cristea’s picture

claudiu.cristea’s picture

Version: 8.2.x-dev » 8.1.x-dev

And it's a 8.1.x issue.

Status: Needs review » Needs work

The last submitted patch, localreadonlystream_local_bit-test-only.patch, failed testing.

claudiu.cristea’s picture

Status: Needs work » Needs review
StatusFileSize
new1.27 KB
new1.28 KB

Big proved. I posted 2 patches because in 8.2.x the test has moved to a phpunit KernelTestBase.

Status: Needs review » Needs work

The last submitted patch, 5: 2770339-4-8.2.x.patch, failed testing.

claudiu.cristea’s picture

Status: Needs work » Needs review
StatusFileSize
new1.28 KB

Ouch, 8.2.x should be tested with 8.2.x :)

amateescu’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 019b604 and pushed to 8.1.x. Thanks!
Committed 3bda71d and pushed to 8.2.x. Thanks!

  • alexpott committed 3bda71d on 8.2.x
    Issue #2770339 by claudiu.cristea: LocalReadOnlyStream must declare...

  • alexpott committed 019b604 on 8.1.x
    Issue #2770339 by claudiu.cristea: LocalReadOnlyStream must declare...

  • alexpott committed 3bda71d on 8.3.x
    Issue #2770339 by claudiu.cristea: LocalReadOnlyStream must declare...

  • alexpott committed 3bda71d on 8.3.x
    Issue #2770339 by claudiu.cristea: LocalReadOnlyStream must declare...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.