HughP / simal

Automatically exported from code.google.com/p/simal
0 stars 0 forks source link

Generated URL for project added through REST API not always correct #295

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When you add a project to the REST API the response contains a URL to view the 
added project (Issue 287). However, this URL is not always correct.

It's built up using the base url of the web app, followed by 
'/project/simalID/' + the id. However, when I deploy Simal in Tomcat there's a 
context path, which means that instead of something like

  http://localhost:8080/project/simalID/prj1234

I would need 

  http://localhost:8080/simal-webapp-0.2.4/project/simalID/prj1234

The impace is that when I have my application deployed in a web container on a 
separate context path, the returned URL is invalid.

Original issue reported on code.google.com by sander.v...@oucs.ox.ac.uk on 18 Jun 2010 at 2:41

GoogleCodeExporter commented 9 years ago

Original comment by sander.v...@oucs.ox.ac.uk on 18 Jun 2010 at 2:50

GoogleCodeExporter commented 9 years ago

Original comment by sander.v...@oucs.ox.ac.uk on 30 Jun 2010 at 2:35