- Issue created by @acbramley
- Merge request !5059Allow filtering unpublished blocks with access block library permission β (Closed) created by acbramley
- last update
about 1 year ago 30,420 pass - Status changed to Needs review
about 1 year ago 12:47am 20 October 2023 - π¦πΊAustralia acbramley
Confirmed this fixes testCollection failures in π Information disclosure access bypass for revision log fields when the JSON:API module is enabled Fixed , I'm guessing we'll need additional tests though?
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
If we remove 'administer block content' from the list in the test and this still passes that would pass as test coverage right?
48:58 45:55 Running- π¦πΊAustralia acbramley
Yes, great point! So just porting the test's permissions changes from 3395404 into here.
- First commit to issue fork.
- last update
about 1 year ago 30,425 pass - Status changed to RTBC
about 1 year ago 3:59pm 20 October 2023 - πΊπΈUnited States smustgrave
Only rebased to run test-only feature
1) Drupal\Tests\jsonapi\Functional\BlockContentTest::testCollection The 'data' member was not as expected. Failed asserting that two arrays are equal. --- Expected +++ Actual @@ @@ Array ( - 0 => Array (...) ) /build
Know doesn't fully help without the comparison but test did correctly fail.
- last update
about 1 year ago 30,426 pass - π¦πΊAustralia acbramley
@smustgrave thank you! And yes, the failure message is shocking for those tests π . Have a look at π Tests extending jsonapi's ResourceTestBase are extremely hard to debug/maintain/deal with Active for my frustrations
-
longwave β
committed 0edb2442 on 10.1.x
Issue #3395431 by acbramley, smustgrave, larowlan: BlockContent JSON:API...
-
longwave β
committed 0edb2442 on 10.1.x
-
longwave β
committed 30ac531e on 10.2.x
Issue #3395431 by acbramley, smustgrave, larowlan: BlockContent JSON:API...
-
longwave β
committed 30ac531e on 10.2.x
-
longwave β
committed 257191b8 on 11.x
Issue #3395431 by acbramley, smustgrave, larowlan: BlockContent JSON:API...
-
longwave β
committed 257191b8 on 11.x
- Status changed to Fixed
about 1 year ago 8:25am 23 October 2023 - π¬π§United Kingdom longwave UK
Backported to 10.1.x as a bug fix to assist with a future security improvement.
Committed and pushed 257191b8a2 to 11.x and 30ac531e74 to 10.2.x and 0edb2442ad to 10.1.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.