Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-691

Multiple Archive#as(Secured.class) executions occur ParseError of web.xml

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2016.9
    • Fix Version/s: 2016.11.0
    • Component/s: core
    • Labels:
      None
    • Sprint:
      2016.11
    • Steps to Reproduce:
      Hide
      archive.as(Secured.class).protect("/companies").withRole("default");
      archive.as(Secured.class).protect("/accounts").withRole("manager");
      
      Show
      archive.as(Secured.class).protect( "/companies" ).withRole( " default " ); archive.as(Secured.class).protect( "/accounts" ).withRole( "manager" );
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Use the same archive.as(Secured.class) instance.

      Secured securedArchive = archive.as(Secured.class);
      securedArchive.protect("/companies/*").withRole("default");
      securedArchive.protect("/accounts/*").withRole("manager");
      
      Show
      Use the same archive.as(Secured.class) instance. Secured securedArchive = archive.as(Secured.class); securedArchive.protect( "/companies/*" ).withRole( " default " ); securedArchive.protect( "/accounts/*" ).withRole( "manager" );

      Description

      Multiple Archive#as(Secured.class) executions occur ParseError of web.xml.

      The method sets up web.xml, and if you use it multiple times, multiple login-config elements in web.xml would be registered

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gastaldi George Gastaldi
                Reporter:
                emag Yoshimasa Tanabe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: