Skip to content

Commit

Permalink
[OpenIdentityPlatform#795] REST APIs after upgrade use Oldest API Ver…
Browse files Browse the repository at this point in the history
…sion without header (OpenIdentityPlatform#797)
  • Loading branch information
vharseko authored Sep 30, 2024
1 parent b40b6ae commit b81678b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2015 ForgeRock AS.
* Portions copyright 2024 3A Systems, LLC
*/
package org.forgerock.openam.upgrade.helpers;

Expand All @@ -27,7 +28,7 @@
public class RestApiUpgradeHelper extends AbstractUpgradeHelper {

private static final String DEFAULT_VERSION_ATTRIBUTE = "openam-rest-apis-default-version";
private static final String OLDEST_VERSION = "Oldest";
private static final String LATEST_VERSION = "Latest";

/**
* The constructor for RestApiUpgradeHelper is used to register the attributes which will be upgraded.
Expand All @@ -46,13 +47,12 @@ public RestApiUpgradeHelper() {
*/
@Override
public AttributeSchemaImpl upgradeAttribute(AttributeSchemaImpl newAttr) throws UpgradeException {
return updateDefaultValues(newAttr, Collections.singleton(OLDEST_VERSION));
return updateDefaultValues(newAttr, Collections.singleton(LATEST_VERSION));
}

/**
* This implementation will always return <code>null</code> as there is currently no need to modify existing
* schema attributes. This might change in the future in which case it should return the modified attribute.
*
* {@inheritDoc}
*/
@Override
Expand Down

0 comments on commit b81678b

Please sign in to comment.