プロジェクト

全般

プロフィール

Vote #67865

完了

Allow Key based authentication in the Boards atom feed

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Forums_5
対象バージョン:
開始日:
2010/08/13
期日:
進捗率:

100%

予定工数:
category_id:
5
version_id:
21
issue_org_id:
6132
author_id:
18994
assigned_to_id:
5
comments:
26
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I've looked at the fix in defect 5317 and the code changes are in the appropriate places


journals

If you are on 1.0 you don't need any patches.

Please see [[SubmittingBugs]], especially: What ATOM feed exactly? Does it produce an error in the log?
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Mmh, that works for me:

<pre>curl "http://orga.fachschaften.org/projects/administration/activity.atom?key=xxxxx&show_messages=1"</pre>

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.
--------------------------------------------------------------------------------
Hello - thanks for the response. BTW - I think Redmine is brilliant.

I've made no code changes.

The url is http://80.177.48.68/redmine/projects/rmfbc/boards?format=atom&key=8361485aeaa58a50f8a57a76f0935e84e07f1f84

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.

--------------------------------------------------------------------------------
Also if you use Feed Validator is complains

http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2F80.177.48.68%2Fredmine%2Fprojects%2Frmfbc%2Fboards%3Fformat%3Datom%26key%3D8361485aeaa58a50f8a57a76f0935e84e07f1f84
--------------------------------------------------------------------------------
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 @http://host/projects/identifier/boards/id.atom?key=XXXXX@. Notice the URI called ends in @.atom@, not like the URI you have where it says @format=atom@. Where did you get your redmine from?
--------------------------------------------------------------------------------
Hello.

I got the release from BitNami (http://bitnami.org/). In the root folder changelog.txt has as it's latest entry

Version 1.0.0-0 2010-07-22
*Update Remdine to 1.0.0

The Remdine is a spelling mistake in the changelog.txt

I've checked the projects_controller.rb and index.rhtml as described in http://www.redmine.org/issues/5317 and everything is there.

What do I need to change in order to get the .atom at the end instead of format=atom?

Thanks once again.

Regards

Richard

--------------------------------------------------------------------------------
Well, you seem to have the right codebase, so I'm a little at a loss here…

Could you have a look at the redmine log (probably in @redmine_dir/log/production.log@), hit the atom link with wget or curl and paste the error here?
--------------------------------------------------------------------------------
Hello, this happens to me too. However, I am using Safari and try to view
feed://myserver/redmine/activity.atom?key=xxxx

And it returns 0 items.
--------------------------------------------------------------------------------
Production logs as follows the first using curl and the second RSSOwl.

# Logfile created on Mon Aug 16 10:04:45 +0100 2010

Processing IssuesController#index to atom (for 208.115.138.254 at 2010-08-16 10:05:43) [GET]
Parameters: {"format"=>"atom", "action"=>"index", "controller"=>"issues", "key"=>"8361485aeaa58a50f8a57a76f0935e84e07f1f84"}
Rendering common/feed.atom.rxml
Completed in 1875ms (View: 438, DB: 672) | 200 OK [http://80.177.48.68/redmine/issues.atom?key=8361485aeaa58a50f8a57a76f0935e84e07f1f84]

Processing IssuesController#index to atom (for 193.113.57.167 at 2010-08-16 10:05:46) [GET]
Parameters: {"format"=>"atom", "action"=>"index", "controller"=>"issues", "key"=>"8361485aeaa58a50f8a57a76f0935e84e07f1f84"}
Rendering common/feed.atom.rxml
Completed in 1359ms (View: 453, DB: 172) | 200 OK [http://80.177.48.68/redmine/issues.atom?key=8361485aeaa58a50f8a57a76f0935e84e07f1f84]

Cheers

Richard
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Sorry wrong feed - trying to do too many things this morning.

Excerpt from the log is attached.

Rich

--------------------------------------------------------------------------------
Ok, try adding @accept_key_auth :show@ on a line after @before_filter :find_project, :find_board_if_available, :authorize@ in @app/controllers/boards_controller.rb@.
--------------------------------------------------------------------------------
(and naturally restart the redmine server after that.)
--------------------------------------------------------------------------------
Afraid not. Added the code stopped and started services. Added the production.log excerpt. I not get the authentication page when I call

http://80.177.48.68/redmine/projects/rmfbc/boards?format=atom&key=8361485aeaa58a50f8a57a76f0935e84e07f1f84

Sorry

Richard
--------------------------------------------------------------------------------
Richard, are you sure you have 1.0.0? The atom links for a project's boards overview should be of the form @yourhost.com/project/identifier/activity.atom?key=xxx&show_messages=1@, @yourhost.com/project/identifier/activity?format=atom&key=xxx&show_messages=1@ 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 @http://www.redmine.org/projects/redmine/boards/1.atom?key=xxx@ (notice the board ID after @/boards/@).
--------------------------------------------------------------------------------
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?
--------------------------------------------------------------------------------
See update #7. This is what I've used to determine if I'm running 1.0.0. Is there another way?

Will try single and let you know.
--------------------------------------------------------------------------------
Last idea, after that I'm really totally out of them: change the @accept_key_auth :show@ I made you add earlier to @accept_key_auth :show, :index@.
--------------------------------------------------------------------------------
Richard Cave wrote:
> See update #7. This is what I've used to determine if I'm running 1.0.0. Is there another way?

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.
--------------------------------------------------------------------------------
Working!! Well done and thank you for your time and efforts. Brilliant!

Regards

Richard
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Glad we got this one :-) Resolved is for committed-to-trunk-but-not-to-stable-yet though.

Eric or JB, could you commit? The change is to add @accept_key_auth :show, :index@ in the @boards_controller.rb@.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Added in r3942.
--------------------------------------------------------------------------------
Merged to 1.0-stable for release in 1.0.1.
--------------------------------------------------------------------------------


related_issues

relates,Closed,5317,projects.atom with required authentication

Admin Redmine さんが3年以上前に更新

  • カテゴリForums_5 にセット
  • 対象バージョン1.0.1_21 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0