-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading of resources fail if deployed under custom context #1681
Comments
Tested on GeoNetwork 3.2.0. Same problem, but different behaviour. Also, there is now an exception in the log: |
GeoNetwork does not support that and it does not support root context too. This would require probably quite some work in different places (eg. dataDirectory, harvester, UI resources loader) |
Thanks for clarification. I was not aware of that as our v2.x installation works fine under a context like "my/catalogue", hence I thought it was a bug/regression. So does this means that GeoNetwork v3 installations must be deployed under "geonetwork" or are other single-word contexs like "catalogue" are supported too? |
Good to know, I was thinking that both root context or custom context was not supported since the beginning.
Must be deployed on any single word context. Usually rename the WAR and you're done. |
Well, not sure it was supported but it surely was working.. ;-) IIRC were using it like this since v2.4.
Ok, thanks. I usually prefer to unpack the war and use a tomcat context xml to point to the directory. Using the xml it allows me to add JNDI settings and it's also easier to change the config files.. I'll have to check if we can use a redirect from our old custom endpoint to the new one since we don't want to break existing clients. Otherwise we'll have to stick to v2 I guess. |
When GeoNetwork is deployed under a custom context like http://localhost:8080/my/geonetwork (via tomcat
my#geonetwork.xml
context file) some UI resources are not loaded properly. E.g. in the following URL the classification names are empty, see screenshot.http://localhost:8080/my/geonetwork/srv/eng/admin.console#/classification/categories
Furthermore changing the language in the upper right dropdown forwards to the wrong place. E.g. when selecting "Francais" the clients directs to:
http://localhost:8282/my/geonetwork/fre/eng/admin.console#/classification/categories
The text was updated successfully, but these errors were encountered: