Update Apache Commons Lang 2 to Apache Commons Lang 3 for custom connectors

Hi All,

As per the “Action Required: Connector Cloud Gateway - commons-lang2 Removal and Migration to commons-lang3 - Announcements / Product News - SailPoint Developer Community

I have to update the libraries. We are using git for source repo. Where exactly do we find the library information and how do we update it and deploy and test the sources.

Any leads would really help me to start with.

Hi @nandiniks1

All steps are already described in the documentation that you’ve mentionned : Action Required: Connector Cloud Gateway - commons-lang2 Removal and Migration to commons-lang3 - Announcements / Product News - SailPoint Developer Community

As mentioned:

  1. In your custom connector project, you should search for files where you import the Commons Lang 2 library (org.apache.commons.lang), for example:
    import org.apache.commons.lang.* or import org.apache.commons.lang.StringUtils.
  2. You should then replace all occurrences of org.apache.commons.lang with org.apache.commons.lang3 in these imports.
  3. Next, review your code to ensure that the methods previously used from Commons Lang 2 are still supported in Commons Lang 3. Most methods are still available, but some may be deprecated or replaced by new ones. You can refer to the Apache documentation provided by SailPoint Home – Apache Commons Lang
  4. For building your custom connector, make sure to update the Commons Lang dependency version in your Maven or Gradle build file as mentioned.

Finally, rebuild and deploy your custom connector to the sandbox, and validate it.