Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-9628

Strange 400 response after changing advanced default server properties from site URL

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 13.5.0
    • 13.5.1, 14.0.0
    • XUI
    • AM Sustaining Sprint 29, AM Sustaining Sprint 30, AM Sustaining Sprint 31
    • 2
    • 0
    • Future
    • None

    Description

      Reproduction steps:

      Make sure lb.example.com and a server URL are resolved correctly as usual

      • Install a totally default OpenAM 13.5, no site etc
      • Now add a site with http://lb.example.com/openam site URL
      • Add the server to the site
      • Log out, and now log back into AM via the lb.example.com URL
      • Choose Configure -> Server Defaults -> Advanced
      • Add/edit a valid property, or don't even add/edit anything at all, and click Save
        • Successful "Changes Saved" will show regardless
      • Now try to 'Show All' realms from the dropdown - 'Bad Request Error', & 'FQDN 'lb.example.com' is not valid'
      • A server restart is required, or the site url cannot be accessed and gets redirected back to the server URL

      This problem can be intermittent, and might be easier to observe after adding a new realm (for some reason, but not always...) Log in -> Add new realm -> now go to Configure, Server Defaults ...

      In the logs:

      "AM-ACCESS-OUTCOME","6b1ffde9-be0c-4269-b14e-262599591086-319","id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org","[""6f48afedba90bbe3
      01""]","192.168.56.100","48080","192.168.56.1","50178","CREST","QUERY",,"false","GET","http://lb.example.com:48080/openam/json/global-config/realms","{""_queryFilter"":[""true""]}","{""accept"":[""application/json, text/javascript
      , */*; q=0.01""],""accept-api-version"":[""protocol=1.0,resource=1.0""],""host"":[""lb.example.com:48080""],""referer"":[""http://lb.example.com:48080/openam/XUI/""],""user-agent"":[""Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5
      ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36""],""x-requested-with"":[""XMLHttpRequest""]}","{""i18next"":""en-US"",""amlbcookie"":""01""}",,"FAILED","400","{""reason"":""FQDN \""lb.example.com\"" is
       not valid.""}","2","MILLISECONDS","Config"
      

      Additionally there is no mention of anthing going wrong in the logs when in ERROR mode

      Attachments

        Issue Links

          Activity

            People

              peter.major Peter Major [X] (Inactive)
              joe.starling Joe Starling
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: