Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-211

Encode parentPath in createDocumentByPath method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.0
    • Fix Version/s: 3.9.0
    • Component/s: REST

      Description

      This method does not encode the parent path

          @POST("repo/{repositoryName}/path{parentPath}")
          Call<Document> createDocumentByPath(@Path("parentPath") String parentPath, @Body Document document,
                  @Path("repositoryName") String repositoryName);
      

      so the / characters will be replaced by %2F, what provokes a bad request error.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 minute Original Estimate - 1 minute
                  1m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m