Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-1814

Crowd Apache Connector doesn't escape svn path names when using them in regexps

    XMLWordPrintable

Details

    Description

      There are places in the authz code where the svn repository path is used as a regexp (to match against the authz file). This causes a problem if the path name contains characters that have special meaning in a regexp.

      For example: the path '/path/to/NotePad++' generates an error like the following:

      [Fri Feb 05 12:51:36 2010] [error] [client 127.0.0.1] Nested quantifiers in regex; marked by <-- HERE in m/^/stuff/NotePad++ <-- HERE .+/ at /usr/lib/perl5/site_perl/5.8.8/Atlassian/Crowd.pm line 448.\n
      

      The solution is to escape the string in the code using the "\Q...\E" syntax. For more information see this KB article

      Attachments

        Activity

          People

            beb930a06022 Andrew Reid
            beb930a06022 Andrew Reid
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: