Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-13239

Multiple-passwords sample broken in 6.5 and beyond

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 6.5.0, 7.0.0
    • Fix Version/s: None
    • Component/s: _Samples

      Description

      The multiple-passwords sample shipped within OpenIDM 6.5.x and 7.0.0 is fundamentally broken.  The sample has a requirement to store clear text passwords within the OriginResourceContext found within the Context chain upon creation of a new managed user. This mechanism is now broken.

      Prior to the 6.5 release the OriginResourceContext was known as ManagedObjectContext and provided the capability to store arbitrary fields within the Context. The ManagedObjectContext was created by the ManagedObjectService whenever handling requests, however the new OriginResourceContext is no longer added to the Context chain under for each managed object request, nor does it have the ability to store arbitrary data. This has resulted in to fundamental flaws in the sample:

      1. The Context upon which the `storeFields.groovy` script relies in never present in the Context chain at the time the script is invoked
      2. The OriginResourceContext (were it present) does not provide the capability to store arbitrary data within the Context, making it available to consumers further down the request processing chain

      As a result this sample can not work as designed and needs to be re-implemented using some other mechanism.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jason.browne Jason Browne
                Reporter:
                cgdrake Chris Drake
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: