windows file.separator in url strings

Post Reply
jszpyrka
Posts: 13
Joined: 06 Dec 2012, 11:28

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
User avatar
jonathan.carter
Posts: 1087
Joined: 04 Feb 2009, 15:44

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
Essential Project Team
jszpyrka
Posts: 13
Joined: 06 Dec 2012, 11:28

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
You do not have the required permissions to view the files attached to this post.
User avatar
jonathan.carter
Posts: 1087
Joined: 04 Feb 2009, 15:44

Thanks for resolving this and reporting back. We'll get that resolved and into the next release.

Jonathan
Essential Project Team
Post Reply