Problem/Motivation
We had a config entity that had a canonical link template defined but no view builder. As a result, \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider::getCanonicalRoute does not define a route for it even though the link template exists.
\Drupal\entity_usage\PreSaveUrlRecorder::recordEntity doesn't catch that specific exception, but it probably should, just to avoid any issue.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3533423-6.patch | 997 bytes | leksat |
Issue fork entity_usage-3533423
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
divyansh.gupta commentedWorking on it!!
Comment #4
divyansh.gupta commentedI added RouteNotFoundException to the list of caught exceptions in recordEntity(), so it now safely skips saving the URL if the route doesn't exist.
Please review!!
Comment #5
rupertj commentedI also had this issue. It breaks the admin screens for the AWS module if both AWS and Entity Usage are installed on the same site.
Comment #6
leksat commentedI would also suggest MissingMandatoryParametersException (just met this one in combination with group_content_menu module)
Comment #9
alexpottI decided to merge this without an explicit test. Will be in the next release.