Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
8b593a7e
Commit
8b593a7e
authored
9 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-1828: remove all redirections in the case of an assessment in assessment mode
parent
a06ec676
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/core/commons/fullWebApp/BaseFullWebappController.java
+16
-0
16 additions, 0 deletions
...lat/core/commons/fullWebApp/BaseFullWebappController.java
with
16 additions
and
0 deletions
src/main/java/org/olat/core/commons/fullWebApp/BaseFullWebappController.java
+
16
−
0
View file @
8b593a7e
...
@@ -237,6 +237,8 @@ public class BaseFullWebappController extends BasicController implements DTabs,
...
@@ -237,6 +237,8 @@ public class BaseFullWebappController extends BasicController implements DTabs,
listenTo
(
assessmentGuardCtrl
);
listenTo
(
assessmentGuardCtrl
);
assessmentGuardCtrl
.
getInitialComponent
();
assessmentGuardCtrl
.
getInitialComponent
();
lockStatus
=
LockStatus
.
popup
;
lockStatus
=
LockStatus
.
popup
;
//as security remove all
removeRedirects
(
usess
);
}
else
{
}
else
{
// present an overlay with configured afterlogin-controllers or nothing if none configured.
// present an overlay with configured afterlogin-controllers or nothing if none configured.
// presented only once per session.
// presented only once per session.
...
@@ -278,6 +280,20 @@ public class BaseFullWebappController extends BasicController implements DTabs,
...
@@ -278,6 +280,20 @@ public class BaseFullWebappController extends BasicController implements DTabs,
GlobalStickyMessage
.
registerForGlobalStickyMessage
(
this
,
getIdentity
());
GlobalStickyMessage
.
registerForGlobalStickyMessage
(
this
,
getIdentity
());
}
}
/**
* Remove all possible redirect commands in session.
*
* @param usess
*/
private
void
removeRedirects
(
UserSession
usess
)
{
usess
.
removeEntry
(
"AuthDispatcher:entryUrl"
);
usess
.
removeEntry
(
"AuthDispatcher:businessPath"
);
usess
.
removeEntry
(
"redirect-bc"
);
usess
.
removeEntryFromNonClearedStore
(
"AuthDispatcher:entryUrl"
);
usess
.
removeEntryFromNonClearedStore
(
"AuthDispatcher:businessPath"
);
usess
.
removeEntryFromNonClearedStore
(
"redirect-bc"
);
}
private
void
initializeBase
(
UserRequest
ureq
,
WindowManager
winman
,
ComponentCollection
mainPanel
)
{
private
void
initializeBase
(
UserRequest
ureq
,
WindowManager
winman
,
ComponentCollection
mainPanel
)
{
// component-id of mainPanel for the window id
// component-id of mainPanel for the window id
mainVc
.
contextPut
(
"o_winid"
,
mainPanel
.
getDispatchID
());
mainVc
.
contextPut
(
"o_winid"
,
mainPanel
.
getDispatchID
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment