Bug 1107438

Summary: Install script in standalone zanata server download has several problems on Windows
Product: [Retired] Zanata Reporter: David Mason <damason>
Component: DeploymentAssignee: Damian Jansen <djansen>
Status: CLOSED UPSTREAM QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3CC: dchen, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-29 03:23:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Mason 2014-06-10 02:50:30 UTC
Description of problem:
In the zip for "Zanata Server (with installer)" downloaded from http://zanata.org/download/ the installation batch file at <server>/bin/zanata-installer/install.bat fails because the classpath is wrapped in single-quotes, which do not appear to be valid for quoting a command line argument on Windows. The installer will run if the contents of install.bat are changed to:

java -cp ".;groovy-all-2.1.5.jar" groovy.lang.GroovyShell InstallZanata.groovy


Once the installer is running, some of the inputs are skipped:

 - user is prompted for the version
 - user enters a version then presses <Enter>
 - user is prompted for the host
 - user is prompted for the port
 - user enters a port number and presses <Enter>
 - user is prompted for the schema
 - user is prompted for the username
 - etc.

so there is no opportunity to enter host, schema and so on. It is likely that the script is reading the windows line end "\r\n" as two separate newlines, in addition to not clearing the input buffer between prompts.


There is also no option to re-run the installer - if I make a mistake I have to wipe out the whole directory and start again.

Comment 1 Zanata Migrator 2015-07-29 03:23:44 UTC
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-241