Closed
Bug 396515
Opened 17 years ago
Closed 9 years ago
ICS provider should use Accept: text/calendar on GET
Categories
(Calendar :: Provider: ICS/WebDAV, defect)
Calendar
Provider: ICS/WebDAV
Tracking
(Not tracked)
RESOLVED
FIXED
4.0.0.1
People
(Reporter: browning, Assigned: marlio, Mentored)
Details
(Whiteboard: [good first bug][lang=js])
Attachments
(1 file, 3 obsolete files)
816 bytes,
patch
|
aleth
:
review+
|
Details | Diff | Splinter Review |
In an email of 14 September bernard at oracle requested: For calendars configured "On the Network" in Format "iCalendar (ICS)" Lightning issue an HTTP GET request with the following request header: Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Could Lightning specify the following value instead? Accept: text/calendar
Reporter | ||
Comment 1•17 years ago
|
||
Taking this. The Accept: header probably should actually be "text/calendar; charset=utf-8", and we should properly set the Accept-Charset: header as well.
Status: NEW → ASSIGNED
Reporter | ||
Updated•17 years ago
|
Assignee: nobody → browning
Status: ASSIGNED → NEW
Reporter | ||
Comment 2•17 years ago
|
||
tested w/ http:// and file:///; I want to test against ftp:// before requesting review.
Comment 3•16 years ago
|
||
Bruno, could you please provide an update on the status of this patch/bug?
Comment 4•16 years ago
|
||
Bruno, do you want to ask for review for the patch? Do we need the "; charset=utf-8" part if we specify a separate Accept-Charset header?
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: PC → All
Comment 5•16 years ago
|
||
Actually, you can't specify ";charset=utf-8" in the Accept request header. The semi-colon is used to separate the "media-range" from the "accept-params". See: http://tools.ietf.org/html/rfc2616#section-14.1 Thanks! Bernard
Reporter | ||
Comment 6•16 years ago
|
||
Attachment #340799 -
Flags: review?(daniel.boelzle)
Comment 7•16 years ago
|
||
Comment on attachment 340799 [details] [diff] [review] patch rev 2 >- channel.loadFlags |= Components.interfaces.nsIRequest.LOAD_BYPASS_CACHE; >- channel.notificationCallbacks = this; >+ this.prepareChannel(channel); > > var downloader = Components.classes["@mozilla.org/network/downloader;1"] > .createInstance(CI.nsIDownloader); ... This will add the etag check to the backup download, but I don't see 304 handled in that code. As far as I see this may lead to empty backups.
Attachment #340799 -
Flags: review?(daniel.boelzle) → review-
Updated•16 years ago
|
Attachment #281300 -
Attachment is obsolete: true
Comment 8•13 years ago
|
||
Bernard, is this still an issue? Requesting text/calendar might be more correct, but for servers that serve such files as text/plain we break interop.
Comment 9•13 years ago
|
||
Philipp, How about using the following? Accept: text/calendar,text/plain;q=0.8,*/*;q=0.5
Comment 10•13 years ago
|
||
Sounds good to me. We'd have to find out what happens if there is no accepted content type and display the right kind of error. Now we just need someone to put up a patch ;-)
Updated•13 years ago
|
Whiteboard: [good first bug]
Updated•9 years ago
|
Assignee: browning → nobody
Mentor: philipp
Whiteboard: [good first bug] → [good first bug][lang=js]
Updated•9 years ago
|
Status: ASSIGNED → NEW
Assignee | ||
Comment 11•9 years ago
|
||
Attachment #8565562 -
Flags: review?(philipp)
Comment 12•9 years ago
|
||
Comment on attachment 8565562 [details] [diff] [review] AcceptHeaders_V1.patch Review of attachment 8565562 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, r=philipp
Attachment #8565562 -
Flags: review?(philipp) → review+
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → malinthak2
Updated•9 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 13•9 years ago
|
||
Adding patch headers
Attachment #8565562 -
Attachment is obsolete: true
Attachment #8565578 -
Flags: checkin?(philipp)
Updated•9 years ago
|
Attachment #8565578 -
Flags: checkin?(philipp)
Updated•9 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
Attachment #340799 -
Attachment is obsolete: true
Comment 14•9 years ago
|
||
Comment on attachment 8565578 [details] [diff] [review] AcceptHeaders.patch Please mark r- patches as obsolete and patches to be checked in as r+ in the future. That makes handling checkin-needed easier. Thanks!
Attachment #8565578 -
Flags: review+
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 4.0
You need to log in
before you can comment on or make changes to this bug.
Description
•