Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-125

Regular expression issue in a scenario

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • V2 1.0.0
    • V2 1.1.0
    • MISC
    • None

    Description

      Hi,
      I have found an error in a regular expression in class
      org.apache.olingo.odata2.ref.processor.ListsProcessor.

      Basically
      .replaceAll("
      $skiptoken=.+?&?", "")
      should be replaced with
      .replaceAll("
      $skiptoken=.*?(?=&)", "")

      otherwise what I get after 3 iterations is:
      BOOK_BLOCK?$skiptoken=100
      BOOK_BLOCK?00&$skiptoken=300
      BOOK_BLOCK?00&00&$skiptoken=300

      basically the regex recognize just the first character and not all the character till the & symbol.

      Thanks a lot for your attention.
      Eugenio

      Attachments

        Activity

          People

            mirbo mibo
            black@t Eugenio Lentini
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: