Context Root does not work
Created by: Henrik tom Wörden
Steps to reproduce:
- use default profile of deploy
- add a file named
profiles/default/custom/caosdb-server/conf/ext/server.conf.d/50-default.conf
with contentCONTEXT_ROOT=/demo
and start the server - when starting, server prints in debug
caosdb-server_1 | [20-Feb-13 14:15:32:731] [INFO] [ServerProperties:173] - CONTEXT_ROOT=/demo
- visit
https://localhost:10443/demo
- Request to login in is shown, but no login is possible.
Imported comments:
By Timm Fitschen on 2020-02-14T09:13:25.649Z
Got it.
Problem with Cookie:
return new CookieSetting(
0,
cookieName,
Utils.URLEncodeWithUTF8(token.toString()),
CaosDBServer.getServerProperty(ServerProperties.KEY_CONTEXT_ROOT) + "/",
null,
null,
exp_in_sec,
true,
true);
The server should not add "/" to the path, when there is a context root.
By Henrik tom Wörden on 2020-02-13T15:01:07.863Z
Mit einem komplett sauberen deploy ging es. Aber kein login
By Henrik tom Wörden on 2020-02-13T15:00:48.098Z
changed the description
By Henrik tom Wörden on 2020-02-13T14:16:31.571Z
changed the description
By Henrik tom Wörden on 2020-02-13T14:14:00.557Z
reopened
By Henrik tom Wörden on 2020-02-13T14:13:52.606Z
changed the description
By Timm Fitschen on 2020-02-13T14:09:10.121Z
@henrik_indiscale please start in debug mode and check the output of the server:
[20-Feb-13 15:05:27:124] [INFO] [ServerProperties:173] - CONTEXT_ROOT=/demo
By Timm Fitschen on 2020-02-13T14:07:19.177Z
closed
By Timm Fitschen on 2020-02-13T14:07:14.811Z
@henrik_indiscale please add information and reopen
By Timm Fitschen on 2020-02-13T14:07:02.152Z
assigned to @henrik_indiscale and unassigned @timm.fitschen