[ 
https://issues.apache.org/jira/browse/LENS-983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15180486#comment-15180486
 ] 

Puneet Gupta commented on LENS-983:
-----------------------------------

{noformat}
  @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, 
MediaType.TEXT_PLAIN})
  public LensSessionHandle openSession(@FormDataParam("username") String 
username,
    @FormDataParam("password") String password,
    @FormDataParam("database")  @DefaultValue("") String database,
    @FormDataParam("sessionconf") LensConf sessionconf) throws LensException 
{noformat}

order needs to be changed to 
MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON,MediaType.TEXT_PLAIN

> All Lens REST end points should support MediaType.APPLICATION_XML as default 
> MIME Type
> --------------------------------------------------------------------------------------
>
>                 Key: LENS-983
>                 URL: https://issues.apache.org/jira/browse/LENS-983
>             Project: Apache Lens
>          Issue Type: Bug
>            Reporter: Puneet Gupta
>
> With added support for JSON MIME Types, we need to make sure that the default 
> is XML for older clients to work correctly which were expecting XML by 
> default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to