Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3487

Roo-generated value for @PreAuthorize annotation causes a bug

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.2.4.RELEASE, 1.2.5.RELEASE
    • Fix Version/s: 2.0.0.M3
    • Component/s: SECURITY
    • Labels:
      None

      Description

      If one implements a permission evaluator (@RooPermissionEvaluator) for a Roo app, then @PreAuthorize annotations are added to service methods.

      However it seems the roo-generated value for the annotations is wrong. See below, "AND OR" below:

      @PreAuthorize("isAuthenticated() AND OR hasPermission(#id, 'CurriculumService:findCurriculumIsAllowed')")
      public Curriculum CurriculumServiceImpl.findCurriculum(Long id)

      { return curriculumRepository.findOne(id); }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jcgarcia Juan Carlos GarcĂ­a del Canto
              Reporter:
              balteo Julien Martin
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: