Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11912

Empty configuration in ServiceUserMapperImpl's Required Principal/User validators results in 503

    XMLWordPrintableJSON

Details

    Description

      1) In webconsole configuration manager, open Apache Sling Service User Mapper Serviceorg.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl
      2) Before making any change the configuration is:

      :org.apache.felix.configadmin.revision:=L"1"
      require.validation=B"true"
      service.pid="org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl"
      user.enable.default.mapping=B"false"
      

      3) Without changing the configuration click on save, the configuration becomes:

      :org.apache.felix.configadmin.revision:=L"8"
      require.validation=B"true"
      required.principal.validators=[ \
        "", \
        ]
      required.user.validators=[ \
        "", \
        ]
      service.pid="org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl"
      user.default=""
      user.enable.default.mapping=B"false"
      

      i.e required.principal.validators and required.user.validators have an empty value and due to this all sling requests return

      "HTTP ERROR 503 ServletResolver service missing, cannot service requests".
      

      This persistence of empty configuration seems to be behaviour of felix.webconsole. But IMO sling requests should not fail due to empty values.

      (The above scenario was reproduced in an AEM instance)

      Attachments

        Issue Links

          Activity

            People

              sagarmiglani Sagar Miglani
              sagarmiglani Sagar Miglani
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: