WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
157976
Some applications truncates the last closing parenthesis in perf dashboard URL
https://bugs.webkit.org/show_bug.cgi?id=157976
Summary
Some applications truncates the last closing parenthesis in perf dashboard URL
Ryosuke Niwa
Reported
2016-05-21 18:56:38 PDT
Some applications such as Mail and Radar truncates the second closing parenthesis then two closing parentheses appear in a URL. e.g.
http://localhost/v3/#/charts?since=1461206272848&paneList=((102-5010)-(102-4987)-(102-4988)-(102-4989)-(102-4990)-(102-4991)-(102-4992)-(102-4993)-(102-4994)-(102-4995)-(102-4996)-(102-4997)-(102-4998)-(102-4999)-(102-5000)-(102-5001)-(102-5002)-(102-5003)-(102-5004)-(102-5005)-(102-5006)-(102-5007)-(102-5008)-(102-5009
)) This makes perf dashboard URL less useful.
Attachments
Fixes the bug
(4.04 KB, patch)
2016-05-21 19:05 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Improved the fixup
(4.34 KB, patch)
2016-05-23 16:53 PDT
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2016-05-21 19:05:00 PDT
Created
attachment 279547
[details]
Fixes the bug
Daniel Bates
Comment 2
2016-05-22 21:59:04 PDT
Comment on
attachment 279547
[details]
Fixes the bug View in context:
https://bugs.webkit.org/attachment.cgi?id=279547&action=review
> Websites/perf.webkit.org/ChangeLog:10 > + parentheses, for example, is just fine in Radar as well as Apple Mail if the URL is short enough. Using other > + characters such as ] and } wouldn't work either because they would be %-escaped. At that point, we might as well
How are these URLs getting into Radar and Apple Mail? By a human copying and pasting? The characters in {"]", "}", ")"} are all reserved characters per <
https://tools.ietf.org/html/rfc3986
> and can appear in a URL. Appendix C of the URI RFC, <
https://tools.ietf.org/html/rfc3986
>, suggests delimiting a URI by putting it "within double-quotes..., angle brackets..., or just by using whitespace" and states that "these wrappers do not form part of the URI." Can we make use of one of these wrappers? For example, <
http://localhost/v3/#/charts?since=1461206272848&paneList=((102-5010)-(102-4987)-(102-4988)-(102-4989)-(102-4990)-(102-4991)-(102-4992)-(102-4993)-(102-4994)-(102-4995)-(102-4996)-(102-4997)-(102-4998)-(102-4999)-(102-5000)-(102-5001)-(102-5002)-(102-5003)-(102-5004)-(102-5005)-(102-5006)-(102-5007)-(102-5008)-(102-5009
))>.
Daniel Bates
Comment 3
2016-05-22 22:01:25 PDT
(In reply to
comment #2
) For example,
> <
http://localhost/v3/#/charts?since=1461206272848&paneList=((102-5010)-(102
- > 4987)-(102-4988)-(102-4989)-(102-4990)-(102-4991)-(102-4992)-(102-4993)-(102- > 4994)-(102-4995)-(102-4996)-(102-4997)-(102-4998)-(102-4999)-(102-5000)-(102- > 5001)-(102-5002)-(102-5003)-(102-5004)-(102-5005)-(102-5006)-(102-5007)-(102- > 5008)-(102-5009))>.
Bugzilla does not seem to parse a URI within angle brackets correctly. Let's try using double quotes: "
http://localhost/v3/#/charts?since=1461206272848&paneList=((102-5010)-(102-4987)-(102-4988)-(102-4989)-(102-4990)-(102-4991)-(102-4992)-(102-4993)-(102-4994)-(102-4995)-(102-4996)-(102-4997)-(102-4998)-(102-4999)-(102-5000)-(102-5001)-(102-5002)-(102-5003)-(102-5004)-(102-5005)-(102-5006)-(102-5007)-(102-5008)-(102-5009
))"
Daniel Bates
Comment 4
2016-05-22 22:03:50 PDT
(In reply to
comment #3
) [...]Let's try using double quotes:
> > "
http://localhost/v3/#/charts?since=1461206272848&paneList=((102-5010)-(102
- > 4987)-(102-4988)-(102-4989)-(102-4990)-(102-4991)-(102-4992)-(102-4993)-(102- > 4994)-(102-4995)-(102-4996)-(102-4997)-(102-4998)-(102-4999)-(102-5000)-(102- > 5001)-(102-5002)-(102-5003)-(102-5004)-(102-5005)-(102-5006)-(102-5007)-(102- > 5008)-(102-5009))"
Bugzilla did not autolinkify this correctly :(
Ryosuke Niwa
Comment 5
2016-05-22 22:04:52 PDT
Huh, bugzilla strips both parentheses :(
Ryosuke Niwa
Comment 6
2016-05-23 16:53:28 PDT
Created
attachment 279608
[details]
Improved the fixup
Ryosuke Niwa
Comment 7
2016-05-23 17:23:49 PDT
Comment on
attachment 279608
[details]
Improved the fixup Clearing flags on attachment: 279608 Committed
r201307
: <
http://trac.webkit.org/changeset/201307
>
Ryosuke Niwa
Comment 8
2016-05-23 17:23:54 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug