View | Details | Raw Unified | Return to bug 247296
Collapse All | Expand All

(-)Makefile (-2 / +1 lines)
Lines 1-8 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	bugzilla
3
PORTNAME=	bugzilla
4
PORTVERSION=	5.0.4
4
PORTVERSION=	5.0.6
5
PORTREVISION=	1
6
CATEGORIES=	devel
5
CATEGORIES=	devel
7
MASTER_SITES=	MOZILLA/webtools MOZILLA/webtools/archived
6
MASTER_SITES=	MOZILLA/webtools MOZILLA/webtools/archived
8
7
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1518801572
1
TIMESTAMP = 1592331451
2
SHA256 (bugzilla/bugzilla-5.0.4.tar.gz) = 6b3eb93d20bdfb170803748682d04cb1b6dc60019d7d16c29c4b7f97d2b85bee
2
SHA256 (bugzilla/bugzilla-5.0.6.tar.gz) = dd41a4b0a3a1df0d193bc056f2e3711d7b5605718a00bf6e5d4177bf1be86f77
3
SIZE (bugzilla/bugzilla-5.0.4.tar.gz) = 3994094
3
SIZE (bugzilla/bugzilla-5.0.6.tar.gz) = 3970724
(-)files/patch-PR207213 (-63 lines)
Lines 1-63 Link Here
1
# Upstream PR: https://bugzilla.mozilla.org/show_bug.cgi?id=1128119
2
===================================================================
3
--- extensions/MoreBugUrl/Extension.pm.orig	2016-02-15 15:30:02 UTC
4
+++ extensions/MoreBugUrl/Extension.pm
5
@@ -22,6 +22,7 @@ use constant MORE_SUB_CLASSES => qw(
6
     Bugzilla::Extension::MoreBugUrl::PHP
7
     Bugzilla::Extension::MoreBugUrl::Redmine
8
     Bugzilla::Extension::MoreBugUrl::Savane
9
+    Bugzilla::Extension::MoreBugUrl::Phabricator
10
 );
11
 
12
 # We need to update bug_see_also table because both
13
--- extensions/MoreBugUrl/lib/Phabricator.pm.orig	2016-02-15 15:40:28 UTC
14
+++ extensions/MoreBugUrl/lib/Phabricator.pm
15
@@ -0,0 +1,41 @@
16
+# This Source Code Form is subject to the terms of the Mozilla Public
17
+# License, v. 2.0. If a copy of the MPL was not distributed with this
18
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
19
+#
20
+# This Source Code Form is "Incompatible With Secondary Licenses", as
21
+# defined by the Mozilla Public License, v. 2.0.
22
+
23
+package Bugzilla::Extension::MoreBugUrl::Phabricator;
24
+
25
+use 5.10.1;
26
+use strict;
27
+use warnings;
28
+
29
+use parent qw(Bugzilla::BugUrl);
30
+
31
+###############################
32
+####        Methods        ####
33
+###############################
34
+
35
+sub should_handle {
36
+    my ($class, $uri) = @_;
37
+    return ($uri->path =~ m|^/T\d+$|) ? 1 : 0;
38
+}
39
+
40
+sub _check_value {
41
+    my $class = shift;
42
+
43
+    my $uri = $class->SUPER::_check_value(@_);
44
+
45
+    # Phabricator URLs have only one form:
46
+    #   http://example.com/T111
47
+
48
+    # Make sure there are no query parameters.
49
+    $uri->query(undef);
50
+    # And remove any # part if there is one.
51
+    $uri->fragment(undef);
52
+
53
+    return $uri;
54
+}
55
+
56
+1;
57
--- extensions/MoreBugUrl/template/en/default/hook/global/user-error-bug_url_invalid_tracker.html.tmpl.orig	2015-12-22 21:22:11 UTC
58
+++ extensions/MoreBugUrl/template/en/default/hook/global/user-error-bug_url_invalid_tracker.html.tmpl
59
@@ -14,3 +14,4 @@
60
 <li>A b[% %]ug on b[% %]ugs.php.net.</li>
61
 <li>An issue in a Redmine installation.</li>
62
 <li>A b[% %]ug in a Savane installation.</li>
63
+<li>A task in a Phabricator installation.</li>
(-)files/patch-PR619847 (-41 lines)
Lines 1-41 Link Here
1
--- attachment.cgi.orig	2018-05-31 17:40:51 UTC
2
+++ attachment.cgi
3
@@ -25,8 +25,8 @@ use Bugzilla::Attachment;
4
 use Bugzilla::Attachment::PatchReader;
5
 use Bugzilla::Token;
6
 
7
-use Encode qw(encode find_encoding);
8
-use Encode::MIME::Header; # Required to alter Encode::Encoding{'MIME-Q'}.
9
+use Encode qw(find_encoding);
10
+use URI::Escape qw(uri_escape_utf8);
11
 
12
 # For most scripts we don't make $cgi and $template global variables. But
13
 # when preparing Bugzilla for mod_perl, this script used these
14
@@ -341,11 +341,8 @@ sub view {
15
     # escape quotes and backslashes in the filename, per RFCs 2045/822
16
     $filename =~ s/\\/\\\\/g; # escape backslashes
17
     $filename =~ s/"/\\"/g; # escape quotes
18
-
19
-    # Avoid line wrapping done by Encode, which we don't need for HTTP
20
-    # headers. See discussion in bug 328628 for details.
21
-    local $Encode::Encoding{'MIME-Q'}->{'bpl'} = 10000;
22
-    $filename = encode('MIME-Q', $filename);
23
+    # Follow RFC 6266 section 4.1 (which itself points to RFC 5987 section 3.2)
24
+    $filename = uri_escape_utf8($filename);
25
 
26
     my $disposition = Bugzilla->params->{'allow_attachment_display'} ? 'inline' : 'attachment';
27
 
28
@@ -363,8 +360,11 @@ sub view {
29
             }
30
         }
31
     }
