Skip to content

Commit

Permalink
FIX: user is not present on request
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Dec 9, 2022
1 parent 4ba0191 commit e46805d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public Map<String, Object> addToModel(Map<String, String[]> paramz, HttpServletR
final Optional<Folder> call = Optional.ofNullable(cmisService.getCurrentCMISSession(req).getObject(callId.get()))
.filter(Folder.class::isInstance)
.map(Folder.class::cast);
final Optional<CMISUser> optCmisUser = Optional.ofNullable(cmisService.getCMISUserFromSession(req));
final Optional<CMISUser> optCmisUser =
Optional.ofNullable(cmisService.getCMISUserFromSession(req))
.filter(cmisUser -> !cmisUser.isGuest());
if (call.isPresent()) {
return Stream.of(
new AbstractMap.SimpleEntry<>("page_title",
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jconon:
- ./cert.p12:/opt/cert.p12
- ./webapp_logs:/logs
- /tmp
command: java -Xmx256m -Xss512k -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787 -Dpage.call.detail=true -Dfile.encoding=UTF8 -Dspring.profiles.active=keycloak -Dserver.servlet.context-path= -Djava.security.egd=file:/dev/./urandom -jar /opt/jconon.war
command: java -Xmx256m -Xss512k -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787 -Dpage.call.detail=true -Dfile.encoding=UTF8 -Dspring.profiles.active=dev,keycloak -Dserver.servlet.context-path= -Djava.security.egd=file:/dev/./urandom -jar /opt/jconon.war
labels:
- SERVICE_NAME=##{SERVICE_NAME}##
- PUBLIC_NAME=cool-jconon.si.cnr.it

0 comments on commit e46805d

Please sign in to comment.