Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5849

Bad validation of Perforce View

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • p4-plugin
    • None
    • Linux 2.6.18-128.el5xen #1 SMP Wed Dec 17 12:22:24 EST 2008 i686 i686 i386 GNU/Linux

      I am getting a form validation error for my Perforce view when configuring my jobs. I have the following for my view:

      //Tuxedo/MAIN/Product/Fast_Forward/pom.xml //qaadmin_rocdevl3_hudson-core/pom.xml
      //Tuxedo/MAIN/Product/Fast_Forward/Core/Source/... //qaadmin_rocdevl3_hudson-core/Core/Source/...
      //Tuxedo/MAIN/Product/Fast_Forward/Core/pom.xml //qaadmin_rocdevl3_hudson-core/Core/pom.xml

      and I get the following error:

      Invalid mapping://Tuxedo/MAIN/Product/Fast_Forward/pom.xml //qaadmin_rocdevl3_hudson-core/pom.xml

      However, the job seems to work just fine. In looking at the source code package hudson.plugins.perforce, I see the following string pattern which seems to be used for this validation:

      ^([+-]?//\\S+?/\\S+)\\s+//\\S+?(/
      S+)$

      This seems to match that first line of my mapping. I checked for non-whitespace characters at the end of my line, and there do not appear to be any.

      I am using the latest Perforce plugin, as well as the latest Hudson build.

            Unassigned Unassigned
            froyland froyland
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: