Defect #5317
closedprojects.atom with required authentication
Added by Harald Klimach over 16 years ago. Updated over 16 years ago.
Description
We are running a redmine deployment with required authentication.
Most RSS feeds seem to work in this setup, but the link to the feed from
the projects page ends up at the login page, when not requested from
the browser with a valid session.
Used software:
mysql Ver 14.14 Distrib 5.1.37, for debian-linux-gnu (x86_64)
ruby 1.8.7
rails 2.3.5
The message in the logs boils down to:
I searched for this issue, but did only find #2078, which in fact would be also nice to have.
Files
| issue5317_svn_3774.diff (1.4 KB) issue5317_svn_3774.diff | Greg Mefford, 2010-06-19 18:35 | ||
| 5317_permissions.diff (687 Bytes) 5317_permissions.diff | Greg Mefford, 2010-06-19 19:07 | ||
| 5317_auto_discovery.diff (745 Bytes) 5317_auto_discovery.diff | Greg Mefford, 2010-06-19 19:07 |
Updated by Harald Klimach over 16 years ago
Actions
#1
Hi there,
just wanted to report, that this issue still persists after the upgrade to 0.9.4.
Updated by Moritz Spindelhirn over 16 years ago
Actions
#2
Yep,
I confirm that it is still present in 0.9.4.
Updated by Felix Schäfer over 16 years ago
Actions
#3
Could you tell us more about your setups, especially the source of your redmine (i.e. downloaded from redmine.org or installed from a debian package)?
Updated by Moritz Spindelhirn over 16 years ago
Actions
#4
I´m sorry but I cannot give you this information because my hoster installed it.
I see what I can do to get it ;)
Updated by Felix Schäfer over 16 years ago
Actions
#5
Moritz: I have a somewhat sure way to find it out if you have access to the redmine files on your server. Have a look at redmine_dir/config/initializers/40_email.rb, if it looks for the file email.yml in redmine_dir/config/email.yml it's stock, if it looks in /etc/redmine it's the deb.
Updated by Moritz Spindelhirn over 16 years ago
Actions
#6
Ok, thanks.
It looks for config/email.yml, so it isnt the db package.
Updated by Felix Schäfer over 16 years ago
Actions
#7
Just confirmed that on r3764.
Updated by Felix Schäfer over 16 years ago
Actions
#8
Updated by Felix Schäfer over 16 years ago
Actions
#9
Felix Schäfer wrote:
@Eric: Could you push that to trunk?
And while we're at it, I think it wouldn't hurt having the ATOM link for the project index in the header, i.e. add the following to source:trunk/app/views/projects/index.rhtml :
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
<% end %>Thanks :-)
Updated by Harald Klimach over 16 years ago
Actions
#10
Hi,
sorry for the somewhat late reply, and thanks for looking at this issue.
I'm following the SVN repository, but only update to tagged releases, so
no debian specific stuff is involved.
I applied the both modifications (to 0.9.4), and the problem is gone.
Thanks a lot!
Updated by Greg Mefford over 16 years ago
Actions
#11
- File issue5317_svn_3774.diff issue5317_svn_3774.diff added
- % Done changed from 0 to 80
To reproduce from a clean install of trunk:¶
- Administration -> Settings -> Authentication -> Check "Authentication Required." -> Click "Save"
- Create a test project
- Go to list of projects
- There should be no "Atom" icon in the browser address bar
- Click the "Atom" link at the bottom of the projects page
- Should see the Atom feed
- Copy the URL from the address bar
- Click "Log Out"
- Paste the URL back in the address bar
- Should see the login page
After applying the patch:¶
- Log in and get the link to the Atom feed from the projects list
- Should see the RSS/Atom auto-discovery icon in the address bar (although it looks like Chrome doesn't work)
- Log back out
- Should see the Atom feed now
Updated by Greg Mefford over 16 years ago
Actions
#12
- File 5317_permissions.diff 5317_permissions.diff added
- File 5317_auto_discovery.diff 5317_auto_discovery.diff added
Split up the authentication fix from the auto_discovery fix.
Updated by Eric Davis over 16 years ago
Actions
#13
Updated by Eric Davis over 16 years ago
Actions
#14
- Status changed from Resolved to Closed
Merged into 0.9-stable.