[ 
http://opencast.jira.com/browse/MH-7721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28060#comment-28060
 ] 

Rubén Pérez Vázquez commented on MH-7721:
-----------------------------------------

This is because the dot '.' is outside the regular expression. It should be put 
inside, and adequately escaped. Besides, an empty pattern should be allowed, so 
that the endpoint can be used without providing a extension (and choosing a 
default extension internally, which should be made clear in the docs --i.e. GET 
/episode should be equivalente to GET /episode.xml). Just change the patterns 
with:

GET /episode{format:\\.xml|\\.json|}
GET /agents/{name}{type:\\.xml|\\.json|}
GET /agents/{name}/capabilities{type:\\.xml|\\.json|} 
GET /recordings/{id}{type:\\.xml|\\.json|}

Try this, and it will probably work.
                
> Search Service REST doc form doesn't respect format form field when creating 
> query
> ----------------------------------------------------------------------------------
>
>                 Key: MH-7721
>                 URL: http://opencast.jira.com/browse/MH-7721
>             Project: Matterhorn Project
>          Issue Type: Bug
>          Components: Architecture & Services
>    Affects Versions: 1.2, Trunk
>            Reporter: Christoph E. Driessen
>            Assignee: Adam McKenzie
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://opencast.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to