Nuwan,
Not sure how frequently this is being used, but I also noticed following
location via a github search.

https://github.com/wso2/carbon-apimgt/blob/c6393f215050e57201eddf307deec6ec430f7c4e/components/apimgt/org.wso2.carbon.apimgt.core/src/main/java/org/wso2/carbon/apimgt/core/util/ThrottleConstants.java#L33



On Sat, Mar 10, 2018 at 9:48 AM, Geeth Munasinghe <[email protected]> wrote:

> Hi all,
>
> api-manager.xml is read as following way and it causing an issue in IoT
> server due to change of folder structure.
>
>
>     protected String getFilePath() {
>         return CarbonUtils.getCarbonHome() + File.separator + "repository"
> +
>                 File.separator + "conf" + File.separator +
> "api-manager.xml";
>     }
>
>
> But I think the correct way is to get the CarbonConfigDirPath()
>
>    protected String getFilePath() {
>         return CarbonUtils.getCarbonConfigDirPath() + File.separator +
> "api-manager.xml";
>     }
>
> I have fixed it in following PR.
>
> https://github.com/wso2/carbon-apimgt/pull/5195
>
> Thanks
> Geeth
>
>
> --
> *Geeth Munasinghe*
> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
> *lean.enterprise.middleware.*
>
> email: [email protected]
> phone:(+94) 777911226 <077%20791%201226>
>
> <http://wso2.com/signature>
>



-- 
---
Sumedha Rubasinghe
Director - IoT Architecture,
WSO2
m: +94 773017743
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to