- Issue created by @spadxiii
- @spadxiii opened merge request.
- Status changed to Needs review
almost 2 years ago 7:26am 8 February 2023 - Status changed to Postponed: needs info
almost 2 years ago 8:53am 8 February 2023 What is the precise exception type?
Is this something Paragraphs should fix?
Can we get the stack trace please?
- Status changed to Needs work
over 1 year ago 2:46pm 30 March 2023 Put in a MR comment. This will also needs tests.
This is actually a similar to issue to π Uncaught exception in link formatter if a link field has malformed data Fixed , in that if malformed data is entered into the link field (via migration or otherwise), an exception will be thrown (though only if the user does not have "link to any page" permissions).
- Merge request !4949Resolve #3340154 "Link widget throws exception update" β (Closed) created by godotislate
- last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 30,378 pass - Status changed to Needs review
about 1 year ago 6:31pm 5 October 2023 - Status changed to Needs work
about 1 year ago 8:08pm 5 October 2023 - πΊπΈUnited States smustgrave
Using the fancy new test-only runner https://git.drupalcode.org/issue/drupal-3340154/-/jobs/148001 confirmed the test fails as expect
1) Drupal\Tests\link\Functional\LinkFieldTest::testLinkWidgetCaughtExceptionEditingInvalidUrl Behat\Mink\Exception\ExpectationException: Current response status code is 500, but 200 expected. /builds/issue/drupal-3340154/vendor/behat/mink/src/WebAssert.php:794 /builds/issue/drupal-3340154/vendor/behat/mink/src/WebAssert.php:130 /builds/issue/drupal-3340154/core/modules/link/tests/src/Functional/LinkFieldTest.php:951 /builds/issue/drupal-3340154/vendor/phpunit/phpunit/src/Framework/TestResult.php:728
But manually testing I followed the steps in the IS
Install Drupal with standard profile
Add link field (field_link) to Article content type. Allow both internal and external URLs.
Use some method (e.g. migration, cli) other than the node form to create and save Article node with an invalid URL. Such as using Drush: drush php-eval "Drupal::entityTypeManager()->getStorage('node")->create(['type' => 'article', 'title' => 'test', 'field_link' => ['uri' => 'www.example.com']])->save();
Go to edit the node and observe:And I don't get any error.
Forgot: you have to log in as someone who does not have "link to any page" permission. Updated steps.
- Status changed to Needs review
about 1 year ago 8:25pm 5 October 2023 - Status changed to RTBC
about 1 year ago 10:47pm 5 October 2023 - last update
about 1 year ago 30,383 pass - last update
about 1 year ago 30,385 pass - last update
about 1 year ago 30,394 pass - last update
about 1 year ago 30,398 pass - last update
about 1 year ago 30,411 pass - last update
about 1 year ago 30,416 pass - last update
about 1 year ago 30,421 pass - last update
about 1 year ago 30,427 pass - last update
about 1 year ago 30,435 pass - last update
about 1 year ago 30,439 pass - last update
about 1 year ago 30,439 pass - last update
about 1 year ago 30,465 pass - last update
about 1 year ago Custom Commands Failed - last update
about 1 year ago 30,483 pass, 1 fail - last update
about 1 year ago 30,487 pass - last update
about 1 year ago 30,487 pass - last update
about 1 year ago 30,494 pass - last update
about 1 year ago 30,517 pass - last update
about 1 year ago 30,520 pass 16:59 15:47 Running- last update
about 1 year ago 30,555 pass - last update
about 1 year ago 30,603 pass - last update
about 1 year ago 30,605 pass - last update
about 1 year ago 30,606 pass - last update
about 1 year ago 30,668 pass - last update
about 1 year ago 30,676 pass - last update
about 1 year ago 30,680 pass - last update
about 1 year ago 30,685 pass - last update
about 1 year ago 30,689 pass godotislate β changed the visibility of the branch 3340154-link-widget-throws-exception to hidden.
- last update
about 1 year ago 30,689 pass - last update
about 1 year ago 30,697 pass - last update
about 1 year ago Build Successful - last update
about 1 year ago 30,699 pass - last update
about 1 year ago 30,713 pass - last update
about 1 year ago 30,727 pass - last update
about 1 year ago 30,765 pass - last update
about 1 year ago Build Successful - last update
about 1 year ago 25,881 pass, 1,808 fail -
larowlan β
committed fdd8dcc0 on 10.2.x
Issue #3340154 by godotislate, smustgrave: Link-widget throws exception...
-
larowlan β
committed fdd8dcc0 on 10.2.x
-
larowlan β
committed 6b4fa61d on 11.x
Issue #3340154 by godotislate, smustgrave: Link-widget throws exception...
-
larowlan β
committed 6b4fa61d on 11.x
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Committed to 11.x and backported to 10.2.x
Thanks folks
Unpostponed the follow-up
- Status changed to Fixed
about 1 year ago 1:53am 22 December 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- π¦πΊAustralia jordan.jamous
jordan.jamous β changed the visibility of the branch 3340154-link-widget-throws-exception-update to active.