Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-664

SecurityViolation are evaluated twice for redirect pages with configured errorView

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • Security-Module
    • None

    Description

      I modified deltaspike-jsf-example to reproduce the behaviour

      Modification to org.apache.deltaspike.example.viewconfig.Pages

          @Secured(value = DenyAllAccessDecisionVoter.class, 
                   errorView = ViewConfigFolder.Error.class)
          public interface SecuredPages extends ViewConfig, RedirectedPages {}
      ...
          public class Error implements ViewConfig {}
      
      

      errror.xhtml

          <h:form>
         	  <h:messages />
          </h:form>
      

      Result: Error message is shown twice on error page.

      Attachments

        Activity

          People

            gpetracek Gerhard Petracek
            philip69 Philip Herbst
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: