Uploaded image for project: 'Repository'
  1. Repository
  2. REPO-1922

getPreference REST API call returns successful response if document/folder preference does not exist

    Details

    • Work Funnel:
      Feature
    • Template:
    • Bug Priority:
      Category 2

      Description

      Steps to reproduce
      1. Add a site, a document and a folder as favorites for one user
      2. Remove site, document and folder favorites
      3. Perform getPreference REST API call for each resource

      Expected result
      According to documentation, status code 404 should be returned

      Actual result
      For site preference, status code 404 is returned - OK
      For document/folder, status code 200 is returned with the following response:
      {"entry": {"id": "org.alfresco.share.folders.favourites"}}
      or
      {"entry": {"id": "org.alfresco.share.documents.favourites"}}

      Notice
      It is reproducing on both 5.1 and 5.2

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vpopa Valentin Popa [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel