-
Bug
-
Resolution: Cannot Reproduce
-
Low
-
None
-
3.3.0, 3.3.1
If you perform a backup with the backup client, and you specify http:// for the base URL rather than https:// (if Stash is configured to expect HTTPS), then the backup will fail with the following error:
dlahn@fecru35pg:/opt/atlassian/stash-backup-client-1.6.0$ sudo java -jar stash-backup-client.jar 2015-01-14 14:00:40,324 INFO Initializing 2015-01-14 14:00:43,611 ERROR A backup could not be created. Reason: Unable to determine the current character, it is not a string, number, array, or object The current character read is '<' with an int value of 60 Unable to determine the current character, it is not a string, number, array, or object line number 1 index number 0 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> ^ groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object The current character read is '<' with an int value of 60 Unable to determine the current character, it is not a string, number, array, or object line number 1 index number 0 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> ^ at groovy.json.internal.JsonParserCharArray.decodeValueInternal(JsonParserCharArray.java:216) ~[groovy-all-2.3.6.jar:2.3.6] at groovy.json.internal.JsonParserCharArray.decodeValue(JsonParserCharArray.java:166) ~[groovy-all-2.3.6.jar:2.3.6] ... 13 more frames available in the log file
This error message should be amended by provide more details about where the problem is coming from. (i.e. the base URL doesn't match.)
The backup client 1.9.1 and subsequent versions will include clearer error messages when the base URL is specified with an incorrect protocol (that is http instead of https and vice versa). However the error, as specified in the issue's description, could not reproduced. Hence this issue will be closed as 'Cannot reproduce' for now.
Please reopen this issue if you are able to reproduce it, with detailed steps and the versions of all the components involved (Stash, Stash Backup Client, proxies, Java version, etc.).