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

Not working List of Map Configurable values with yml

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2017.3.2
    • Component/s: core
    • Labels:
      None
    • Sprint:
      2017-Feb-B
    • Steps to Reproduce:
      Hide

      git clone https://github.com/emag/wildfly-swarm-examples.git &&\
      cd wildfly-swarm-examples &&\
      git checkout fix-keycloak-example &&\
      mvn clean package -pl security/keycloak -am &&\
      java -jar security/keycloak/target/example-keycloak-swarm.jar

      Show
      git clone https://github.com/emag/wildfly-swarm-examples.git &&\ cd wildfly-swarm-examples &&\ git checkout fix-keycloak-example &&\ mvn clean package -pl security/keycloak -am &&\ java -jar security/keycloak/target/example-keycloak-swarm.jar

      Description

      The affected version is 2017.2.0-SNAPSHOT(5b88789).

      I created a keycloak example which contains the following project-stages.yml.

      swarm:
        keycloak:
          security:
            constraints:
              - url-pattern: /secured
                methods: [GET]
                roles: [admin]
      

      but I got the following exception(and attached the full log).

      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Stage config 'swarm.keycloak.security.constraints.0' is missing
      

      The Configurable values are supposed to be injected into the SecuredArchivePreparer..securityConstraints .

      https://github.com/wildfly-swarm/wildfly-swarm/blob/master/fractions/keycloak/src/main/java/org/wildfly/swarm/keycloak/runtime/SecuredArchivePreparer.java#L135-L136

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                emag Yoshimasa Tanabe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: