Uploaded image for project: 'Playground'
  1. Playground
  2. PLAY-127

Fix IllegalArgumentException on Path Endpoint

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10
    • Component/s: Resources Endpoint

      Description

      Steps to reproduce:
      Given nuxeo-showcase-content is installed:

      • Navigate to localhost:8080/nuxeo/playground and go to Resources Endpoints.
      • Under the Path Endpoint, select GET /api/v1/path/{docPath}.
      • From the docPath field, browse to the Lorem Ipsum note. (/default-domain/workspaces/Sample Content/Notes/Lorem ipsum note).
      • Click on RUN.
        => Response is:
        {
          "entity-type": "exception",
          "status": 500,
          "message": "java.lang.IllegalArgumentException: Illegal path with empty component: //default-domain/workspaces/Sample Content/Notes/Lorem ipsum note"
        }
        

      Workaround:

      • After selecting the path, remove the first / and click on RUN.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 15 minutes
                  15m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.