Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-21332

Different response for same endpoint using different authentication types

    Details

    • Bug Priority:
      Category 3

      Description

      Create site 'test' in share using admin user.

      Current behaviour:

      GET /alfresco/api/-default-/public/alfresco/versions/1/people/-me-/sites/
      --header 'Authorization: Basic YWRtaW5AYXBwLmFjdGl2aXRpLmNvbTphZG1pbg=='
      
      {
          "list": {
              "pagination": {
                  "count": 1,
                  "hasMoreItems": false,
                  "totalItems": 2,
                  "skipCount": 0,
                  "maxItems": 100
              },
              "entries": [
                  {
                      "entry": {
                          "site": {
                              "role": "SiteManager",
                              "visibility": "PRIVATE",
                              "guid": "c4d1cee2-ee0f-44e1-b033-40c076916013",
                              "id": "test",
                              "preset": "site-dashboard",
                              "title": "test"
                          },
                          "role": "SiteManager",
                          "guid": "c4d1cee2-ee0f-44e1-b033-40c076916013",
                          "id": "test"
                      }
                  }
              ]
          }
      }
      
      GET /alfresco/api/-default-/public/alfresco/versions/1/people/-me-/sites/
      --header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJnRFZrcnI5cDI0cV9wWG5weFJhdm1UX1htbU1JYXlBYV96SFRrMlNwRjJvIn0.eyJqdGkiOiJlYTE3YWExZi1hNTgwLTRlNGItOGEzOS00YjcwZDlkMzU5ODgiLCJleHAiOjE1ODE0Mzk0MjksIm5iZiI6MCwiaWF0IjoxNTgxNDM5MTI5LCJpc3MiOiJodHRwOi8vYXBzMWRldi5lbnZhbGZyZXNjby5jb20vYXV0aC9yZWFsbXMvYWxmcmVzY28iLCJhdWQiOlsicmVhbG0tbWFuYWdlbWVudCIsImFjY291bnQiXSwic3ViIjoiNjBhOWI2YzUtNjRlZi00MDVmLThjNmYtNjZiZDhjZDM4NzhhIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiYWxmcmVzY28iLCJhdXRoX3RpbWUiOjE1ODE0MzYzNzQsInNlc3Npb25fc3RhdGU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RSasD0JSVQRVD330c8A2J-FlCSUinJHItmzcPGhCNn4yc1MoNNYq61io1KVu5FShio36otpncOoWEQh5pgZ4_WUss5AjQJ4J3-TI6d8EiTtGROwR0bNcj8w'
      
      {
          "list": {
              "pagination": {
                  "count": 1,
                  "hasMoreItems": false,
                  "totalItems": 1,
                  "skipCount": 0,
                  "maxItems": 100
              },
              "entries": [
                  {
                      "entry": {
                          "site": {
                              "role": "SiteManager",
                              "visibility": "PUBLIC",
                              "guid": "b4cff62a-664d-4d45-9302-98723eac1319",
                              "description": "This is a Sample Alfresco Team site.",
                              "id": "swsdp",
                              "preset": "site-dashboard",
                              "title": "Sample: Web Site Design Project"
                          },
                          "role": "SiteManager",
                          "guid": "b4cff62a-664d-4d45-9302-98723eac1319",
                          "id": "swsdp"
                      }
                  }
              ]
          }
      }
      

      Expected behaviour:
      The calls should have the same response

      Repository version: 6.2.0

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rspatariu Roxana Spatariu [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel