-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Linux
My build utput produced by "mvn install" looks a bit like this:
/home/ca31319/archdata/jenkins/jobs/Epdservices/modules/org.delta$org.delta.epd.services/builds/2014-01-06_14-08-56/archive/org.delta/org.delta.epd.services/1.0-SNAPSHOT/org.delta.epd.services-1.0-SNAPSHOT.war
Notice the "$" in the module result.
This file name is passed on the command line to weblogic.jar without the "$" being escaped - hence the file is not found.
/usr/java/jdk1.7.0_45/jre/bin/java -Xms256M -Xmx256M -cp /opt/oracle/wls12120/wlserver/server/lib/weblogic.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name "EPD Services" -source /home/ca31319/archdata/jenkins/jobs/Epdservices/modules/org.delta$org.delta.epd.services/builds/2014-01-06_14-08-56/archive/org.delta/org.delta.epd.services/1.0-SNAPSHOT/org.delta.epd.services-1.0-SNAPSHOT.war -targets myserver -adminurl t3://myhost:7001 -user weblogic -password mypassword -deploy
If I cut and paste this into a terminal and escape the $ - it works fine.
Please could you provide a fix?
[JENKINS-21244] Un-escaped $ in module file name passed in command line to weblogic.jar results in the input file not found deployer
Description |
New:
My build utput produced by "mvn install" looks a bit like this: /home/ca31319/archdata/jenkins/jobs/Epdservices/modules/org.delta$org.delta.epd.services/builds/2014-01-06_14-08-56/archive/org.delta/org.delta.epd.services/1.0-SNAPSHOT/org.delta.epd.services-1.0-SNAPSHOT.war Notice the "$" in the module result. This file name is passed on the command line to weblogic.jar without the "$" being escaped - hence the file is not found. /usr/java/jdk1.7.0_45/jre/bin/java -Xms256M -Xmx256M -cp /opt/oracle/wls12120/wlserver/server/lib/weblogic.jar weblogic.Deployer -debug -stage -remote -verbose -upload -name "EPD Services" -source /home/ca31319/archdata/jenkins/jobs/Epdservices/modules/org.delta$org.delta.epd.services/builds/2014-01-06_14-08-56/archive/org.delta/org.delta.epd.services/1.0-SNAPSHOT/org.delta.epd.services-1.0-SNAPSHOT.war -targets myserver -adminurl t3://rc-lx433.ut.dentegra.lab:7001 -user weblogic -password weblogic001 -deploy If I cut and paste this into a terminal and escape the $ - it works fine. Please could you provide a fix? |
|
Environment | New: Linux |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Labels | New: weblogic-deployer-plugin-2.10 |
Labels | Original: weblogic-deployer-plugin-2.10 | New: weblogic-deployer-plugin-2.11 |
Labels | Original: weblogic-deployer-plugin-2.11 | New: weblgoc-deployer-plugin-2.13 |
Labels | Original: weblgoc-deployer-plugin-2.13 | New: weblogic-deployer-plugin-2.14 |
A "fix" for this issue broke the functionality of the plugin for me.
In src/main/java/org/jenkinsci/plugins/deploy/weblogic/deployer/WebLogicDeployer.java the following line is added:
The result is that the source parameter is passed with two pairs of quotes (""/path/to/file""), of which the inner pair remains in the String that is being processed by the WebLogic deployer.
This finally results in a FileNotFoundException: