Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2953

List readable project not correct if add limit and offset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v2.1.0
    • v2.3.0
    • REST Service
    • None

    Description

      There is one line getReadableProjects in ProjectController:
      List<ProjectInstance> projectInstances = projectService.listAllProjects(limit, offset);
      That means just the part of projects, then validate the ACL.
      If user's project beyond the limit, then he will never get the projects if he put limit and offset.
      It should be similar with cube list, get all the projects then validate the ACL, at last get the sub list by limit and offset.

      Attachments

        1. KYLIN_2953.patch
          2 kB
          Julian Pan

        Activity

          People

            julianpan Julian Pan
            julianpan Julian Pan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: