Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29708

Better handle rest errors on explorer upload API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: explorer-21.0.0
    • Component/s: Explorer

      Description

      Current api used for rest calls during automation are originally designed for the webengine UI.
      When an error happens on upload, the distribution might be partially imported. The page redirects to a webengine template explaining that there was an error but:

      • the request is still a 202 --> curl cannot detect the issue
      • the upload is done partially, this should not be the case with proper core session saving and transaction rollback

      Similar redirect after save should also be improved (although errors are more likely to happen on upload, the same redirect html page is given to curl, which is not ideal when automating save)

        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 - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 15 minutes
                  5h 15m