Hi,

We have reproduced the issue. Also we did some investigation of the code
execution flow and found out the following.

1) When the given procedure [1] is followed, the code goes through the
*addAPI* function in APIProviderHostObject java file. It tries to get
the endpointConfig as,

String endpointConfig = (String) apiData.get("endpoint_config", apiData);

then it causes the error since the endpointConfig is not specified.

2) When we add an API in the normal way (via API manager), it calls the
*createAPI* method. In this method, it only checks the name, context and
version as mandatory elements. "endpointConfig" is not taken into
consideration in this way.

We will work on this and provide a fix.

Thanks.

[1]
https://docs.wso2.com/display/Governance510/Integrating+with+WSO2+API+Manager

On Fri, Nov 6, 2015 at 9:41 AM, Pubudu Priyashan <[email protected]> wrote:

> Hi Chamin,
>
> As per my investigations, it was apparent that the APIM 1.9.1 version is
> using following mandatory fields in Create API call. This was not the case
> for APIM 1.9.0. I'm assuming that this could be the root cause for this
> issue.
>
> 1. endpoint_type
> 2. endpoint_config
> 3. production_endpoints
> 4. sandbox_endpoints
> 5. endpointType
>
> Cheers,
> Pubudu.
>
>
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547
>
> On Thu, Nov 5, 2015 at 5:36 PM, Pubudu Priyashan <[email protected]> wrote:
>
>> Hi Chamin,
>>
>> I have logged [1] to address this issue now.
>>
>> [1] https://wso2.org/jira/browse/APIMANAGER-4199
>>
>> Cheers,
>> Pubudu.
>>
>> Pubudu D.P
>> Senior Software Engineer - QA Team | WSO2 inc.
>> Mobile : +94775464547
>>
>> On Thu, Nov 5, 2015 at 4:52 PM, Pubudu Priyashan <[email protected]>
>> wrote:
>>
>>> Hi Chamin,
>>>
>>> While checking the APIM/GREG integration, I experienced two different
>>> behaviors for API 1.9.0 and API 1.9.1 versions tested against GREG 5.1.0.
>>> Basically what happens is that, the service gets pushed to the APIM
>>> publisher with given executor [1] but, in APIM 1.9.1 version I'm getting
>>> the error below. Can you please take a look if there's an incompatibility
>>> somewhere in service level? Please find the screenshots attached.
>>>
>>> Error in APIM Console:-
>>>
>>> [2015-11-05 16:23:29,263]  INFO - CarbonAuthenticationUtil
>>> '[email protected] [-1234]' logged in at [2015-11-05 16:23:29,263+0530]
>>> [2015-11-05 16:23:29,508]  INFO - CarbonAuthenticationUtil
>>> '[email protected] [-1234]' logged in at [2015-11-05 16:23:29,508+0530]
>>> [2015-11-05 16:23:30,099] ERROR - APIProviderHostObject Endpoint
>>> Configuration is missing
>>> [2015-11-05 16:23:30,103] ERROR - add:jag
>>> org.wso2.carbon.apimgt.api.APIManagementException: Endpoint Configuration
>>> is missing
>>>
>>>
>>>
>>> [1]
>>> https://docs.wso2.com/display/Governance501/Integrating+with+WSO2+API+Manager
>>>
>>> Cheers,
>>> Pubudu D.P
>>> Senior Software Engineer - QA Team | WSO2 inc.
>>> Mobile : +94775464547
>>>
>>
>>
>


-- 
Chamin Dias
*Software Engineer*
Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
Email : [email protected]
Blog : https://chamindias.wordpress.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to