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

Perforce Plugin causes config page to throw error if workspace mapping exceeds 2974 bytes

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have a job that gathers a lot of different components from Perforce and we recently added a few new lines. After the job built once we attemt to go back into the config screen for the job and the settings come up but we get a "ERROR" just below the mapping that once you click on it it shows a 404 error and after that the user is logged out of Jenkins. If I delete the project mapping from the config.xml and reload from the disk the job is editable again until the next build. I have tried to use the clientspec feature but this also adds back in the <projectPath> key in the config.xml and again the error reoccurs after the first build. Right now the only work around is to modify the job file manually with a text editor. The jobs seem to build just fine. I have attached a job config file to show the issue. If I reduce the mapping down to 2974 bytes the error goes away and does not seem to return. My feeling is it is in the parser of the mapping, but that is a guess. For user login control we currently are using "Project-based Matrix Authorization Strategy" with "Jenkins's own user database".

        Attachments

          Activity

          Hide
          rpetti Rob Petti added a comment -

          So it's just Chrome that is unusable?

          Show
          rpetti Rob Petti added a comment - So it's just Chrome that is unusable?
          Hide
          rpetti Rob Petti added a comment -

          Also, can you please verify that you do NOT get login-related problems when configuring jobs that have a shorter spec? I find it very odd that this would cause a logout.

          Show
          rpetti Rob Petti added a comment - Also, can you please verify that you do NOT get login-related problems when configuring jobs that have a shorter spec? I find it very odd that this would cause a logout.
          Hide
          mikehend Mike Henderson added a comment -

          Like I stated, today I didn't have a failure in IE9 or Firefox but I have had problems with them in the past where the authentication error caused a failure to submit the changes and for them to take effect. Today I did not have that problem.

          Yes, it only affects the jobs with workspace sizes exceeding 2974 bytes. I have 40 others (or more) that all work fine.

          Thanks for your time.

          Show
          mikehend Mike Henderson added a comment - Like I stated, today I didn't have a failure in IE9 or Firefox but I have had problems with them in the past where the authentication error caused a failure to submit the changes and for them to take effect. Today I did not have that problem. Yes, it only affects the jobs with workspace sizes exceeding 2974 bytes. I have 40 others (or more) that all work fine. Thanks for your time.
          Hide
          rpetti Rob Petti added a comment -

          Thanks. I didn't realize that this was actually a blocking issue on some browsers. I'll look into it, but I suspect we may just have to disable form validation on that field entirely.

          Show
          rpetti Rob Petti added a comment - Thanks. I didn't realize that this was actually a blocking issue on some browsers. I'll look into it, but I suspect we may just have to disable form validation on that field entirely.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Rob Petti
          Path:
          src/main/java/hudson/plugins/perforce/PerforceSCM.java
          http://jenkins-ci.org/commit/perforce-plugin/e94f71f9fee5494d400961a11e0cb5df46720536
          Log:
          JENKINS-12806 disabling form validation on the view map, since it causes issues with large maps

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Rob Petti Path: src/main/java/hudson/plugins/perforce/PerforceSCM.java http://jenkins-ci.org/commit/perforce-plugin/e94f71f9fee5494d400961a11e0cb5df46720536 Log: JENKINS-12806 disabling form validation on the view map, since it causes issues with large maps

            People

            • Assignee:
              Unassigned
              Reporter:
              mikehend Mike Henderson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: