Skip to content

Commit 6d416fc

Browse files
committed
Merge branch 'master' into development
* master: Bumped version to 20251022.2 Bug 1995787 - Add Cache-Control: no-store or Cache-Control: private to all attachments to prevent CDN from caching private attachments that are mistaken as static assets Bumped version to 20251022.1 Bug 1995616 - Bugzilla home page needs to top align messages and other warnings Bug 1981211 - when uploading patches that have .toml file changes and the reviewer is #intermittent-reviewers, do not add group reviewers as blocking
2 parents f8199d6 + 91e6fc3 commit 6d416fc

File tree

6 files changed

+36
-21
lines changed

6 files changed

+36
-21
lines changed

Bugzilla.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use warnings;
1313

1414
use Bugzilla::Logging;
1515

16-
our $VERSION = '20251021.1';
16+
our $VERSION = '20251022.2';
1717

1818
use Bugzilla::Auth;
1919
use Bugzilla::Auth::Persist::Cookie;

attachment.cgi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,8 @@ sub view {
423423
print $cgi->header(
424424
-type => $contenttype,
425425
-content_disposition => "$disposition; filename*=$filename_star",
426-
-content_length => $attachment->datasize
426+
-content_length => $attachment->datasize,
427+
-Cache_Control => 'no-store, private'
427428
);
428429
disable_utf8();
429430
print $attachment->data;

extensions/PhabBugz/lib/Util.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use Try::Tiny;
2626
use Type::Params qw( compile );
2727
use Type::Utils;
2828
use Types::Standard qw( :types );
29-
use Mojo::JSON qw(encode_json);
29+
use Mojo::JSON qw(encode_json);
3030

3131
use base qw(Exporter);
3232

@@ -658,8 +658,8 @@ sub set_intermittent_reviewers {
658658
return;
659659
}
660660

661-
# Now we need to remove the intermittent-reviewers project and the taskgraph-reviewers project,
662-
# and move any remaining to the subscribers list
661+
# Now we need to remove any blocking project that is not intermittent-reviewers and
662+
# taskgraph-reviewers project and move them to the subscribers list
663663
foreach my $project (@blocking_projects) {
664664
next if $project->name eq 'intermittent-reviewers' || $project->name eq 'taskgraph-reviewers';
665665

skins/standard/global.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,17 +1551,23 @@ input[type="radio"]:checked {
15511551
}
15521552

15531553
#message-container .warning {
1554-
color: var(--error-message-foreground-color);
1554+
color: var(--neutral-banner-foreground-color);
15551555
background-color: var(--error-message-background-color);
15561556
}
15571557

1558+
#message-container .warning a {
1559+
color: inherit;
1560+
text-decoration: underline;
1561+
font-weight: 500;
1562+
}
1563+
15581564
#message-container .new_announcement {
1559-
color: var(--primary-label-color);
1565+
color: var(--neutral-banner-foreground-color);
15601566
background-color: var(--informative-message-background-color);
15611567
}
15621568

15631569
#message-container .new_announcement p.warning {
1564-
color: var(--error-message-foreground-color);
1570+
color: var(--neutral-banner-foreground-color);
15651571
}
15661572

15671573
/* Reset legacy style */

skins/standard/index.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,21 @@
77
*/
88

99
#bugzilla-body:has(#home) {
10+
display: flex;
11+
flex-direction: column;
12+
min-height: calc(100dvh - var(--global-header-height));
13+
}
14+
15+
#bugzilla-body:has(#home) #message-container {
16+
flex: none;
17+
}
18+
19+
#main-inner:has(#home) {
20+
flex: auto;
1021
display: flex;
1122
flex-direction: column;
1223
justify-content: center;
1324
align-items: center;
14-
min-height: calc(100dvh - var(--global-header-height));
1525
}
1626

1727
#home {

template/en/default/global/header.html.tmpl

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,16 @@
462462
</div>
463463
</div>
464464
[% END %]
465+
[%# Show banner for users who have email disabled due to bounces %]
466+
[% IF user.bounce_count AND user.email_disabled %]
467+
<div id="message">
468+
Change notification emails have been disabled for your account due to issues delivering to your address.
469+
<a href="/bounced_emails/[% user.id FILTER uri %]" id="bounced_emails_link">View recent errors and reactivate email</a>.
470+
</div>
471+
[% END %]
472+
[% IF message %]
473+
<div id="message">[% message %]</div>
474+
[% END %]
465475
</aside>
466476

467477
<div id="main-inner">
@@ -473,18 +483,6 @@
473483
<h2>[% header FILTER none %]</h2>
474484
[% END %]
475485

476-
[%# Show banner for users who have email disabled due to bounces %]
477-
[% IF user.bounce_count AND user.email_disabled %]
478-
<div id="message">
479-
Change notification emails have been disabled for your account due to issues delivering to your address.
480-
<a href="/bounced_emails/[% user.id FILTER uri %]" id="bounced_emails_link">View recent errors and reactivate email</a>.
481-
</div>
482-
[% END %]
483-
484-
[% IF message %]
485-
<div id="message">[% message %]</div>
486-
[% END %]
487-
488486
[% BLOCK primary_links %]
489487
<li role="none">
490488
<a class="header-button" href="[% basepath FILTER none %]describecomponents.cgi"

0 commit comments

Comments
 (0)