https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-08-13T09:48:15ZRedmineRedmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=193312010-08-13T09:48:15ZFelix Schäfer
<ul></ul><p>If you are on 1.0 you don't need any patches.</p>
<p>Please see <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/SubmittingBugs">SubmittingBugs</a>, especially: What ATOM feed exactly? Does it produce an error in the log?</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=193332010-08-13T09:53:34ZRichard Cave
<ul></ul><p>Sorry. It's not a feed from the project, it's a feed from the Forums associated with the project. So if I create a project, then a forum for that project and add a post in the forum then try and access the Atom feed externally I get a 503 error. If I copy the url for the atom feed into a browser it takes me to the login page.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=193392010-08-13T11:46:17ZFelix Schäfer
<ul><li><strong>Priority</strong> changed from <i>High</i> to <i>Normal</i></li></ul><p>Mmh, that works for me:</p>
<pre>curl "http://orga.fachschaften.org/projects/administration/activity.atom?key=xxxxx&show_messages=1"</pre>
<p>Could you paste exactly what ATOM link you are trying to access (but obfuscate the key…)? If you have made any modifications to the code to change that, please also revert them. You could also try if the links in the forums here work for you.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=193412010-08-13T12:11:35ZRichard Cave
<ul><li><strong>File</strong> <a href="/attachments/4303">apache.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/4303/apache.txt">apache.txt</a> added</li></ul><p>Hello - thanks for the response. BTW - I think Redmine is brilliant.</p>
<p>I've made no code changes.</p>
<p>The url is <a class="external" href="http://80.177.48.68/redmine/projects/rmfbc/boards?format=atom&key=8361485aeaa58a50f8a57a76f0935e84e07f1f84">http://80.177.48.68/redmine/projects/rmfbc/boards?format=atom&key=8361485aeaa58a50f8a57a76f0935e84e07f1f84</a></p>
<p>If you put this in Firefox you get the authentication page. If you put this in IE you get the message "Feeds with DTDs are not supported.". Works okay with Safari. Doesn't work with RSSOwl at all or Eclipse. Maybe it's the DTD that causing the problem. How would I remove the DTD. Apache log excerpt attached.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=193422010-08-13T12:13:37ZRichard Cave
<ul></ul><p>Also if you use Feed Validator is complains</p>
<p><a class="external" href="http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2F80.177.48.68%2Fredmine%2Fprojects%2Frmfbc%2Fboards%3Fformat%3Datom%26key%3D8361485aeaa58a50f8a57a76f0935e84e07f1f84">http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2F80.177.48.68%2Fredmine%2Fprojects%2Frmfbc%2Fboards%3Fformat%3Datom%26key%3D8361485aeaa58a50f8a57a76f0935e84e07f1f84</a></p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=193462010-08-13T12:38:17ZFelix Schäfer
<ul></ul><p>Are you sure you have 1.0 or at least that your upgrade went through if you upgraded recently? All ATOM links I could find (the ones for automatic discovery included) are of the form <code>http://host/projects/identifier/boards/id.atom?key=XXXXX</code>. Notice the URI called ends in <code>.atom</code>, not like the URI you have where it says <code>format=atom</code>. Where did you get your redmine from?</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=193472010-08-13T12:45:49ZRichard Cave
<ul></ul><p>Hello.</p>
<p>I got the release from BitNami (<a class="external" href="http://bitnami.org/">http://bitnami.org/</a>). In the root folder changelog.txt has as it's latest entry</p>
<p>Version 1.0.0-0 2010-07-22<br />*Update Remdine to 1.0.0</p>
<p>The Remdine is a spelling mistake in the changelog.txt</p>
<p>I've checked the projects_controller.rb and index.rhtml as described in <a class="external" href="http://www.redmine.org/issues/5317">http://www.redmine.org/issues/5317</a> and everything is there.</p>
<p>What do I need to change in order to get the .atom at the end instead of format=atom?</p>
<p>Thanks once again.</p>
<p>Regards</p>
<p>Richard</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=193562010-08-13T15:34:09ZFelix Schäfer
<ul></ul><p>Well, you seem to have the right codebase, so I'm a little at a loss here…</p>
<p>Could you have a look at the redmine log (probably in <code>redmine_dir/log/production.log</code>), hit the atom link with wget or curl and paste the error here?</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=193702010-08-14T08:05:20ZDavis Tan
<ul></ul><p>Hello, this happens to me too. However, I am using Safari and try to view<br />feed://myserver/redmine/activity.atom?key=xxxx</p>
<p>And it returns 0 items.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194042010-08-16T09:06:34ZRichard Cave
<ul></ul><p>Production logs as follows the first using curl and the second RSSOwl.</p>
<ol>
<li>Logfile created on Mon Aug 16 10:04:45 +0100 2010</li>
</ol>
<p>Processing IssuesController#index to atom (for 208.115.138.254 at 2010-08-16 10:05:43) [GET]<br /> Parameters: {"format"=>"atom", "action"=>"index", "controller"=>"issues", "key"=>"8361485aeaa58a50f8a57a76f0935e84e07f1f84"}<br />Rendering common/feed.atom.rxml<br />Completed in 1875ms (View: 438, DB: 672) | 200 OK [<a class="external" href="http://80.177.48.68/redmine/issues.atom?key=8361485aeaa58a50f8a57a76f0935e84e07f1f84">http://80.177.48.68/redmine/issues.atom?key=8361485aeaa58a50f8a57a76f0935e84e07f1f84</a>]</p>
<p>Processing IssuesController#index to atom (for 193.113.57.167 at 2010-08-16 10:05:46) [GET]<br /> Parameters: {"format"=>"atom", "action"=>"index", "controller"=>"issues", "key"=>"8361485aeaa58a50f8a57a76f0935e84e07f1f84"}<br />Rendering common/feed.atom.rxml<br />Completed in 1359ms (View: 453, DB: 172) | 200 OK [<a class="external" href="http://80.177.48.68/redmine/issues.atom?key=8361485aeaa58a50f8a57a76f0935e84e07f1f84">http://80.177.48.68/redmine/issues.atom?key=8361485aeaa58a50f8a57a76f0935e84e07f1f84</a>]</p>
<p>Cheers</p>
<p>Richard</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194052010-08-16T09:27:47ZFelix Schäfer
<ul></ul><p>Well, those are calls to the issues ATOM feeds, not to the board ATOM feeds, and they seem to work well. I still don't see the problem.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194062010-08-16T10:17:22ZRichard Cave
<ul><li><strong>File</strong> <a href="/attachments/4316">production.log</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/4316/production.log">production.log</a> added</li></ul><p>Sorry wrong feed - trying to do too many things this morning.</p>
<p>Excerpt from the log is attached.</p>
<p>Rich</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194082010-08-16T11:38:39ZFelix Schäfer
<ul></ul><p>Ok, try adding <code>accept_key_auth :show</code> on a line after <code>before_filter :find_project, :find_board_if_available, :authorize</code> in <code>app/controllers/boards_controller.rb</code>.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194092010-08-16T11:39:04ZFelix Schäfer
<ul></ul><p>(and naturally restart the redmine server after that.)</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194102010-08-16T12:17:51ZRichard Cave
<ul><li><strong>File</strong> <a href="/attachments/4317">production.log</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/4317/production.log">production.log</a> added</li></ul><p>Afraid not. Added the code stopped and started services. Added the production.log excerpt. I not get the authentication page when I call</p>
<p><a class="external" href="http://80.177.48.68/redmine/projects/rmfbc/boards?format=atom&key=8361485aeaa58a50f8a57a76f0935e84e07f1f84">http://80.177.48.68/redmine/projects/rmfbc/boards?format=atom&key=8361485aeaa58a50f8a57a76f0935e84e07f1f84</a></p>
<p>Sorry</p>
<p>Richard</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194142010-08-16T13:01:59ZFelix Schäfer
<ul></ul><p>Richard, are you sure you have 1.0.0? The atom links for a project's boards overview should be of the form <code>yourhost.com/project/identifier/activity.atom?key=xxx&show_messages=1</code>, <code>yourhost.com/project/identifier/activity?format=atom&key=xxx&show_messages=1</code> should work too, bot nothing of the likes you are getting. Could you try if you can access the feed of a single board? It should look like <code>http://www.redmine.org/projects/redmine/boards/1.atom?key=xxx</code> (notice the board ID after <code>/boards/</code>).</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194152010-08-16T13:04:48ZFelix Schäfer
<ul></ul><p>Ok, nevermid, I see where you'd get links of that form, it's on the forums page when there is only one board in the project, right?</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194162010-08-16T13:04:55ZRichard Cave
<ul></ul><p>See update <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: bad user submission returns application error. (Closed)" href="https://www.redmine.org/issues/7">#7</a>. This is what I've used to determine if I'm running 1.0.0. Is there another way?</p>
<p>Will try single and let you know.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194172010-08-16T13:06:41ZFelix Schäfer
<ul></ul><p>Last idea, after that I'm really totally out of them: change the <code>accept_key_auth :show</code> I made you add earlier to <code>accept_key_auth :show, :index</code>.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194182010-08-16T13:13:23ZFelix Schäfer
<ul></ul><p>Richard Cave wrote:</p>
<blockquote>
<p>See update <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: bad user submission returns application error. (Closed)" href="https://www.redmine.org/issues/7">#7</a>. This is what I've used to determine if I'm running 1.0.0. Is there another way?</p>
</blockquote>
<p>No, sorry, I was really trying to understand where your link would get from but I wasn't able to make the connection to a forum with only one board (which effectively shows only that board in the forum tab instead of the list of boards if you have more than 1 board configured for that project). Aynway, I was able to reproduce the URL form you get, the problem you have, and the last change I posted made it work for me.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194202010-08-16T13:20:54ZRichard Cave
<ul></ul><p>Working!! Well done and thank you for your time and efforts. Brilliant!</p>
<p>Regards</p>
<p>Richard</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194212010-08-16T13:21:08ZRichard Cave
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194222010-08-16T13:23:47ZFelix Schäfer
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>New</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>80</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Glad we got this one :-) Resolved is for committed-to-trunk-but-not-to-stable-yet though.</p>
<p>Eric or JB, could you commit? The change is to add <code>accept_key_auth :show, :index</code> in the <code>boards_controller.rb</code>.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194322010-08-16T23:26:37ZEric Davis
<ul><li><strong>Subject</strong> changed from <i>Atom feeds in project in version 1.0.0 still require authentication.</i> to <i>Allow Key based authentication in the Boards atom feed</i></li><li><strong>Category</strong> changed from <i>Projects</i> to <i>Forums</i></li></ul> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=194332010-08-16T23:37:29ZEric Davis
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Eric Davis</i></li><li><strong>Target version</strong> set to <i>1.0.1</i></li><li><strong>% Done</strong> changed from <i>80</i> to <i>100</i></li></ul><p>Added in <a class="changeset" title="Allow key authentication for Boards. #6132" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3942">r3942</a>.</p> Redmine - Defect #6132: Allow Key based authentication in the Boards atom feedhttps://www.redmine.org/issues/6132?journal_id=195252010-08-19T04:35:47ZEric Davis
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Merged to 1.0-stable for release in 1.0.1.</p>