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

Fix NuxeoResponseCache in java client

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: API

      Description

      While testing the last java client version, random error results have been encountered during a following usage on some documents (35):

      • Checking if a document exists in the repository (via fetch "path" endpoint)
      • Creating or Updating the document (via post/put "path" endpoints and same parent during all time)
      • Attach blob to each document via "automation"

      The cache is registering every endpoint calls of all methods (POST PUT DELETE GET).

      • Error Results: some documents are not created at all (only 1, 2 or few)
      • Expected result: having all of them created (all 35)

      The method org.nuxeo.client.NuxeoClient#fetchResponse(retrofit2.Call<T>) is called in most of the endpoints provided in the client and not only the GET method ones -> IMO only GET commands should be cached.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 40 minutes
                40m