WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
241890
bugs.webkit.org returns 500 error when github commit URL is entered into the Comment field.
https://bugs.webkit.org/show_bug.cgi?id=241890
Summary
bugs.webkit.org returns 500 error when github commit URL is entered into the ...
lingho@apple.com
Reported
2022-06-22 17:28:09 PDT
https://github.com/WebKit/WebKit/commit/431f4db465c43b419910c6889d60edb9454a7de5#r76747819
Attachments
Add attachment
proposed patch, testcase, etc.
lingho@apple.com
Comment 1
2022-06-23 01:55:47 PDT
test
lingho@apple.com
Comment 2
2022-06-23 10:08:37 PDT
https://github.com/WebKit/WebKit/commit/431f4db465c43b419910c6889d60edb9454a7de5#r76747819
lingho@apple.com
Comment 3
2022-06-23 17:58:19 PDT
As soon as a github.com Commit URL such as
https://github.com/WebKit/WebKit/commit/431f4db465c43b419910c6889d60edb9454a7de5#r76747819
is entered into the Comment field, and saved, Bugzilla produces a 500 error. Any subsequence actions on the bug causes the same error.
lingho@apple.com
Comment 4
2022-06-23 17:59:48 PDT
This error is shown in /var/log/httpd/error_log. [Thu Jun 23 01:55:47.252524 2022] [:error] [pid 11149] "\\x{fdd2}" does not map to utf8 at /usr/lib64/perl5/vendor_perl/Encode.pm line 160.\n
Radar WebKit Bug Importer
Comment 5
2022-06-23 18:00:26 PDT
<
rdar://problem/95820523
>
lingho@apple.com
Comment 6
2022-06-23 18:01:00 PDT
***
Bug 241891
has been marked as a duplicate of this bug. ***
lingho@apple.com
Comment 7
2022-06-23 18:01:13 PDT
***
Bug 241892
has been marked as a duplicate of this bug. ***
lingho@apple.com
Comment 8
2022-06-23 18:01:26 PDT
***
Bug 241893
has been marked as a duplicate of this bug. ***
lingho@apple.com
Comment 9
2022-06-23 18:01:41 PDT
***
Bug 241896
has been marked as a duplicate of this bug. ***
lingho@apple.com
Comment 10
2022-06-23 18:14:19 PDT
I was unabled to reproduce this on the UAT server. However, adding the URL in the Comment field, then clicking on Preview shows that the URL is being turned into a link, while the revision is also being converted into a
https://commits.webkit.or
URL one way or another. The revision part of the link then became
https://github.com/WebKit/WebKit/commit/431f4db465c43b419910c6889d60edb9454a7de5#0
This seems to be happenning here in Bugzilla/Template.pm: my ($match, $replace) = @$re{qw(match replace)}; if (ref($replace) eq 'CODE') { $text =~ s/$match/($things[$count++] = $replace->({matches => [ $1, $2, $3, $4, $5, $6, $7, $8, $9, $10]})) && ("\x{FDD2}" . ($count-1) . "\x{FDD3}")/egx; } Fixing the Commit extention to not replace a revision number when it follows a hash prevented this issue, and got rid of the 500 error.
lingho@apple.com
Comment 11
2022-06-23 18:26:00 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/1761
EWS
Comment 12
2022-08-28 14:10:26 PDT
Committed
253885@main
(b823352209d3): <
https://commits.webkit.org/253885@main
> Reviewed commits have been landed. Closing PR #1761 and removing active labels.
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