32
-    print $cgi->header(-type=>"$contenttype; name=\"$filename\"",
33
-                       -content_disposition=> "$disposition; filename=\"$filename\"",
34
+    # IE8 and older do not support RFC 6266. So for these old browsers
35
+    # we still pass the old 'filename' attribute. Modern browsers will
36
+    # automatically pick the new 'filename*' attribute.
37
+    print $cgi->header(-type=> $contenttype,
38
+                       -content_disposition=> "$disposition; filename=\"$filename\"; filename*=UTF-8''$filename",
39
                        -content_length => $attachment->datasize);
40
     disable_utf8();
41
     print $attachment->data;
(-)pkg-plist (-68 / +70 lines)
Lines 1-4 Link Here
1
%%CONTRIB%%%%WWWDIR%%/contrib/Bugzilla.pm
2
%%CONTRIB%%%%WWWDIR%%/contrib/README
3
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-queue.rhel
4
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-queue.suse
5
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-submit/README
6
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-submit/bugdata.txt
7
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-submit/bugzilla-submit
8
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-submit/bugzilla-submit.xml
9
%%CONTRIB%%%%WWWDIR%%/contrib/bz_webservice_demo.pl
10
%%CONTRIB%%%%WWWDIR%%/contrib/bzdbcopy.pl
11
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/bugcount
12
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/bugids
13
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/buglist
14
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/bugs
15
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/bugslink
16
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/makequery
17
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/query.conf
18
%%CONTRIB%%%%WWWDIR%%/contrib/console.pl
19
%%CONTRIB%%%%WWWDIR%%/contrib/convert-workflow.pl
20
%%CONTRIB%%%%WWWDIR%%/contrib/extension-convert.pl
21
%%CONTRIB%%%%WWWDIR%%/contrib/fixperms.pl
22
%%CONTRIB%%%%WWWDIR%%/contrib/jb2bz.py
23
%%CONTRIB%%%%WWWDIR%%/contrib/merge-users.pl
24
%%CONTRIB%%%%WWWDIR%%/contrib/mysqld-watcher.pl
25
%%CONTRIB%%%%WWWDIR%%/contrib/new-yui.sh
26
%%CONTRIB%%%%WWWDIR%%/contrib/recode.pl
27
%%CONTRIB%%%%WWWDIR%%/contrib/sendbugmail.pl
28
%%CONTRIB%%%%WWWDIR%%/contrib/sendunsentbugmail.pl
29
%%CONTRIB%%%%WWWDIR%%/contrib/syncLDAP.pl
30
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/Config.pm
31
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/Extension.pm
32
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/disabled
33
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/BitBucket.pm
34
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/GetSatisfaction.pm
35
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/PHP.pm
36
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/Phabricator.pm
37
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/RT.pm
38
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/Redmine.pm
39
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/ReviewBoard.pm
40
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/Rietveld.pm
41
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/Savane.pm
42
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/template/en/default/hook/global/user-error-bug_url_invalid_tracker.html.tmpl
43
%%VOTING%%%%WWWDIR%%/extensions/Voting/Config.pm
44
%%VOTING%%%%WWWDIR%%/extensions/Voting/Extension.pm
45
%%VOTING%%%%WWWDIR%%/extensions/Voting/disabled
46
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/account/prefs/email-relationships.html.tmpl
47
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/admin/products/edit-common-rows.html.tmpl
48
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/admin/products/updated-changes.html.tmpl
49
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl
50
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/admin/users/confirm-delete-warn_safe.html.tmpl
51
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/bug/edit-after_importance.html.tmpl
52
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/bug/format_comment-type.txt.tmpl
53
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl
54
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/bug/process/results-title.html.tmpl
55
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/bug/show-header-end.html.tmpl
56
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl
57
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl
58
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/global/messages-messages.html.tmpl
59
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/global/reason-descs-end.none.tmpl
60
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/global/user-error-errors.html.tmpl
61
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/search/form-after_freetext_fields.html.tmpl
62
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl
63
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/pages/voting.html.tmpl
64
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/pages/voting/bug.html.tmpl
65
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/pages/voting/user.html.tmpl
66
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/voting/delete-all.html.tmpl
67
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/voting/votes-removed.txt.tmpl
68
%%VOTING%%%%WWWDIR%%/extensions/Voting/web/style.css
1
%%WWWDIR%%/.htaccess
69
%%WWWDIR%%/.htaccess
70
%%WWWDIR%%/.perltidyrc
2
%%WWWDIR%%/Bugzilla.pm
71
%%WWWDIR%%/Bugzilla.pm
3
%%WWWDIR%%/Bugzilla/Attachment.pm
72
%%WWWDIR%%/Bugzilla/Attachment.pm
4
%%WWWDIR%%/Bugzilla/Attachment/PatchReader.pm
73
%%WWWDIR%%/Bugzilla/Attachment/PatchReader.pm
Lines 161-195 Link Here
161
%%WWWDIR%%/colchange.cgi
230
%%WWWDIR%%/colchange.cgi
162
%%WWWDIR%%/collectstats.pl
231
%%WWWDIR%%/collectstats.pl
163
%%WWWDIR%%/config.cgi
232
%%WWWDIR%%/config.cgi
164
%%CONTRIB%%%%WWWDIR%%/contrib/Bugzilla.pm
233
%%WWWDIR%%/contrib/perl-fmt
165
%%CONTRIB%%%%WWWDIR%%/contrib/README
166
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-queue.rhel
167
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-queue.suse
168
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-submit/README
169
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-submit/bugdata.txt
170
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-submit/bugzilla-submit
171
%%CONTRIB%%%%WWWDIR%%/contrib/bugzilla-submit/bugzilla-submit.xml
172
%%CONTRIB%%%%WWWDIR%%/contrib/bz_webservice_demo.pl
173
%%CONTRIB%%%%WWWDIR%%/contrib/bzdbcopy.pl
174
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/bugcount
175
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/bugids
176
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/buglist
177
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/bugs
178
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/bugslink
179
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/makequery
180
%%CONTRIB%%%%WWWDIR%%/contrib/cmdline/query.conf
181
%%CONTRIB%%%%WWWDIR%%/contrib/console.pl
182
%%CONTRIB%%%%WWWDIR%%/contrib/convert-workflow.pl
183
%%CONTRIB%%%%WWWDIR%%/contrib/extension-convert.pl
184
%%CONTRIB%%%%WWWDIR%%/contrib/fixperms.pl
185
%%CONTRIB%%%%WWWDIR%%/contrib/jb2bz.py
186
%%CONTRIB%%%%WWWDIR%%/contrib/merge-users.pl
187
%%CONTRIB%%%%WWWDIR%%/contrib/mysqld-watcher.pl
188
%%CONTRIB%%%%WWWDIR%%/contrib/new-yui.sh
189
%%CONTRIB%%%%WWWDIR%%/contrib/recode.pl
190
%%CONTRIB%%%%WWWDIR%%/contrib/sendbugmail.pl
191
%%CONTRIB%%%%WWWDIR%%/contrib/sendunsentbugmail.pl
192
%%CONTRIB%%%%WWWDIR%%/contrib/syncLDAP.pl
193
%%WWWDIR%%/createaccount.cgi
234
%%WWWDIR%%/createaccount.cgi
194
%%WWWDIR%%/describecomponents.cgi
235
%%WWWDIR%%/describecomponents.cgi
195
%%WWWDIR%%/describekeywords.cgi
236
%%WWWDIR%%/describekeywords.cgi
Lines 211-255 Link Here
211
%%WWWDIR%%/editworkflow.cgi
252
%%WWWDIR%%/editworkflow.cgi
212
%%WWWDIR%%/email_in.pl
253
%%WWWDIR%%/email_in.pl
213
%%WWWDIR%%/enter_bug.cgi
254
%%WWWDIR%%/enter_bug.cgi
214
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/Config.pm
215
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/Extension.pm
216
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/disabled
217
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/BitBucket.pm
218
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/GetSatisfaction.pm
219
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/PHP.pm
220
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/Phabricator.pm
221
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/RT.pm
222
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/Redmine.pm
223
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/ReviewBoard.pm
224
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/Rietveld.pm
225
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/lib/Savane.pm
226
%%MOREBUGURL%%%%WWWDIR%%/extensions/MoreBugUrl/template/en/default/hook/global/user-error-bug_url_invalid_tracker.html.tmpl
227
%%VOTING%%%%WWWDIR%%/extensions/Voting/Config.pm
228
%%VOTING%%%%WWWDIR%%/extensions/Voting/Extension.pm
229
%%VOTING%%%%WWWDIR%%/extensions/Voting/disabled
230
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/account/prefs/email-relationships.html.tmpl
231
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/admin/products/edit-common-rows.html.tmpl
232
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/admin/products/updated-changes.html.tmpl
233
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/admin/sanitycheck/messages-statuses.html.tmpl
234
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/admin/users/confirm-delete-warn_safe.html.tmpl
235
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/bug/edit-after_importance.html.tmpl
236
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/bug/format_comment-type.txt.tmpl
237
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/bug/process/header-title.html.tmpl
238
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/bug/process/results-title.html.tmpl
239
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/bug/show-header-end.html.tmpl
240
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/global/code-error-errors.html.tmpl
241
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/global/field-descs-end.none.tmpl
242
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/global/messages-messages.html.tmpl
243
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/global/reason-descs-end.none.tmpl
244
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/global/user-error-errors.html.tmpl
245
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/search/form-after_freetext_fields.html.tmpl
246
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/hook/search/search-report-select-rep_fields.html.tmpl
247
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/pages/voting.html.tmpl
248
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/pages/voting/bug.html.tmpl
249
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/pages/voting/user.html.tmpl
250
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/voting/delete-all.html.tmpl
251
%%VOTING%%%%WWWDIR%%/extensions/Voting/template/en/default/voting/votes-removed.txt.tmpl
252
%%VOTING%%%%WWWDIR%%/extensions/Voting/web/style.css
253
%%WWWDIR%%/images/csv.png
255
%%WWWDIR%%/images/csv.png
254
%%WWWDIR%%/images/favicon.ico
256
%%WWWDIR%%/images/favicon.ico
255
%%WWWDIR%%/images/ical.png
257
%%WWWDIR%%/images/ical.png

Return to bug 247296