Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
a8bcbc0d
Commit
a8bcbc0d
authored
Dec 20, 2016
by
Dave Cridland
Committed by
daryl herzmann
Dec 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1031 Ensure manual index rebuilds work (#718)
parent
5f3fab0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
archiving-settings.jsp
src/plugins/monitoring/src/web/archiving-settings.jsp
+10
-4
No files found.
src/plugins/monitoring/src/web/archiving-settings.jsp
View file @
a8bcbc0d
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
else
{
else
{
var
rebuildProgress
=
document
.
getElementById
(
'
rebuildProgress
'
);
var
rebuildProgress
=
document
.
getElementById
(
'
rebuildProgress
'
);
rebuildProgress
.
innerHTML
=
"
100
"
;
rebuildProgress
.
innerHTML
=
"
100
"
;
Effect
.
Fade
(
'
rebuildElement
'
);
//
Effect.Fade('rebuildElement');
}
}
}
}
</script>
</script>
...
@@ -174,9 +174,14 @@
...
@@ -174,9 +174,14 @@
Cookie
csrfCookie
=
CookieUtils
.
getCookie
(
request
,
"csrf"
);
Cookie
csrfCookie
=
CookieUtils
.
getCookie
(
request
,
"csrf"
);
String
csrfParam
=
ParamUtils
.
getParameter
(
request
,
"csrf"
);
String
csrfParam
=
ParamUtils
.
getParameter
(
request
,
"csrf"
);
Map
errors
=
new
HashMap
();
String
errorMessage
=
""
;
if
(
csrfCookie
==
null
||
csrfParam
==
null
||
!
csrfCookie
.
getValue
().
equals
(
csrfParam
))
{
if
(
csrfCookie
==
null
||
csrfParam
==
null
||
!
csrfCookie
.
getValue
().
equals
(
csrfParam
))
{
rebuildIndex
=
false
;
rebuildIndex
=
false
;
update
=
false
;
update
=
false
;
errors
.
put
(
"csrf"
,
""
);
errorMessage
=
"Archive Index rebuild failed."
;
}
}
csrfParam
=
StringUtils
.
randomString
(
16
);
csrfParam
=
StringUtils
.
randomString
(
16
);
CookieUtils
.
setCookie
(
request
,
response
,
"csrf"
,
csrfParam
,
-
1
);
CookieUtils
.
setCookie
(
request
,
response
,
"csrf"
,
csrfParam
,
-
1
);
...
@@ -188,12 +193,13 @@
...
@@ -188,12 +193,13 @@
}
}
if
(
rebuildIndex
)
{
if
(
rebuildIndex
)
{
archiveIndexer
.
rebuildIndex
();
if
(
archiveIndexer
.
rebuildIndex
()
==
null
)
{
errors
.
put
(
"rebuildIndex"
,
""
);
errorMessage
=
"Archive Index rebuild failed."
;
}
}
}
// Update the session kick policy if requested
// Update the session kick policy if requested
Map
errors
=
new
HashMap
();
String
errorMessage
=
""
;
if
(
update
)
{
if
(
update
)
{
// New settings for message archiving.
// New settings for message archiving.
boolean
metadataArchiving
=
request
.
getParameter
(
"metadataArchiving"
)
!=
null
;
boolean
metadataArchiving
=
request
.
getParameter
(
"metadataArchiving"
)
!=
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment