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

cvs update fails if there are non-ascii characters in filename

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cvs-plugin
    • None
    • Platform: All, OS: All

      Hudson job build fails if a filename contains swedish non-ascii character.
      It works fine in command line cvs client

      started
      [workspace] $ cvs -q -z3 update -PdC -D "Wednesday, November 12, 2008 9:48:21 AM
      UTC"
      U docs/Invalid Svensk Tecken åäö1.txt
      U docs/Invalid Svensk Tecken åäö2.txt
      U docs/Invalid Svensk Tecken åäö3.txt
      $ computing changelog
      cvs log: nothing known about Invalid Svensk Tecken ���1.txt
      cvs log: nothing known about Invalid Svensk Tecken ���2.txt
      cvs log: nothing known about Invalid Svensk Tecken ���3.txt
      ERROR: cvs exited with error code 1
      Command line was [Executing 'cvs' with arguments:
      '-d:ext:dailybuild@cvs.cinnober.com:/cvs/liffe'
      'log'
      '-d'
      '>=2008-11-11'
      '--'
      'docs/Invalid Svensk Tecken ���1.txt'
      'docs/Invalid Svensk Tecken ���2.txt'
      'docs/Invalid Svensk Tecken ���3.txt'

      The ' characters around the executable and arguments are
      not part of the command.
      ] in /home/cin01/.hudson/jobs/CvsTest/workspace
      Input text:
      START==>null<==END
      Working directory is /home/cin01/.hudson/jobs/CvsTest/workspace
      cvs exited with error code 1
      Command line was [Executing 'cvs' with arguments:
      '-d:ext:dailybuild@cvs.dummy.com:/cvs/repository'
      'log'
      '-d'
      '>=2008-11-11'
      '--'
      'docs/Invalid Svensk Tecken ���1.txt'
      'docs/Invalid Svensk Tecken ���2.txt'
      'docs/Invalid Svensk Tecken ���3.txt'

      The ' characters around the executable and arguments are
      not part of the command.
      ] in /home/cin01/.hudson/jobs/CvsTest/workspace
      Input text:
      START==>null<==END
      at
      hudson.org.apache.tools.ant.taskdefs.AbstractCvsTask.runCommand(AbstractCvsTask.java:387)
      at
      hudson.org.apache.tools.ant.taskdefs.AbstractCvsTask.execute(AbstractCvsTask.java:457)
      at
      hudson.org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask.execute(ChangeLogTask.java:293)
      at hudson.scm.CVSSCM$4.invoke(CVSSCM.java:793)
      at hudson.scm.CVSSCM$4.invoke(CVSSCM.java:728)
      at hudson.FilePath.act(FilePath.java:389)
      at hudson.scm.CVSSCM.calcChangeLog(CVSSCM.java:728)
      at hudson.scm.CVSSCM.checkout(CVSSCM.java:298)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:667)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:261)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:235)
      at hudson.model.Run.run(Run.java:817)
      at hudson.model.Build.run(Build.java:88)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:88)
      Sending e-mails to: me
      finished: FAILURE

          [JENKINS-2614] cvs update fails if there are non-ascii characters in filename

          rusalt created issue -

          It appears that the encoding that CVS uses and the encoding Hudson uses are not
          matching.

          Does this build run on a slave?

          Can you go to $HUDSON_HOME on a file system, then zip up "build.xml" and "log"
          file and attach it? Those would help me track down where the problem is.

          Kohsuke Kawaguchi added a comment - It appears that the encoding that CVS uses and the encoding Hudson uses are not matching. Does this build run on a slave? Can you go to $HUDSON_HOME on a file system, then zip up "build.xml" and "log" file and attach it? Those would help me track down where the problem is.
          Kohsuke Kawaguchi made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          rusalt added a comment -

          Created an attachment (id=442)
          Build.xml and log files

          rusalt added a comment - Created an attachment (id=442) Build.xml and log files

          rusalt added a comment -

          We do not use slave build servers for a moment.
          I've attached files you asked.

          rusalt added a comment - We do not use slave build servers for a moment. I've attached files you asked.

          azgard added a comment -
              • Issue 3979 has been marked as a duplicate of this issue. ***

          azgard added a comment - Issue 3979 has been marked as a duplicate of this issue. ***

          azgard added a comment -

          Please review this issue! This is really a big problem with non ascii filenames.

          azgard added a comment - Please review this issue! This is really a big problem with non ascii filenames.
          Alan Harder made changes -
          Link New: This issue is duplicated by JENKINS-5304 [ JENKINS-5304 ]
          dschettl made changes -
          Link New: This issue is duplicated by JENKINS-4241 [ JENKINS-4241 ]

          dschettl added a comment -

          What is the status of this problem?

          At hudson 1.359 the problem still exists.

          I have many project with this "umlauts"-problem and I can test on my system any new version of your code. Just ask ....

          dschettl added a comment - What is the status of this problem? At hudson 1.359 the problem still exists. I have many project with this "umlauts"-problem and I can test on my system any new version of your code. Just ask ....

            mc1arke Michael Clarke
            rusalt rusalt
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: