Hide Forgot
Description of problem: Previously, we were able to use single auto.xml file with relative installation path (could contain normal slash as file separator) to install EAP on all supported platforms, but automated installation on windows will fail now because of path validation. Version-Release number of selected component (if applicable): EAP 6.2.0.CR3.1 How reproducible: Always Steps to Reproduce: 1. Copy installer and auto.xml file from attachment into same location. 2. Run: > java -jar jboss-eap-6.2.0.CR3.1-installer.jar auto.xml Actual results: Installation will fail with: Please do not use a path that contains special characters (; | [ ] :), as this may cause problems for some installed components, also ensure there are no consecutive spaces. [ Automated installation FAILED! ] Expected results: Relative path can be used in auto.xml to install EAP on windows again.
Have allowed "/" to be used for the install path if you modify it. http://git.app.eng.bos.redhat.com/izpack.git/commit/?h=izpack-wip&id=c6830e2e3375663d1d19bc4f7b074b308b266e77
This still fails with 6.3.0.ER4 on windows, however we changed our automation long time ago to workaround this and since there is no other requirement for this I would close it. What do you think Miles?
Hello, If relative paths are no longer a requirement I would agree to have this closed. Otherwise could you please specify how the relative path would be defined. Would the relative path be based on the user's current directory or where the auto.xml is located (this may not be intuitive to the user unless is documented somewhere)? Also I would think the path have to start with ".." or "<some_valid_characters>".
Starting from C:\Users\John\Desktop With relative path <installpath>help\John\q\copy/me</installpath> Installation was located in C:\Users\John\Desktop\help\John\q\copy\me See also https://bugzilla.redhat.com/show_bug.cgi?id=1063253
Created attachment 895712 [details] installation scrip
Trying to use installation script from attachment 895712 [details] (<installpath>test\test</installpath>) I see: W:\>java -jar jboss-eap-6.3.0.ER4-installer.jar auto.xml [ Starting automated installation ] Please do not use a path that contains special characters such as (; | [ ] :) or multiple consecutive spaces, as this may cause problems for some installed components. [ Automated installation FAILED! ] I would expect that installer will use relative path based upon user's current directory, but as you've said, this might not be intuitive for everyone so I would create documentation BZ once we resolve this. I think it should work like: On Unix: - path is starting with '/' -> absolute path - path is starting with <String> or ../ -> relative On Windows: - path is starting with '[a-Z]:\' absolute path - path is starting with <String> or ..\ -> relative with some kind of standard validation (it is writeable, doesn't contain illegal chars, you know the rest :) ) We have to cover also some special case like './test', but again, we can specify what cases are supported and add this to the documentation. There is already a chapter dedicated to the automatic installation script usage [1] (however as you can see, doc team didn't touch it for a very long time :/). [1] - http://documentation-devel.engineering.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html/Installation_Guide/sect-Automated_Installation.html
See bug 1063253, comment 3
Fix for BZ1063253 [1] covers also this issue. Verified on EAP 6.3.0.ER5 installer. [1] - https://code.engineering.redhat.com/gerrit/gitweb?p=izpack.git;a=commit;h=4c86693618afb49078b229237e33c34ad1ee0051