- ๐จ๐ฆCanada joseph.olstad
I just hit this, patch works great thanks! :)
Without the patch, get a WSOD with an exception as described above for certain books as described in the issue summary.
This would be a great fix to get into core. It would probably be not too hard to write a test for this case.
- Status changed to Needs review
almost 2 years ago 12:23pm 15 May 2023 - last update
almost 2 years ago 29,388 pass - last update
almost 2 years ago 29,372 pass, 2 fail - ๐ฎ๐ณIndia ranjith_kumar_k_u Kerala
Added test to show the issue, please review
The last submitted patch, 7: 3260888-7-test-only.patch, failed testing. View results โ
- ๐ซ๐ทFrance andypost
+++ b/core/modules/book/tests/src/Functional/BookTest.php @@ -461,6 +461,14 @@ public function testBookDelete() { + $this->assertSession()->responseNotContains('The website encountered an unexpected error. Please try again later'); + $this->assertSession()->statusCodeEquals(200);
Better to check for what was rendered instead of missing error message which may change in future
- Status changed to Needs work
almost 2 years ago 10:58pm 29 May 2023 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
I think we can probably do
$node?->access()
now too-
+++ b/core/modules/book/tests/src/Functional/BookTest.php @@ -461,6 +461,14 @@ public function testBookDelete() { + // Set the child page book id to deleted book id, and visit the child page. + $node = $node_storage->load($nodes[0]->id()); + $node->book['bid'] = $nodes[0]->book['bid']; + $node->save();
this feels kind of artificial
do we have any details of how this bug can be encountered by correct use of APIs?
-
+++ b/core/modules/book/tests/src/Functional/BookTest.php @@ -461,6 +461,14 @@ public function testBookDelete() { + $this->assertSession()->responseNotContains('The website encountered an unexpected error. Please try again later');
Let's remove this
-
+++ b/core/modules/book/tests/src/Functional/BookTest.php @@ -461,6 +461,14 @@ public function testBookDelete() { + $this->assertSession()->statusCodeEquals(200);
Let's also add a positive assert for e.g. the node title or something (edit: what andypost said)
-
- Status changed to Needs review
almost 2 years ago 11:27am 31 May 2023 - last update
almost 2 years ago 29,402 pass - ๐ฎ๐ณIndia ranjith_kumar_k_u Kerala
Addressed #11, I didn't make any changes on 11.1.
this feels kind of artificial
do we have any details of how this bug can be encountered by correct use of APIs?We can't reproduce this bug by using correct node deletion methods (programmatically($node->delete()) or deleting the node through the interface), I'm not sure about the migration part
- last update
almost 2 years ago 29,400 pass - Status changed to Needs work
almost 2 years ago 1:14pm 31 May 2023 - ๐บ๐ธUnited States smustgrave
Maybe we need a migration test? But think the tests should reflect whatโs possible through the API
- Merge request !37Issue #3260888 by ranjith_kumar_k_u, LaravZ: Node view breaks when the... โ (Merged) created by smustgrave
-
smustgrave โ
committed 4daf2263 on 2.0.x
Issue #3260888 by ranjith_kumar_k_u, LaravZ: Node view breaks when the...
-
smustgrave โ
committed 4daf2263 on 2.0.x
Automatically closed - issue fixed for 2 weeks with no activity.