Skip to content

Commit

Permalink
MID-3957 fixed session expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Nov 15, 2017
1 parent 4ffeee9 commit d880024
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Expand Up @@ -63,7 +63,7 @@ public class ProgressReporter implements ProgressListener {

private MidPointApplication application;
private Map<String, String> nameCache = new HashMap<>();
private ProgressDto progress;
private ProgressDto progress = new ProgressDto();
private boolean abortRequested;

private Future future;
Expand All @@ -83,8 +83,6 @@ public class ProgressReporter implements ProgressListener {
public ProgressReporter(String id, MidPointApplication application) {
this.id = id;
this.application = application;

progress = new ProgressDto();
}

public String getId() {
Expand Down
Expand Up @@ -77,7 +77,10 @@ public void onCreated(Session session) {

@Override
public void onUnbound(String sessionId) {
for (Key key : reporters.keySet()) {
Set<Key> keys = new HashSet();
keys.addAll(reporters.keySet());

for (Key key : keys) {
if (!key.sessionId.equals(sessionId)) {
continue;
}
Expand Down
Expand Up @@ -267,6 +267,8 @@ public void updateAjaxAttributes(AbstractDefaultAjaxBehavior behavior, AjaxReque
}
});

getSessionListeners().add(progressReporterManager);

//descriptor loader, used for customization
new DescriptorLoader().loadData(this);
}
Expand Down
3 changes: 1 addition & 2 deletions gui/admin-gui/src/main/resources/application.yml
Expand Up @@ -5,8 +5,7 @@ spring:
server:
display-name: MidPoint
session:
cookie:
max-age: 900
timeout: 900
tomcat:
basedir: ${midpoint.home}

Expand Down

0 comments on commit d880024

Please sign in to comment.