Hi Lakshani

Thank you very much for attending to this and for the fix. How can i get
the fix. Can we have it as a patch?
Could you also tell what exactly the issue with POST body. As i remember
when we compared the two payloads (mine and what's in the doc) we could not
see much difference.

Thanks
Susinda


On Thu, Jan 26, 2017 at 6:21 PM, Lakshani Gamage <[email protected]> wrote:

> Hi Susinda,
>
> There were some issues in "*Create Mobile App*" REST API. Please find the
> fixes from [1].
>
> With this fix, carbonContext.getLoggedInUser() returns the loggedin user
> name.
>
> Please note, your POST body is also not correct. Correct POST body is in
> [2].
>
> [1] https://github.com/wso2/carbon-appmgt/pull/593/commits/
> 4798f751c75445195f3b8636f6b97a1e137397e7
> [2] https://docs.wso2.com/display/APPM120/app-manager/publisher/
> #!/operations#AppsApi#appsAppTypePost
>
> Thanks,
> Lakshani
>
> On Thu, Jan 26, 2017 at 11:48 AM, Lahiru Cooray <[email protected]> wrote:
>
>> Hi Susinda,
>> Normally we see this error when the payload is invalid. First please
>> verify the payload with [1]. And carbonContext.getLoggedInUser() can
>> return null when the token is expired.
>>
>>
>> [1] https://docs.wso2.com/display/APPM120/app-manager/publis
>> her/#!/operations#AppsApi#appsAppTypePost
>>
>>
>>
>> On Thu, Jan 26, 2017 at 11:25 AM, Susinda Perera <[email protected]>
>> wrote:
>>
>>> Hi All
>>>
>>> I'm getting following error[1] when I use following request to 
>>> *https://localhost:9443/api/appm/publisher/v1.1/apps/mobileapp
>>> <https://localhost:9443/api/appm/publisher/v1.1/apps/mobileapp>* to
>>> create a app.  Note that Authorization Bearer header is also present.
>>> From debug found that carbonContext.getLoggedInUser() returns null.
>>> Any idea what is wrong or can someone give some insight.
>>>
>>> POST
>>> {"displayName":"Catalog","iconFile":"89e4b66198989999.jpg","description":"Sample
>>> application","banner":"402fd08981a33fb8.jpg","mediaType":"ap
>>> plication\/vnd.wso2-mobileapp+xml","type":"enterprise","
>>> version":"1.0","marketType":"enterprise","platform":"androi
>>> d","screenshots":["bd0deb0dd7a4d8ed.jpg","17ade2074eec7adf.
>>> jpg","caded496ebe7700c.jpg"],"provider":"admin","appType":"
>>> android","name":"Catalog","category":"Business","appmeta"
>>> :{"path":"2d40ed0e1b22977c.apk","package":"org.wso2.app.
>>> catalog","version":"1.0"}}
>>>
>>> [1]
>>> ERROR - GlobalThrowableMapper One or more request body parameters
>>> contain disallowed values.
>>>
>>>
>>> --
>>> *Susinda Perera*
>>> Software Engineer
>>> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
>>> Mobile:(+94)716049075
>>> Blog: susinda.blogspot.com
>>> WSO2 Inc. http://wso2.com/
>>> Tel : 94 11 214 5345 Fax :94 11 2145300
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Lahiru Cooray*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> lean.enterprise.middleware
>>
>> Mobile: +94 715 654154 <+94%2071%20565%204154>
>>
>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer, WSO2*
>
> *Mobile : +94 71 5478184 <%2B94%20%280%29%20773%20451194>*
> *Blog : http://lakshanigamage.blogspot.com/
> <http://lakshanigamage.blogspot.com/>*
>



-- 
*Susinda Perera*
Software Engineer
B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
Mobile:(+94)716049075
Blog: susinda.blogspot.com
WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to