Uploaded image for project: 'Nuxeo Python Client'
  1. Nuxeo Python Client
  2. NXPY-22

Sanitize relative URLs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0, 2.0.0
    • Component/s: None

      Description

      We need to ensure the client does not send invalid URLs to the server (here, double slashes):

      java.lang.IllegalArgumentException: Illegal path with empty component: //default-domain/workspaces
      	at org.nuxeo.ecm.core.storage.sql.SessionImpl.getNodeByPath(SessionImpl.java:826)
      	at org.nuxeo.ecm.core.storage.sql.ra.ConnectionImpl.getNodeByPath(ConnectionImpl.java:193)
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.resolvePath(SQLSession.java:191)
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:339)
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:935)
      	at org.nuxeo.ecm.restapi.server.jaxrs.RepositoryObject.getDocsByPath(RepositoryObject.java:61)
      

        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 - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m