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

'%' character in object id of openidm.read calls has to be encoded

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Expired
    • Affects Version/s: OpenIDM 3.2.0, OpenIDM 4.0.0
    • Fix Version/s: None
    • Component/s: Module - Scripting
    • Environment:
      3.2.0-SNAPSHOT-rev5050
    • Story Points:
      5

      Description

      • Consider the following system object identified by 'system/ccmyintra/account/inaugu@%', it is possible to get it via HTTP REST after URL encoding it:
        GET '/openidm/system/ccmyintra/account/inaugu@%25'

      But the internal openidm.read call:
      openidm.read('system/ccmyintra/account/inaugu@%')
      fails with:
      java.lang.IllegalArgumentException: Path contains an incomplete percent encoding

      I checked that URL-encoding the id works fine:
      openidm.read('system/ccmyintra/account/inaugu@%25')

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brmiller Brendan Miller
                Reporter:
                lionel.schwarz@in2p3.fr L Schwarz [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: