Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-5554

Broken Get Sites REST API in 5.0 (cannot search by presets filter)

    Details

      Description

      org/alfresco/repository/site/sites.get API allows to get all sites using following filter parameters:

      • nameFilter;
      • sitePreset;
      • sizeString.

      In 4.2 "sitePreset" filter works great, but it 5.0 it is broken.

      The reason is that the filter has been removed from the findSites request in file http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/remote-api/config/alfresco/templates/webscripts/org/alfresco/repository/site/sites.get.js

      Request in 4.2:
      siteService.getSites(nameFilter, sitePreset, sizeString != null ? parseInt(sizeString) : -1);

      Request in 5.0:
      siteService.findSites(nameFilter, sizeString != null ? parseInt(sizeString) : -1);

      Is it possible to repair it in the future versions?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                okurysheva Oksana Kurysheva
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 minutes
                  5m