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

YAML error parsing Map or Properties like module-options

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2016.12.0
    • Fix Version/s: 2017.1.1
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2016-Dec-B
    • Steps to Reproduce:
      Hide

      in project-stages.yml:

      swarm: 
        security:
          security-domains:
            controle-despesas:
              classic-authentication:
                login-modules:
                  defaultRoleDatabaseModule:
                    code: org.jboss.security.auth.spi.DatabaseServerLoginModule
                    flag: optional
                    module-options:
                      dsJndiName: java:jboss/datasources/CustomDS
                      password-stacking: useFirstPass
      
      Show
      in project-stages.yml: swarm: security: security-domains: controle-despesas: classic-authentication: login-modules: defaultRoleDatabaseModule: code: org.jboss.security.auth.spi.DatabaseServerLoginModule flag: optional module-options: dsJndiName: java:jboss/datasources/CustomDS password-stacking: useFirstPass

      Description

      Trying to add a security domain configuration using the project-stages.yml to set the module-options this error is generated:

      java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:37)
      	at org.wildfly.swarm.bootstrap.Main.run(Main.java:44)
      	at org.wildfly.swarm.bootstrap.Main.main(Main.java:35)
      Caused by: mapping values are not allowed here
       in 'reader', line 52, column 31:
                          module-options:
                                        ^
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                filipeferraz Filipe Ferraz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: