Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7284

group-properties can be added without path in Elytron properties-realm which results to invalid server configuration

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 11.0.0.Alpha1
    • 11.0.0.Alpha1
    • Security
    • None
    • Hide

      Run CLI command:

      /subsystem=elytron/properties-realm=someRealm:add(users-properties={path=mgmt-users.properties,relative-to=jboss.server.config.dir},groups-properties={})
      

      Then reload/restart server and exception will occur and server is not started

      Show
      Run CLI command: /subsystem=elytron/properties-realm=someRealm:add(users-properties={path=mgmt-users.properties,relative-to=jboss.server.config.dir},groups-properties={}) Then reload/restart server and exception will occur and server is not started

    Description

      Adding groups-properties without path through CLI is allowed by Elytron subsystem which results to XMLStreamException after server is reloaded/restarted.

      Exception in server log after reload/restart:

      ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
      	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
      	at org.jboss.as.server.ServerService.boot(ServerService.java:355)
      	at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:302)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[345,21]
      Message: WFLYCTL0133: Missing required attribute(s): path
      	at org.jboss.as.controller.parsing.ParseUtils.missingRequired(ParseUtils.java:180)
      	at org.wildfly.extension.elytron.RealmParser.readFileAttributes(RealmParser.java:522)
      	at org.wildfly.extension.elytron.RealmParser.readPropertiesRealm(RealmParser.java:337)
      	at org.wildfly.extension.elytron.RealmParser.readRealms(RealmParser.java:118)
      	at org.wildfly.extension.elytron.ElytronSubsystemParser.readElement(ElytronSubsystemParser.java:114)
      	at org.wildfly.extension.elytron.ElytronSubsystemParser.readElement(ElytronSubsystemParser.java:72)
      	at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
      	at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)
      	at org.jboss.as.server.parsing.StandaloneXml_5.parseServerProfile(StandaloneXml_5.java:591)
      	at org.jboss.as.server.parsing.StandaloneXml_5.readServerElement(StandaloneXml_5.java:245)
      	at org.jboss.as.server.parsing.StandaloneXml_5.readElement(StandaloneXml_5.java:144)
      	at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:107)
      	at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)
      	at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
      	at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
      	at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
      	... 3 more
      FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-ivassile Ilia Vassilev
              olukas Ondrej Lukas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: