Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004-2008 Jive Software, 2016-2025 Ignite Realtime Foundation. All rights reserved.
* Copyright (C) 2004-2008 Jive Software, 2016-2026 Ignite Realtime Foundation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -316,8 +316,11 @@ private boolean authUserFromRequest(final HttpServletRequest request) {

@Override
public void destroy() {
// reset excludes to an empty set to prevent state carry over
excludes = Collections.newSetFromMap(new ConcurrentHashMap<>());
// Intentionally left empty. The static 'excludes' set is shared across filter instances
// so that plugin-registered excludes survive admin-console restarts. Plugins are
// responsible for calling removeExclude() in their destroyPlugin() lifecycle.
// Web.xml excludes are re-added by init() on each restart (Set semantics prevent duplicates).
// Setup-mode excludes are cleaned up explicitly in AdminConsolePlugin.startup().
}

private String getRedirectURL(HttpServletRequest request, String loginPage,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2004-2008 Jive Software, 2016-2025 Ignite Realtime Foundation. All rights reserved.
* Copyright (C) 2004-2008 Jive Software, 2016-2026 Ignite Realtime Foundation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -283,8 +283,12 @@ protected void startup() {
try {
adminServer.start(); // excludes initialised

if(XMPPServer.getInstance().isSetupMode()) {
if (XMPPServer.getInstance().isSetupMode()) {
AuthCheckFilter.loadSetupExcludes();
} else {
// Explicitly remove setup-only excludes. If the admin console is restarting
// after setup completion, destroy() no longer clears them automatically.
Arrays.stream(JiveGlobals.setupExcludePaths).forEach(AuthCheckFilter::removeExclude);
}

// Log the ports that the admin server is listening on.
Expand Down
Loading