Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-500

Special Character Limitations of cpsPath Queries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: Istanbul Release
    • Fix Version/s: Istanbul Release
    • Component/s: CPS-Core
    • Labels:
      None

      Description

      Problem

      Due to the simplified regular expression for matching used in Postgres CPS-Core might have problems with some special characters in certain situations

      e.g.

      Referencing a list key string-value that contains at least one '/':

       //categories[@code='with/slash']/book[@title='search']

      Referencing  a list key string-value that contains '@[': 

      //categories[@code='strange code with  @[']/book[@title='search']

      The result of these limitations will be that any records where the key-field of an index contains a slash or the combination of @[ these records will be ignored when the user uses an xpath like '//categories'

      Although the occurrence of a slash in the index fields is not unlikely it probably will not happen for any models used in Istanbul release.

      Suggested Solution

      1. For now document these limitations in  docs/cps-path.rst
      2. Create (low priority) Jira to address this issue as needed or when time allows

        Attachments

          Issue Links

          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              ToineSiebelink Toine Siebelink
              Reporter:
              ToineSiebelink Toine Siebelink
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: