Page 1 of 1

windows file.separator in url strings

Posted: 14 Feb 2013, 21:34
by jszpyrka
Hello,

in file uml_model.jsp there is a line

Code: Select all

String imagePathPrefix = "graph_images" + FS + "uml" + FS;
This value is transfered to html img/@src attribute and if tomcat is running under windows results in "graph_images\uml\..." instead of "graph_images/uml/..."

Best Regards
Jacek Szpyrka

Re: windows file.separator in url strings

Posted: 18 Feb 2013, 18:51
by jonathan.carter
We'll take a look at that but we have been using the UML models successfully on Windows for some time.

Is this causing a problem, failure to render the UML models or would you like to report a potential issue / inconsistency?

Thanks

Jonathan

Re: windows file.separator in url strings

Posted: 19 Feb 2013, 09:49
by jszpyrka
Yes, it produces errors.
Below is screenshot where You can see that only @alt attribute text is presented and and that backslashes in @src attribute is the reason.
error.png
http://127.0.0.1:8080/essential_viewer_ ... 461464.png - this does not work (the image is prepared properly but is not accessible via url with backslashes)

http://127.0.0.1:8080/essential_viewer_ ... 461464.png - this work

Temporarily I changed mentioned line in uml_model.jsp to

Code: Select all

String imagePathPrefix = "graph_images" + "/" + "uml" + "/";
and it works (prepares files in filesystem and provides access via browser and tomcat server).

Best Regards
Jacek Szpyrka

Re: windows file.separator in url strings

Posted: 22 Feb 2013, 17:54
by jonathan.carter
Thanks for resolving this and reporting back. We'll get that resolved and into the next release.

Jonathan