syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNCOPE-884) Error in REST API when specifying application/xml accept header
Date Thu, 30 Jun 2016 13:55:10 GMT

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

ASF subversion and git services commented on SYNCOPE-884:
---------------------------------------------------------

Commit a0fa197bc9190a1d640bc87aa1263dd4a3637cdd in syncope's branch refs/heads/master from
[~ilgrosso]
[ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=a0fa197 ]

[SYNCOPE-884] Fixing unit test execution with JDK 1.7


> Error in REST API when specifying application/xml accept header
> ---------------------------------------------------------------
>
>                 Key: SYNCOPE-884
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-884
>             Project: Syncope
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M4
>            Reporter: Colm O hEigeartaigh
>            Assignee: Francesco Chicchiriccò
>             Fix For: 2.0.0
>
>
> Let's say we want to create a group via the REST API using curl.
> req.xml:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:group xmlns:ns2="http://syncope.apache.org/2.0"><auxClasses/><realm>/</realm><resources/><type>GROUP</type><adynMembershipConds/><name>boss</name><typeExtensions/></ns2:group>
> This works fine:
> curl -u admin:password -X POST -H 'Content-type: application/xml' -d @req.xml http://localhost:9080/syncope/rest/groups
> However, when you specify application/xml las the accept header, the group gets created,
but there is a problem in marshalling the response:
> curl -u admin:password -X POST -H 'Content-type: application/xml' -H 'Accept: application/xml'
-d @req.xml http://localhost:9080/syncope/rest/groups
> > JAXBException occurred : 1 counts of IllegalAnnotationExceptions. 
> Looking in the logs I see:
> 16:55:01.014 ERROR org.apache.cxf.jaxrs.utils.JAXRSUtils - Problem with writing the data,
class org.apache.syncope.common.lib.to.ProvisioningResult, ContentType: application/xml



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

Mime
View raw message