Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1301

Fix urlFor when param is an empty object

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.x, 3.0.3
    • Component/s: UI

      Description

      Although it should not happen, in some cases, urlFor is called with an empty object as a parameter. This seems to happen when using on listing results, owing to how the items are initialized by nuxeo-page-provider-display-behavior, which results in the following error:

      Error: cannot resolve route: object does not have an "entity-type"
      

      We should make nuxeo-routing-behavior robust to this exception.

      How to reproduce:
      1. Go to default search
      2. Search for anything
      3. (if the error didn't occur yet) Click on any of the quick filters (e.g. "No Containers")

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h