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

P4CHARSET Broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: p4-plugin
    • Labels:
    • Environment:
      P4-Plugin 1.8.5
      Jenkins 2.89.3
    • Similar Issues:

      Description

      P4CHARSET is being translated to P4-{P4CHARSET} so not longer able to use Unicode enabled Perforce Servers.

       

      Reproduction steps:

      (1) Create connection to Unicode enabled P4D server.

      (2) Create freestyle job.

      (3) use drop down to set P4CHARSET to ShiftJis

      (4) Execute the job

      (5) The error is "*P4-*ShiftJIS" is an invalid character set.

      Started by user anonymous
      Building in workspace /var/lib/jenkins/workspace/TestP4Charset
      ... p4 client -o jenkins-master-TestP4Charset-0 +
      ... p4 info +
      FATAL: P4-ShiftJIS
      java.nio.charset.UnsupportedCharsetException: P4-ShiftJIS
      	at java.nio.charset.Charset.forName(Charset.java:531)
      	at com.perforce.p4java.impl.mapbased.server.Server.setCharsetName(Server.java:751)
      	at org.jenkinsci.plugins.p4.client.ClientHelper.clientLogin(ClientHelper.java:133)
      	at org.jenkinsci.plugins.p4.client.ClientHelper.<init>(ClientHelper.java:108)
      	at org.jenkinsci.plugins.p4.tasks.AbstractTask.getConnection(AbstractTask.java:161)
      	at org.jenkinsci.plugins.p4.tasks.AbstractTask.setWorkspace(AbstractTask.java:78)
      	at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:424)
      	at hudson.scm.SCM.checkout(SCM.java:495)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      	at hudson.model.Run.execute(Run.java:1724)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:421)
      Finished: FAILURE
      

       

       

        Attachments

          Activity

          Hide
          p4paul Paul Allen added a comment -

          Found the bug in P4Java and verified the fix in Jenkins p4-plugin.  Planning to release P4Java next week along with the plugin.

          Show
          p4paul Paul Allen added a comment - Found the bug in P4Java and verified the fix in Jenkins p4-plugin.  Planning to release P4Java next week along with the plugin.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Paul Allen
          Path:
          pom.xml
          http://jenkins-ci.org/commit/p4-plugin/ce840a7fe46684e3040be85869d46172d1fe811d
          Log:
          Update P4Java to 2017.2.1635107

          Fix for ShiftJIS charset JENKINS-49916
          Reconcile -w cleanup of symlinks JENKINS-49393

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Paul Allen Path: pom.xml http://jenkins-ci.org/commit/p4-plugin/ce840a7fe46684e3040be85869d46172d1fe811d Log: Update P4Java to 2017.2.1635107 Fix for ShiftJIS charset JENKINS-49916 Reconcile -w cleanup of symlinks JENKINS-49393
          Hide
          p4paul Paul Allen added a comment -

          Ready for release.

          Show
          p4paul Paul Allen added a comment - Ready for release.
          Hide
          p4paul Paul Allen added a comment -

          Released in 1.8.7

          Show
          p4paul Paul Allen added a comment - Released in 1.8.7

            People

            Assignee:
            p4paul Paul Allen
            Reporter:
            p4karl Karl Wirth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: