Uploaded image for project: 'eXo-JCR'
  1. eXo-JCR
  2. EXOJCR-971

Prevent unauthorized access to the methods of RepositoryServiceImpl

    Details

      Description

      To prevent cheating with the methods (createRepository, getConfig, removeRepository, setCurrentRepositoryName, start and stop) without the required rights we should protect those methods.

      .....
      SecurityManager sm = System.getSecurityManager();
      if (sm != null)

      { sm.checkPermission(new RuntimePermission("createRepository")); }

      ....

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tolusha Anatolii Bazko
                Reporter:
                skabashnyuk Sergey Kabashnyuk
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Time Spent - 1 hour Remaining Estimate - 7 hours
                  7h
                  Logged:
                  Time Spent - 1 hour Remaining Estimate - 7 hours
                  1h