mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-09-12 07:10:07 +02:00
Add more debug...
This commit is contained in:
parent
ea5f1afa40
commit
37e11a5b05
@ -190,10 +190,10 @@ public class MindmapController extends BaseController {
|
|||||||
final User lastEditor = mindmap.getLastEditor();
|
final User lastEditor = mindmap.getLastEditor();
|
||||||
boolean editedBySameUser = lastEditor == null || user.identityEquality(lastEditor);
|
boolean editedBySameUser = lastEditor == null || user.identityEquality(lastEditor);
|
||||||
if (outdated && !editedBySameUser) {
|
if (outdated && !editedBySameUser) {
|
||||||
throw new SessionExpiredException("Map has been updated by " + (lastEditor.getEmail()) + ",Timestamp:" + timestamp + "," + mindmap.getLastModificationTime().getTimeInMillis(), lastEditor);
|
throw new SessionExpiredException("Map has been updated by " + (lastEditor.getEmail()) + ",Timestamp:" + timestamp + "," + mindmap.getLastModificationTime().getTimeInMillis() + ", User:" + lastEditor.getId() + ":" + user.getId(), lastEditor);
|
||||||
}
|
}
|
||||||
} else if (outdated) {
|
} else if (outdated) {
|
||||||
throw new MultipleSessionsOpenException("Sessions:" + session + ":" + lockInfo.getSession() + ",Timestamp: " + timestamp + ": " + lockInfo.getTimestamp());
|
throw new MultipleSessionsOpenException("Sessions:" + session + ":" + lockInfo.getSession() + ",Timestamp: " + timestamp + ": " + lockInfo.getTimestamp() + ",User:");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new SessionExpiredException("Different Users.", lockInfo.getUser());
|
throw new SessionExpiredException("Different Users.", lockInfo.getUser());
|
||||||
|
Loading…
Reference in New Issue
Block a user