server.bat for local data repository does not work if path has spaces
When trying to setup a local datarepo using the included DataRepositoryServer.zip files, I get an error when trying to execute the server.bat. It appears as though the script is not setup to handle paths with spaces.
Comments
-
Hi,
We'll test on our side to see if can reproduce the issue and will follow up if we find anything, thanks!0 -
Hi,
We are not able to reproduce the issue you are seeing. Could you send us the full console output so we can see what command was run and anything the script might have logged before it failed?0 -
I have nuked my install due to another issue. After I reinstall, if I have the same issue I will repost with the full info or with a my bad.
0 -
I reinstalled 9.10.7, copied the datarepository zip from https://parasoft.force.com/customerportal/MyProducts and placed it into 2 separate folders under the root of my D drive.
1) Test Folder With Spaces
2) TestFolderWithoutSpacesI then ran the server.bat file within each and below are the console results from my windows CMD prompt
1) Test Folder With Spaces
2) TestFolderWithoutSpaces
0 -
Hi,
We're going to see if putting it on a drive that is not C will reproduce the issue.0 -
Hi,
Putting it on the D drive did the trick, we are able to reproduce the issue. We'll start working on a fix.0 -
The attached zip contains an updated server.bat. Feel free to try it to see if it works for you. Thanks.
0 -
Thank you for the quick turnaround on this.
0 -
In testing the script, it appears the folder paths are holding on to an extra \ but not a big deal since the paths are still created. I have added some echos to show the folder paths for the repositories and logs for reference.
The issue now is that the TDM portion appears to have an issue with the else statement although spacing looks correct. Is TDM necessary for the data repo?
0 -
Hi,
No TDM is not required. The script by default has some basic settings that for TDM that can be set to empty strings to disable that portion of the script.0 -
Ok, I was just curious as before (in the path without spaces above), I received an error for TDM because connection was refused. With the new script, I get an else statement failure.
0 -
-
thank you. Now I get the same failure to connect to local host error for both paths, with and without spaces
0