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

MP Health - security enabled, no user yed added, user get info about adding user to access management interface, HTTP code is 200, should be 500

    XMLWordPrintable

Details

    Description

      I do :write-attribute(name=security-enabled, value=true) ++ reload of the server
      Note: I didn't add user via bin/add-user.sh


      Kabir edit: the full command is:
      /subsystem=microprofile-health-smallrye:write-attribute(name=security-enabled,value=true)


      When I'm trying to access http://127.0.0.1:9990/health I receive page which is there primarily for web console:

      <h3>Your WildFly Application Server is running.</h3>
      
      <p>However you have <strong>not</strong> yet <strong>added any users</strong> to be able
       to access the admin console.</p>
      
      <p>To add a new user execute the <code>add-user.sh</code> script within the bin folder of
       your WildFly installation and enter the requested information.</p>
      

      Can /health endpoint get customized response in case no mgmt user is defined on server side ?
      Current response can be little confusing if user is not yet so familiar with WildFly.

      I marked this as minor bug. ... see comments

      Attachments

        Issue Links

          Activity

            People

              kkhan1@redhat.com Kabir Khan
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: