• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • mantis-plugin
    • None

      Our commit messages starts with [12345] ..... and I used to use Issue id pattern [%ID%], however this is no longer working.

      Reading through hudson.plugins.mantis.MantisProjectProperty.java, method createRegexp(..) should generate the regular expression (?<=[)(\d+)(?=]) which will happily find the regex, so doesn't look like its a problem there.

      What appears to be occuring is that the Issue ID pattern is being saved with quotes around it eg "[%ID%]", because if I commit svn messages with quotes around the square brackets it all works, and looking in the job xml it is saving the field as <pattern>"[%ID%]"</pattern>

      I can get around the problem by using a Regexp pattern of [(\d+)] and leave the Issue id pattern blank, but it would be ideal if this could be fixed

          [JENKINS-14542] Issue ID Pattern no longer working

          James Bushell created issue -
          James Bushell made changes -
          Description Original: Our commit messages starts with [12345] ..... and I used to use Issue id pattern [%ID%], however this is no longer working.

          Reading through hudson.plugins.mantis.MantisProjectProperty.java, method createRegexp(..) should generate the regular expression (?<=\[)(\d+)(?=\]) which will happily find the regex, so doesn't look like its a problem there.

          What appears to be occuring is that the Issue ID pattern is being saved with quotes around it eg "[%ID%]", because if I commit svn messages with quotes around the square brackets it all works, and looking in the job xml it is saving the field as <pattern>&quot;[%ID%]&quot;</pattern>


          I can get around the problem by using a Regexp pattern of \[(\d+)\] and leave the Issue id pattern blank, but it would be ideal if this could be fixed
          New: Our commit messages starts with [12345] ..... and I used to use Issue id pattern [%ID%], however this is no longer working.

          Reading through hudson.plugins.mantis.MantisProjectProperty.java, method createRegexp(..) should generate the regular expression (?<=\\[)(\d+)(?=\\]) which will happily find the regex, so doesn't look like its a problem there.

          What appears to be occuring is that the Issue ID pattern is being saved with quotes around it eg "[%ID%]", because if I commit svn messages with quotes around the square brackets it all works, and looking in the job xml it is saving the field as <pattern>&quot;[%ID%]&quot;</pattern>


          I can get around the problem by using a Regexp pattern of \\[(\d+)\\] and leave the Issue id pattern blank, but it would be ideal if this could be fixed
          James Bushell made changes -
          Description Original: Our commit messages starts with [12345] ..... and I used to use Issue id pattern [%ID%], however this is no longer working.

          Reading through hudson.plugins.mantis.MantisProjectProperty.java, method createRegexp(..) should generate the regular expression (?<=\\[)(\d+)(?=\\]) which will happily find the regex, so doesn't look like its a problem there.

          What appears to be occuring is that the Issue ID pattern is being saved with quotes around it eg "[%ID%]", because if I commit svn messages with quotes around the square brackets it all works, and looking in the job xml it is saving the field as <pattern>&quot;[%ID%]&quot;</pattern>


          I can get around the problem by using a Regexp pattern of \\[(\d+)\\] and leave the Issue id pattern blank, but it would be ideal if this could be fixed
          New: Our commit messages starts with [12345] ..... and I used to use Issue id pattern [%ID%], however this is no longer working.

          Reading through hudson.plugins.mantis.MantisProjectProperty.java, method createRegexp(..) should generate the regular expression (?<=\[)(\d+)(?=\]) which will happily find the regex, so doesn't look like its a problem there.

          What appears to be occuring is that the Issue ID pattern is being saved with quotes around it eg "[%ID%]", because if I commit svn messages with quotes around the square brackets it all works, and looking in the job xml it is saving the field as <pattern>&quot;[%ID%]&quot;</pattern>


          I can get around the problem by using a Regexp pattern of \[(\d+)\] and leave the Issue id pattern blank, but it would be ideal if this could be fixed

          James Bushell added a comment -

          Note that this Jira issue doesn't show the escaped left/right square brackets correctly for the regular expressions. There is a \ before the [ or ]

          James Bushell added a comment - Note that this Jira issue doesn't show the escaped left/right square brackets correctly for the regular expressions. There is a \ before the [ or ]
          sogabe made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          sogabe added a comment - - edited

          It seems that JSONlib library has a bug. I'll patch to it.

          sogabe added a comment - - edited It seems that JSONlib library has a bug. I'll patch to it.
          sogabe made changes -
          Link New: This issue is related to JENKINS-14827 [ JENKINS-14827 ]

          Jesse Glick added a comment -

          See JENKINS-14827; may be fixed in Jenkins trunk.

          Jesse Glick added a comment - See JENKINS-14827 ; may be fixed in Jenkins trunk.
          sogabe made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 145227 ] New: JNJira + In-Review [ 191391 ]

            sogabe sogabe
            jimnz111 James Bushell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: