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

JSSE configuration in security domain wrongly acceptes empty parameters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.2.0.Final
    • 8.1.0.Final
    • Management
    • None

    Description

      Description from https://bugzilla.redhat.com/show_bug.cgi?id=1080069:

      When adding a jsse configuration in security domain through CLI, it's not persisted correctly.
      
      Steps to reproduce:
      * Run CLI (./jboss-cli.sh -c) and use this commands to configure new security domain:
      /subsystem=security/security-domain=trust-domain:add
      /subsystem=security/security-domain=trust-domain/jsse=classic:add(truststore=>{password=1234test,url=/home/jcacek/projects/ocsp-check/build/trusted-clients.jks})
      reload
      * check standalone.xml, where should be sth. like
      <security-domain name="trust-domain">
      	<jsse truststore-password="1234test" truststore-url="/home/jcacek/projects/ocsp-check/build/trusted-clients.jks"/>
      </security-domain>
      
      But there is:
      <security-domain name="trust-domain">
      	<jsse/>
      </security-domain>
      
      I had a mistake in the second command, it should be:
      /subsystem=security/security-domain=trust-domain/jsse=classic:add(truststore={password=>1234test,url=>/home/jcacek/projects/ocsp-check/build/trusted-clients.jks}) 
      
      Then it works.
      
      Nevertheless it's probably still a bug, when the original command returns:
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              olubyans@redhat.com Alexey Loubyansky
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: