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

CommentFileSizeAuthor
#6 3533423-6.patch997 bytesleksat
Command icon 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

berdir created an issue. See original summary.

divyansh.gupta’s picture

Assigned: Unassigned » divyansh.gupta

Working on it!!

divyansh.gupta’s picture

Assigned: divyansh.gupta » Unassigned
Status: Active » Needs review

I 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!!

rupertj’s picture

I 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.

leksat’s picture

StatusFileSize
new997 bytes

I would also suggest MissingMandatoryParametersException (just met this one in combination with group_content_menu module)

alexpott made their first commit to this issue’s fork.

alexpott’s picture

Status: Needs review » Fixed

I decided to merge this without an explicit test. Will be in the next release.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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