Uploaded image for project: 'ZZZ-WSO2 Application Server '
  1. ZZZ-WSO2 Application Server
  2. WSAS-1894

Support SaaS mode for tomcat CombinedRealm in addition to CarbonTomcatRealm

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.0
    • Component/s: None
    • Labels:
      None
    • Severity:
      Major
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Yes

      Description

      Currently, the SaaS mode is set only if the user realm is CarbonTomcatRealm. But with Tomcat, you could have a CombinedRealm which can contain multiple user realms. One of this could be the CarbonTomcatRealm.

      In the case of TomEE, it registers its own CombinedRealm implementation, TomEERealm. The CarbonTomcatRealm is contained inside this. Hence, we need to support CombinedRealm as well.

      This can be done by improving the following code segment in org.wso2.carbon.tomcat.ext.valves.CompositeValve.

      //=================================
      if (realm instanceof CarbonTomcatRealm)

      { ((CarbonTomcatRealm) realm).setSaaSEnabled(Boolean.FALSE); }

      //=================================

        Attachments

          Activity

            People

            • Assignee:
              kasung@wso2.com Kasun Gajasinghe
              Reporter:
              kasung@wso2.com Kasun Gajasinghe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: