Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3572

AuthorizeService.authorize(..., EPerson, ...) checks context.currentEPerson instead of specified one

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.1
    • Component/s: API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      8
    • Documentation Status:
      Not Required

      Description

      In AuthorizeServiceImpl.authorize(Context c, DSpaceObject o, int action, EPerson e, boolean useInheritance) a EPerson is provided as attribute e. In line 312 (https://github.com/DSpace/DSpace/blob/fa87235ad962ac6bfe2c36db292972ee445d9127/dspace-api/src/main/java/org/dspace/authorize/AuthorizeServiceImpl.java#L312) the membership of the user currently logged in is checked instead of the EPerson e. In many cases they might be the same, but not in all.

      I have not checked (yet) if previous versions of DSpace are affected too.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pbecker Pascal-Nicolas Becker
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: