Opened 5 years ago
Closed 5 years ago
#13198 closed defect (fixed)
Link to RSS feed in query page should be `/login?referer=...` for authenticated users
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.19 |
Component: | query system | Version: | 1.0-stable |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
|
||
API Changes: | |||
Internal Changes: |
Attachments (0)
Change History (6)
comment:1 by , 5 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
follow-up: 3 comment:2 by , 5 years ago
Minor thing: a link to RSS feed in ticket page is last entry, however the link in other pages is first entry, inconsistently….
comment:3 by , 5 years ago
Proposed changes look good to me.
Replying to Jun Omae:
Minor thing: a link to RSS feed in ticket page is last entry, however the link in other pages is first entry, inconsistently….
Nice find. I favor fixing it.
-
trac/ticket/tests/conversion.py
diff --git a/trac/ticket/tests/conversion.py b/trac/ticket/tests/conversion.py index 5fecff8ab..7438063f2 100644
a b class TicketConversionTestCase(unittest.TestCase): 63 63 def test_conversions(self): 64 64 conversions = self.mimeview.get_supported_conversions( 65 65 'trac.ticket.Ticket') 66 expected = sorted([('csv', 'Comma-delimited Text', 'csv', 67 'trac.ticket.Ticket', 'text/csv', 8, 68 self.ticket_module), 69 ('tab', 'Tab-delimited Text', 'tsv', 70 'trac.ticket.Ticket', 'text/tab-separated-values', 8, 71 self.ticket_module), 72 ('rss', 'RSS Feed', 'xml', 73 'trac.ticket.Ticket', 'application/rss+xml', 8, 74 self.ticket_module)], 75 key=lambda i: i[-1], reverse=True) 76 self.assertEqual(expected, conversions) 66 expected = [('rss', 'RSS Feed', 'xml', 67 'trac.ticket.Ticket', 'application/rss+xml', 8, 68 self.ticket_module), 69 ('csv', 'Comma-delimited Text', 'csv', 70 'trac.ticket.Ticket', 'text/csv', 8, 71 self.ticket_module), 72 ('tab', 'Tab-delimited Text', 'tsv', 73 'trac.ticket.Ticket', 'text/tab-separated-values', 8, 74 self.ticket_module)] 75 self.assertEqual(expected, list(conversions)) 77 76 78 77 def test_csv_conversion(self): 79 78 ticket = self._create_a_ticket() -
trac/ticket/web_ui.py
diff --git a/trac/ticket/web_ui.py b/trac/ticket/web_ui.py index 5555fa834..b76d8833a 100644
a b class TicketModule(Component): 135 135 # IContentConverter methods 136 136 137 137 def get_supported_conversions(self): 138 yield ('rss', _("RSS Feed"), 'xml', 139 'trac.ticket.Ticket', 'application/rss+xml', 8) 138 140 yield ('csv', _("Comma-delimited Text"), 'csv', 139 141 'trac.ticket.Ticket', 'text/csv', 8) 140 142 yield ('tab', _("Tab-delimited Text"), 'tsv', 141 143 'trac.ticket.Ticket', 'text/tab-separated-values', 8) 142 yield ('rss', _("RSS Feed"), 'xml',143 'trac.ticket.Ticket', 'application/rss+xml', 8)144 144 145 145 def convert_content(self, req, mimetype, ticket, key): 146 146 if key == 'csv':
comment:4 by , 5 years ago
Milestone: | 1.2.6 → 1.0.19 |
---|
Thanks for the reviewing.
I'd like to apply the changes to 1.0-stable which has the same issue: [9abdbadda/jomae.git] (jomae.git@t13198+1.0).
follow-up: 6 comment:5 by , 5 years ago
Release Notes: | modified (diff) |
---|
[9abdbadda/jomae.git] has been committed in [17147] and merged in [17148-17150].
I will commit the patch in comment:3 soon. Thanks.
comment:6 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Replying to Jun Omae:
I will commit the patch in comment:3 soon. Thanks.
Committed in [17151] and merged in [17152-17154].
Proposed changes in [609a7cd93/jomae.git].