[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title Jesse Glick commented on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters Daniel Beck no it only uses the Java 7+ methods as a fallback to gather diagnostics. Since we now require Java 7, the whole method should be rewritten to use java.nio.file from the start. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title Daniel Beck commented on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters Jesse Glick The existing implementation of Util.deleteFile(File) already uses Files.delete(Path) if available, or what are you referring to? Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title Jesse Glick commented on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters Jenkins now requires Java 7 so there is no reason not to switch to the newer, probably more reliable APIs. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title Croesus Kall commented on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters dan tran I think he means the environment variable set to the jenkins process itself. If you are using for example an rpm based version of jenkins, you can set this in the file: /etc/sysconfig/jenkins and add the UTF-8 setting to the variable JENKINS_JAVA_OPTIONS Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title dan tran commented on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters More clarification. 1. Our Master on is on SLES11.3 with UTF-8 encoding setup correctly. I can see it from jenkins system info 2. Connect to SLES12 slave via ssh to a user account that uses csh as login shell ( i cant change it to bash). For some reason, this slave does not have LANG configured and therefor the slave system info show file.encoding=ANSI_X3.4-1968. This causes our build log shows 'funny' chars when encounter none ascii 3. To fix this, I ended up to set up LANG=en_US.UTF-8 env, the slave JVM's file.encoding=UTF-8 at the slave node configuration. This solves the log display issue However, I am not able to remove my job workspace which has none English chars in filenames. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title dan tran commented on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters @Daniel Beck could you be more specific, the closest I can guest is the same place node- >configuration >node properties ->environment. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title dan tran commented on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters Encounter same issue Caused by: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /space/jenkins//workspace/xxx-ui/node_modules/grunt-contrib-compress/node_modules/archiver/node_modules/file-utils/node_modules/isbinaryfile/tests/fixtures/03_��.rst at sun.nio.fs.UnixPath.encode(UnixPath.java:147) at sun.nio.fs.UnixPath.(UnixPath.java:71) Where the file name a Russian file name Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title dan tran edited a comment on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters Encounter same issueCaused by: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /space/jenkins//workspace/xxx-ui/node_modules/grunt-contrib-compress/node_modules/archiver/node_modules/file-utils/node_modules/isbinaryfile/tests/fixtures/03_��__.rst at sun.nio.fs.UnixPath.encode(UnixPath.java:147) at sun.nio.fs.UnixPath.(UnixPath.java:71) My jenkins STS 1.609 is on linux SLES12 x64 Java 8 Where the file name a Russian file name Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title Steve HAmmond commented on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters I added Dfile.encoding=UTF-8 in node configuration >Node Properties->Environment Variables using JAVA_TOOL_OPTIONS and in the master system configuration->Global Properties->Environment Variables the same. Still having the same error. System Properties Name ↓ Value file.encoding ANSI_X3.4-1968 file.encoding.pkg sun.io file.separator / java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.awt.printerjob sun.print.PSPrinterJob java.class.path slave.jar java.class.version 50.0 java.endorsed.dirs /home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/endorsed java.ext.dirs /home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/ext:/usr/java/packages/lib/ext java.home /home/installs/java-1.6.0/jdk1.6.0_41/jre java.io.tmpdir /tmp java.library.path /home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/amd64/server:/home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/amd64:/home/installs/java-1.6.0/jdk1.6.0_41/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib java.runtime.name Java(TM) SE Runtime Environment java.runtime.version 1.6.0_41-b02 java.specification.name Java Platform API Specification java.specification.vendor Sun Microsystems Inc. java.specification.version 1.6 java.vendor Sun Microsystems Inc. java.vendor.url http://java.sun.com/ java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi java.version 1.6.0_41 java.vm.info mixed mode java.vm.name Java HotSpot(TM) 64-Bit Server VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Sun Microsystems Inc. java.vm.specification.version 1.0 java.vm.vendor Sun Microsystems Inc. java.vm.version 20.14-b01 line.separator \n os.arch amd64 os.name Linux os.version 3.8.13-55.1.2.el6uek.x86_64 path.separator : sun.arch.data.model 64 sun.boot.class.path /home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/resources.jar:/home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/rt.jar:/home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/sunrsasign.jar:/home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/jsse.jar:/home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/jce.jar:/home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/charsets.jar:/home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/modules/jdk.boot.jar:/home/installs/java-1.6.0/jdk1.6.0_41/jre/classes sun.boot.library.path /home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/amd64 sun.cpu.endian little sun.cpu.isalist sun.io.unicode.encoding UnicodeLittle sun.java.command slave.jar sun.java.launcher SUN_STANDARD sun.jnu.encoding ANSI_X3.4-1968 sun.management.compiler HotSpot 64-Bit Tiered Compilers sun.os.patch.level unknown user.country US user.dir /home user.home /home user.language en user.name installs user.timezone Universal Environment Variables Name ↓ Value _ /home/installs/java-1.6.0/jdk1.6.0_41/bin/java HOME /home LD_LIBRARY_PATH /home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/amd64/server:/home/installs/java-1.6.0/jdk1.6.0_41/jre/lib/amd64:/home/installs/java-1.6.0/jdk1.6.0_41/jre/../lib/amd64 LOGNAME installs MAIL /var/mail/installs NLSPATH /usr/dt/lib/nls/msg/%L/%N.cat OLDPWD /home/installs PATH /usr/local/bin:/bin:/usr/bin PWD /home/installs SELINUX_LEVEL_REQUESTED SELINUX_ROLE_REQUESTED SELINUX_USE_CURRENT_RANGE SHELL /bin/sh SHLVL 1 SSH_CLIENT 10.241.4.166 52269 22 SSH_CONNECTION 10.241.4.166 52269 10.241.4.179 22 USER installs XFILESEARCHPATH /usr/dt/app-defaults/%L/Dt Thread Dump Channel reader thread: channel
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title Daniel Beck commented on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters I added Dfile.encoding=UTF-8 in node configuration>Node Properties->Environment Variables using JAVA_TOOL_OPTIONS and in the master system configuration->Global Properties->Environment Variables the same. Those are the environment variables passed to your builds, not to Jenkins itself and the slave processes, so this won't work. Change it where Jenkins (and/or slaves) are actually launched. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Title: Message Title Johannes Villmow commented on JENKINS-12610 Re: Util.deleteRecursive fails for files using unmappable characters I have the same problem. A unicode character in the filename was causing it. Once i deleted this file manually it worked. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Jesse Glick updated JENKINS-12610 Util.deleteRecursive fails for files using unmappable characters Change By: Jesse Glick (16/Jun/14 3:32 PM) Summary: java Util . io.IOException:Unabletodelete-DeletingProject deleteRecursivefailsforfilesusingunmappablecharacters This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Jesse Glick commented on JENKINS-12610 Util.deleteRecursive fails for files using unmappable characters Looks like the four calls to File.toPath should catch InvalidPathException and try to fall back gracefully to some other behavior; and Files.walkFileTree ought to be used where applicable. Not clear whether this would help the users who claim to be using UTF-8 already, or not using non-ASCII characters at all; they may be seeing an unrelated bug. Generally speaking, using java.nio.file methods is preferable because they give meaningful exceptions rather than just returning false when something is wrong. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [core] (JENKINS-12610) Util.deleteRecursive fails for files using unmappable characters
Daniel Beck commented on JENKINS-12610 Util.deleteRecursive fails for files using unmappable characters Too bad all comments are so old, more information would be helpful. (e.g. "dont have any unicode character on the build name" can still mean that there's a bad char in the workspace somewhere, and I'm don't know LANG=xx.UTF-8 implies -Dfile.encoding=UTF-8) All: If you experience this problem, please provide output from /systemInfo URL, and try to set -Dfile.encoding=UTF-8 on all nodes (master + slaves). This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.