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

Strange behaviour for attempts to create duplicate trees

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 14.5.0
    • Fix Version/s: None
    • Component/s: authentication
    • Labels:
    • Environment:
      OpenAM 14.5.0-SNAPSHOT Build 511890979e (2017-September-13 15:02)
    • Rank:
      1|hzu71z:

      Description

      Bug description

       (This bug assumes you still have the default Example tree configured)

      If you try to create a tree called "Example" you get the following response:

      code: 412
      reason: "Precondition Failed"
      message: "Precondition Failed"
      

      This message is not very descriptive_,_ it does not tell the user that the actual issue is a duplicated tree name.

      Also it has be found that the Tree Name field is case sensitive. If you try to create a tree called "example" you get a 500 returned:

      code: 500
      reason: "Internal Server Error"
      message: "Unable to save SMS config: Service already exists"

       

      How to reproduce the first issue

      1. Deploy 14.5.0 Build 511890979e (2017-September-13 15:02)
      2. Attempt to create a Tree called "Example"
      Expected behaviouR
      Tree is not created and a message like "Couldn't create as tree "Example" already exists"
      Current behaviour
      code: 412
      reason: "Precondition Failed"
      message: "Precondition Failed"
      

       

      How to reproduce the second issue

      1. Deploy 14.5.0 Build 511890979e (2017-September-13 15:02)
      2. Attempt to create a Tree called "example"
      EXPECTED BEHAVIOUR
      Tree is not created and a message like "Couldn't create as tree "example" already exists"
      CURRENT BEHAVIOUR
      code: 500
      reason: "Internal Server Error"
      message: "Unable to save SMS config: Service already exists"
      

      Work around

       

      Code analysis

      TreeService.jsm was worked on for OPENAM-11528 and is related to this issue.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              philip.anderson Philip Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: