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

<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to