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

Stephen Marquard commented on MH-9219:
--------------------------------------

Untested. To see the mime type correctly is probably:

Index: 
modules/matterhorn-scheduler-impl/src/main/java/org/opencastproject/scheduler/endpoint/SchedulerRestService.java
===================================================================
--- 
modules/matterhorn-scheduler-impl/src/main/java/org/opencastproject/scheduler/endpoint/SchedulerRestService.java
    (revision 13010)
+++ 
modules/matterhorn-scheduler-impl/src/main/java/org/opencastproject/scheduler/endpoint/SchedulerRestService.java
    (working copy)
@@ -878,7 +878,7 @@
    * @return an iCalendar
    */
   @GET
-  @Produces(MediaType.TEXT_PLAIN)
+  @Produces(MediaType.TEXT_CALENDAR)
   @Path("calendars")
   @RestQuery(name = "getcalendar", description = "Returns iCalendar for 
specified set of events", returnDescription = "ICalendar for events", 
restParameters = {
           @RestParameter(name = "agentid", description = "Filter events by 
capture agent", isRequired = false, type = Type.STRING),

To also set the utf-8 charset see:

http://stackoverflow.com/questions/3431996/how-to-set-the-charset-with-jax-rs

                
> Scheduler REST endpoint does not set correct mime-type and charset for ical 
> calendar
> ------------------------------------------------------------------------------------
>
>                 Key: MH-9219
>                 URL: http://opencast.jira.com/browse/MH-9219
>             Project: Matterhorn Project
>          Issue Type: Bug
>          Components: Architecture & Services
>    Affects Versions: Trunk, 1.4, 1.3
>            Reporter: Stephen Marquard
>            Priority: Minor
>


--
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