Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-23985

REST Blobstore Soft Quota limit is bytes despite documentation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.23.0, 3.24.0, 3.30.0
    • Fix Version/s: None
    • Component/s: Blobstore, REST
    • Labels:
    • Environment:
      (MacOSX)
    • Notability:
      4

      Description

      An update of the soft quota in a blobstore (e.g. curl -X PUT "http://localhost:8081/service/rest/beta/blobstores/file/test2" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"softQuota\":

      { \"type\": \"spaceUsedQuota\", \"limit\": 2 }

      , \"path\": \"test2\"}" -u admin:admin123) is inputting 2 bytes rather than 2 MB. The REST documentation says MB but when you look at the result in the UI it shows 0 (rounding). If you put in 1000000 it shows 1 in the UI.

      The fix could be to just put bytes in the documentation but that would not match the UI, so I would suggest if possible making the field MB input.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jtom Joe Tom
              CC:
              Adrian Skehill
              Last Updated By:
              Joe Tom
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title