Uploaded image for project: 'Records Management'
  1. Records Management
  2. RM-4289

Status 404 is received for the GET request if the site was created previous via a POST request

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: RM 2.7 EA1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:
      RM 2.6 build from feature/RM-4012_Category_REST_API

      Description

      Preconditions:
      Rm site is created

      Steps to reproduce:
      1.Delete the rm site using the DELETE request:

      http://localhost:8080/alfresco/api/-default-/public/ig/versions/1/sites/rm
      

      2. Create the site with the POST request :

      http://localhost:8080/alfresco/api/-default-/public/ig/versions/1/sites
      Body:
       {
         "visibility": "PUBLIC",
         "compliance": "STANDARD",
         "description": "Records Management Site",
         "title": "Records Management"
      }
      

      3. Check the RM site exist via a Get Request

      http://localhost:8080/alfresco/api/-default-/public/ig/versions/1/sites/rm
      

      If the Get request is sent for the second time then the right response is returned

      Actual response:

      "error": {
          "errorKey": "framework.exception.EntityNotFound",
          "statusCode": 404,
          "briefSummary": "09270002 The entity with id: rm was not found",
          "stackTrace": "For security reasons the stack trace is no longer displayed, but the property is kept for previous versions.",
          "descriptionURL": "https://api-explorer.alfresco.com"
        }
      

      Expected result:

      {"visibility":"PUBLIC","compliance":"STANDARD","guid":"447a9d2b-1018-48a8-83e2-0c09774adb7c","description":"Records Management Site","id":"rm","title":"Records Management"}
      

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rsutu Rodica Sutu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 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 - 2 days, 1 hour, 30 minutes
                  2d 1h 30m

                    Structure Helper Panel