Skip to content

Adding a warning for legacy route usage#1785

Open
karrgov wants to merge 4 commits intocloudfoundry:masterfrom
karrgov:legacy_route_warning
Open

Adding a warning for legacy route usage#1785
karrgov wants to merge 4 commits intocloudfoundry:masterfrom
karrgov:legacy_route_warning

Conversation

@karrgov
Copy link
Contributor

@karrgov karrgov commented Feb 26, 2026

LMCROSSITXSADEPLOY-3413

public static final String TRIPLE_APPENDED_STRING = "%s%s%s";
public static final String SECURE_EXTENSION_DESCRIPTOR_ID = "__mta.secure";
public static final String STRING_SEPARATOR = "-";
public static final String DEPRECATED_ROUTE_MARKER = "cfapps";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to changeto: ".cfapps."

// Progress messages
public static final String OPERATION_ID = "Operation ID: {0}";
public static final String MTA_SCHEMA_VERSION_DETECTED_AS = "Detected MTA schema version: \"{0}\"";
public static final String LEGACY_ROUTE_DEPLOY_SERVICE_DEPRECATED = "You are using legacy route https://deploy-service.cfapps.<domain> of SAP Cloud Deployment service. It will be deprecated and removed in the end of 2026. To avoid issues in the future, update all workflows to use the proper SAP Cloud Deployment route https://deploy-service.cf.<domain> (replace \"cfapps\" with \"cf\"). More information: https://me.sap.com/notes/3695458";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this message is quite related to SAP. I'd suggest to move it in the internal project. Override the step and print the message there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, thanks :)

LMCROSSITXSADEPLOY-3413
LMCROSSITXSADEPLOY-3413
.startProcess(ArgumentMatchers.eq("deploy"), ArgumentMatchers.argThat(
map -> map.containsKey(Variables.MTA_ID.getName()) && map.containsKey(Variables.EXT_DESCRIPTOR_FILE_ID.getName())
&& !map.containsKey(Variables.CTS_PROCESS_ID.getName()) && !map.containsKey(Variables.DEPLOY_URI.getName())));
&& !map.containsKey(Variables.CTS_PROCESS_ID.getName()) && !map.containsKey(Variables.CTS_PASSWORD.getName())));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why DEPLOY_URI was removed and replaced with CTS_PASSWORD variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussed :)

theghost5800
theghost5800 previously approved these changes Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants