#400: Wrong link to particular ticket or ticket change in email notifications and serch results (Open)

Apr 22 2008 * 17:28
Reported by:   Assigned to: dim 
Priority: Major  Milestone: 1.1 
Release:    Component:  Ticketing 

When the site host more than one project and the user has access to more than one project as well (let it be named P1 and P2), than searching on P1 found right information (tickets for instance) but has a wrong links to it.

I mention that if the found ticket as actually projects/P1/ticket/NN it has reference to wrong project with link like projects/P2/ticket/NN.

The same thing is happening in email notifications.

I believe that issue it somewhere in previewable’s ticket model.

Changelog:

Modified by – Jun 03 2008 * 19:49

Doe someone has the same issue?

Modified by – Jun 07 2008 * 13:07

  • Assigned user set to dim

Hey Aleksey, is this still an issue?

Modified by Anonymous – Jun 07 2008 * 13:24

Yes it does. Just update to [r504] and made a search inside a project A , it found right documents but return a link with project name point project B.

Modified by – Jun 08 2008 * 10:35

  • Milestone set to 1.1

Hi again!

I just tested it myself and I am not having this issue, I simply cannot recreate it. What I did:

  • Created two projects
  • Created tickets within the projects
  • Searched for the tickets
  • Tickets were found, the links were matching to project

Have you added any patches to your code? Could you possibly add some debug information?

Thanks

Modified by – Jun 08 2008 * 10:57

Actually i have more than one project (for now there are 8 of them) and i am running on postgresql db. I have some patches over the code, but believes that they are can’t affect such a behavior.

softlynx# svn update
At revision 506.
softlynx# svn status | grep ^M
M      app/helpers/tickets_helper.rb
M      app/views/layouts/_top.rhtml
M      app/views/layouts/_header.rhtml
M      app/views/tickets/_list.rhtml
M      app/views/tickets/_ticket_info.rhtml
M      db/schema.rb
M      extensions/retro_blog/views/blog/show.rhtml
M      extensions/retro_blog/views/blog/index.rhtml
M      config/environments/production.rb
M      config/constants.rb
M      lib/retrospectiva/search_tokenizer.rb
M      public/dispatch.rb
M      public/images/logo.png
M      public/images/bg.thead.png
M      public/images/bg.flashbox.png
M      public/images/bg.header.png
M      public/dispatch.fcgi
M      public/.htaccess
M      public/stylesheets/theme.css
softlynx# svn diff app/helpers/tickets_helper.rb config/environments/production.rb config/constants.rb lib/retrospectiva/search_tokenizer.rb
Index: app/helpers/tickets_helper.rb

is in attachment.

Modified by – Jun 08 2008 * 10:59

The search result screenshot

Modified by – Jun 08 2008 * 10:59

The search result screenshot

Modified by – Jun 08 2008 * 11:01

As you can see on the below screenshots the same searched ticket is referenced with two different projects.

What an additional debug i can provide you?

Modified by – Jun 11 2008 * 19:53

Hi again, could you please try to comment out lines 115 to 117 in lib/previewable.rb:

  if target_project
    options.merge!(:project_name => target_project.short_name)
  end

to

#  if target_project
#    options.merge!(:project_name => target_project.short_name)
#  end

Is this also happening in the RSS feed or only in the search?

Modified by – Jun 12 2008 * 05:58

It does not happening in the RSS but does in search and subscribed ticket email notifications.

I’ll try you above suggestion.

Modified by – Jun 12 2008 * 11:23

I have commented the lines you point me and it seems to be work fine for the search results but the links inside email notifications has lost the project name at all and looks like https://dev.softlynx.ru/ticket/204#ch1007

Modified by – Jun 14 2008 * 09:06

  • Priority changed from Normal to Major

Modified by – Jun 15 2008 * 16:17

Has to note that RSS lost the project name as well as email notifications.

Modified by – Jul 06 2008 * 08:51

Is there any new suggestions?

Modified by – Aug 04 2008 * 20:26

Really sorry, had not much time recently for patching.

I started working on a complete rewrite of Retrospectiva. It looks very promising already, but it will take me another few weeks until everything is ready.

Please stay in the loop.

Modified by Andreas Semt – Aug 13 2008 * 08:59

Hello,

I use RETROSPECTIVA_VERSION = ‘1.1-DEV (503)’ and have the same problem with wrong links in ticket change mail notifications. In my setup there are also more than one projects.

Something i can do to help solving this particular problem? In which code files i should look? The mail notification (relative to ticket changes) is nearly useless if all links in the mails are wrong … The users of my Retrospectiva setup are not happy with this.

So, please: How can I help to fix this?

Best regards, Andreas Semt

Add comment and/or change ticket properties




Status: Assigned to:
Priority: Milestone:
Release:    Component: