Closed Bug 1741825 Opened 2 years ago Closed 2 years ago

LinkHeader: A truncate is missing for titleStar.

Categories

(Core :: Networking: HTTP, defect, P2)

defect

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: manuel, Assigned: manuel)

Details

(Whiteboard: [necko-triaged])

Attachments

(2 files)

Manuel, could you add more explanation and also set the priority to this bug? Thanks.
It's difficult for me to triage this according to comment #0.

Flags: needinfo?(mbucher)

When a server specifies multiple HTTP-"Link" headers (rfc8288) with different "title*" attributes, the first "title*" attribute overwrites the "title" and "title*" attributes of the following links in the HTTP-header.
I am not sure if it is read somewhere, but I intend to fix it.

Assignee: nobody → mbucher
Status: NEW → ASSIGNED
Flags: needinfo?(mbucher)
Priority: -- → P2

One test case from rfc8288 Sec 3.5 could show the problem:

Link: </TheBook/chapter2>;
         rel="previous"; title*=UTF-8'de'letztes%20Kapitel,
         </TheBook/chapter4>;
         rel="next"; title*=UTF-8'de'n%c3%a4chstes%20Kapitel

Would set the title of both links to "letztes Kapitel". The expected result would be, that the first link had the title "letztes Kapitel" and the second link "nächstes Kapitel".

Severity: -- → S4
Whiteboard: [necko-triaged]
Attachment #9253582 - Attachment description: Bug 1741825 - LinkHeader test that consecutive links don't influence each other r=#necko → Bug 1741825 - LinkHeader: test that consecutive links don't influence each other r=#necko
Pushed by mbucher@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/54b47b56c5fd
Add missing truncate of titleStar in parser of Link header r=necko-reviewers,dragana
https://hg.mozilla.org/integration/autoland/rev/7ae19ddb7873
LinkHeader: test that consecutive links don't influence each other r=necko-reviewers,dragana
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: