Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2051

Roles-allowed Property not updated from $PWD/config/application.properties

XMLWordPrintable

    • False
    • None
    • False
    • ---

      The property quarkus.http.auth.policy.[policyname].roles-allowed is not reflecting changes in the file $PWD/config/application.properties

      Steps to reproduce:

      • Unzip the reproducer.tar.gz
      mvn clean install
      java -jar target/quarkus-app/quarkus-run.jar
      curl http://localhost:8080/test
      Role is LOCALFS message is MESSAGE-FROM-LOCAL
      • Next, stop application.
      • Modify $PWD/config/application.properties:
      quarkus.http.auth.policy.role-policy1.roles-allowed=LOCALFS#UPDATED
      quarkus.http.auth.permission.roles1.paths=/*
      quarkus.http.auth.permission.roles1.policy=role-policy1
      quarkus.http.auth.permission.permit1.paths=/*                                
      quarkus.http.auth.permission.permit1.policy=permit
      quarkus.http.auth.permission.permit1.methods=GET
      message=MESSAGE-FROM-LOCAL#UPDATED

      Then:

      java -jar target/quarkus-app/quarkus-run.jar
      curl http://localhost:8080/test
      Role is LOCALFS message is MESSAGE-FROM-LOCAL#UPDATED
      

      As you can see, only the property 'message' has been updated.

      To see changes in both properties, a "mvn clean install" is needed after the edit.

       

              rcortez@redhat.com Roberto Cortez
              fmarchio@redhat.com Francesco Marchioni (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: