Defect #17309

RSS feed gives away localhost link

Added by Konstantin Kivi over 8 years ago. Updated almost 2 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Feeds
Target version:-
Resolution:Fixed Affected version:2.5.1

Description

I can see rss streem but
not use it, because it referes to
unaccessible content.

Note localhost:3000 links below.
Email notification contains valid links, though.

redmine works behind nginx, but I think it's irrelevant

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title></title>
  <link rel="self" href="http://localhost:3000/issues/16102.atom?key=12de9c34533537eeb40bca3c643322ef39adef9c"/>
  <link rel="alternate" href="http://localhost:3000/"/>
  <id>http://localhost:3000/</id>
  <icon>http://localhost:3000/favicon.ico?1396112202</icon>
  <updated>2014-06-26T06:44:49Z</updated>
  <author>
    <name>our redmine</name>
  </author>
  <entry>
    <title>MyProject - bug #16102: some bug</title>
    <link rel="alternate" href="http://localhost:3000/issues/16102"/>
    <id>http://localhost:3000/issues/16102?journal_id=90550</id>
    <updated>2014-06-26T06:44:49Z</updated>
    <author>
      <name>my name</name>
      <email>my email</email>
    </author>
    <content type="html">
&lt;ul&gt;&lt;li&gt;parameter &lt;strong&gt;version&lt;/strong&gt; changed to &lt;i&gt;v1.2-5&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;    </content>
  </entry>
</feed>

This is my configuration

Environment:
  Redmine version                2.5.1.stable
  Ruby version                   1.9.3-p194 (2012-04-20) [x86_64-linux]
  Rails version                  3.2.17
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.7.9
  Git                            1.8.3.2
  Filesystem                     
Redmine plugins:
  once_assigned_ever_watcher     0.1.0
  redmine_lightbox               0.0.1
  redmine_plugin_views_revisions 0.0.1
  redmine_pretend                0.0.3
  redmine_xls_export             0.2.1.t5

Selection_070.png (12.5 KB) Konstantin Kivi, 2014-06-30 13:30


Related issues

Related to Redmine - Defect #11147: relative_url_root changes only css... , but not dynamic p... New
Related to Redmine - Defect #10535: Atom feeds for the Project Activity contain incorrect hos... Reopened

Associated revisions

Revision 13196
Added by Toshi MARUYAMA over 8 years ago

Gemfile: update builder version >= 3.0.4 (#17309)

History

#1 Updated by Konstantin Kivi over 8 years ago

#2 Updated by Toshi MARUYAMA over 8 years ago

  • Status changed from New to Needs feedback

What is "Host name and path" in setting?

#3 Updated by Konstantin Kivi over 8 years ago

redmine.komtex
This address is resolvable in our local network and
it is how we get to redmine in browser

#4 Updated by Toshi MARUYAMA over 8 years ago

  • Related to Defect #11147: relative_url_root changes only css... , but not dynamic pages added

#5 Updated by Toshi MARUYAMA over 8 years ago

Try r13196 change to your installation.

#6 Updated by Konstantin Kivi over 8 years ago

It didn't help. we changed the line from patch
and installed required builder version.

#7 Updated by Toshi MARUYAMA over 8 years ago

  • Status changed from Needs feedback to New

Redmine uses url_for in this line.
source:tags/2.5.1/app/views/common/feed.atom.builder#L4
So, we cannot do anything.
It is problem of your web server or builder.

#8 Updated by Go MAEDA almost 2 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Fixed by #10535 for upcoming Redmine 4.2.0. After r19810, Redmine uses Setting.host_name ("Administration" > "Settings" > "General" > "Host name and path").

#9 Updated by Go MAEDA almost 2 years ago

  • Related to Defect #10535: Atom feeds for the Project Activity contain incorrect hostname added

Also available in: Atom PDF