Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a99469c
apache click -> freemarker migration plan
maximthomas Jul 6, 2026
a542bc6
Refactor migration plan: enhance incremental strategy for Apache Clic…
maximthomas Jul 6, 2026
bac61ff
Increment 0 and 1 migration
maximthomas Jul 6, 2026
f743009
Increment 2 migration
maximthomas Jul 7, 2026
ced37ee
Increment 3 migration
maximthomas Jul 7, 2026
4f07157
Add Windows guard to Step2Test for directory write permission validation
maximthomas Jul 7, 2026
1aa3a9e
Increment 4 migration
maximthomas Jul 7, 2026
5f009e9
Increment 5 migration
maximthomas Jul 7, 2026
44d4a7e
Increment 6 migration
maximthomas Jul 7, 2026
82c8b2b
Increment 7 migration
maximthomas Jul 7, 2026
27311c2
Increment 8 migration
maximthomas Jul 7, 2026
4505fb5
Increment 8 migration
maximthomas Jul 7, 2026
f2f860c
Remove freemarker migration docs
maximthomas Jul 8, 2026
8e858e5
Centralize onSecurityCheck() in ProtectedSetupPage base class
maximthomas Jul 8, 2026
7551d76
Add per-page render smoke tests for ConfiguratorServlet
maximthomas Jul 8, 2026
dd41f63
Set a template exception handler
maximthomas Jul 8, 2026
984dd0c
Use JSONObject for JSON escaping in SetupUtils.jsonResponse
maximthomas Jul 8, 2026
a9741b4
Fix potential NPE in SetupPage when type parameter is absent
maximthomas Jul 8, 2026
d83a9f1
fix failed tests
maximthomas Jul 8, 2026
4334332
Removes tale WAR manifests: click-related properties and libraries fr…
maximthomas Jul 9, 2026
ff2ce13
Fix stale docs: Update endpoint documentation for /ccversion/* to ref…
maximthomas Jul 9, 2026
0338588
Enhance documentation: Expand Javadoc for copyPublicFields method to …
maximthomas Jul 9, 2026
da119a8
Fix dead pushConfig / testNewInstanceUrl action paths
maximthomas Jul 9, 2026
67f0a86
Update step7.ftl to use isEmbedded variable for conditional rendering…
maximthomas Jul 9, 2026
3d2b5b6
Fix no FreeMarker HTML auto-escaping
maximthomas Jul 9, 2026
69c3a55
Add validation for allowed input keys in SetupPage and corresponding …
maximthomas Jul 9, 2026
2fd719c
Fix setup IT race: wait for config link to be enabled before clicking
maximthomas Jul 9, 2026
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
11 changes: 2 additions & 9 deletions openam-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,8 @@
<!-- Use all Legacy extlib Dependencies for now and scale down as necessary. -->

<dependency>
<groupId>org.apache.click</groupId>
<artifactId>click-nodeps</artifactId>
<version>${click.version}</version>
</dependency>

<dependency>
<groupId>org.apache.click</groupId>
<artifactId>click-extras</artifactId>
<version>${click.version}</version>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

package com.sun.identity.config;

import com.sun.identity.config.util.ProtectedPage;
import com.sun.identity.setup.AMSetupServlet;
import com.sun.identity.setup.AMSetupUtils;
import com.sun.identity.setup.HttpServletRequestWrapper;
Expand All @@ -39,17 +38,12 @@
import jakarta.servlet.http.HttpServletRequest;

import com.sun.identity.shared.Constants;
import org.openidentityplatform.openam.click.control.ActionLink;
import org.openidentityplatform.openam.config.servlet.ConfiguratorAction;
import org.openidentityplatform.openam.config.servlet.ProtectedSetupPage;

public class DefaultSummary extends ProtectedPage {

public ActionLink createConfig =
new ActionLink("createDefaultConfig", this, "createDefaultConfig");

public void onInit() {
super.onInit();
}

public class DefaultSummary extends ProtectedSetupPage {

@ConfiguratorAction
public boolean createDefaultConfig() {
HttpServletRequest req = getContext().getRequest();
HttpServletRequestWrapper request =
Expand Down Expand Up @@ -134,7 +128,6 @@ SetupConstants.CONFIG_VAR_BASE_DIR, getBaseDir(
debug.error("DefaultSummary.createDefaultConfig()", e);
}
writeToResponse( ((responseString!=null)?responseString:"") );
setPath(null);
return false;
}
}
44 changes: 18 additions & 26 deletions openam-core/src/main/java/com/sun/identity/config/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,53 +25,45 @@
* $Id: Options.java,v 1.7 2009/01/05 23:17:09 veiming Exp $
*
* Portions Copyrighted 2011-2015 ForgeRock AS.
* Portions Copyrighted 2026 3A Systems LLC.
*/

package com.sun.identity.config;

import com.sun.identity.config.util.TemplatedPage;
import com.sun.identity.setup.AMSetupServlet;
import com.sun.identity.setup.EmbeddedOpenDS;
import org.openidentityplatform.openam.click.control.ActionLink;
import org.forgerock.openam.upgrade.VersionUtils;
import org.openidentityplatform.openam.config.servlet.SetupPage;

public class Options extends TemplatedPage {
public class Options extends SetupPage {

public ActionLink createConfigLink = new ActionLink("upgradeLink", this, "upgrade" );
public ActionLink testUrlLink = new ActionLink("coexistLink", this, "coexist" );
public ActionLink pushConfigLink = new ActionLink("olderUpgradeLink", this, "olderUpgrade" );
// Unlike the wizard/summary pages, this has no onSecurityCheck() override: the old Options
// extended TemplatedPage (not ProtectedPage), so it stayed reachable even once OpenAM is
// configured - that's how a completed install reaches the upgrade-options branch below.
// SetupPage's default onSecurityCheck() (always true) already matches that.

protected boolean upgrade = false;
protected boolean upgradeCompleted = false;
protected boolean isOpenDS1x = false;
protected boolean debugOn = false;

private java.util.Locale configLocale = null;

protected String getTitle() {
return isNewInstall() ? "configuration.options.title" : "upgrade.title";
}
@Override
public void onInit() {
super.onInit();

boolean upgrade = !isNewInstall();
addModel("upgrade", Boolean.valueOf(upgrade));

public void doInit() {
upgrade = !isNewInstall();
upgradeCompleted = AMSetupServlet.isUpgradeCompleted();
boolean upgradeCompleted = AMSetupServlet.isUpgradeCompleted();
addModel("upgradeCompleted", Boolean.valueOf(upgradeCompleted));
addModel( "upgrade", Boolean.valueOf( upgrade ) );

if (upgrade) {
addModel("currentVersion", VersionUtils.getCurrentVersion());
addModel("currentVersion", VersionUtils.getCurrentVersion());
}

isOpenDS1x = EmbeddedOpenDS.isOpenDSVer1Installed();
boolean isOpenDS1x = EmbeddedOpenDS.isOpenDSVer1Installed();
addModel("isOpenDS1x", Boolean.valueOf(isOpenDS1x));

if (isOpenDS1x) {
addModel("odsdir", AMSetupServlet.getBaseDir());
}

debugOn = getContext().getRequest().getParameter( "debug" ) != null;

if (debugOn) {

if (getContext().getRequest().getParameter("debug") != null) {
AMSetupServlet.enableDebug();
}
}
Expand Down
Loading
Loading