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

Rest SMS: Incorrect resource Location header returned from createInstance

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 13.0.0
    • Fix Version/s: 13.0.0
    • Component/s: rest, sms
    • Labels:
    • Rank:
      1|hzpsx3:
    • Sprint:
      Sprint 89 - Team Newton

      Description

      The REST SMS SmsCollectionProvider#createInstance method parses the wrong field out of the DN of the created object when generating the returned resource name (which becomes the Location header on the response). Rather than returning the CN, it returns the last component (usually "org" or whatever the top-level of the org DN is) for all resources.

      We can use config.getName() instead to get the name of the created resource without needing to parse the DN at all.

        Attachments

          Activity

            People

            • Assignee:
              neil.madden Neil Madden
              Reporter:
              neil.madden Neil Madden
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: