Page 1 of 1
Hyperlinks from Excel and Word
Posted: 27 Oct 2010, 09:33
by elpakko
Hello.
Hyperlinks to Mantis issues from MS Excel and Word are not working correctly. For example if I have the following link inside a Word document or a Excel cell:
http://mantis/view.php?id=1824
For some reason clicking the link will redirect to
http://mantis/my_view_page.php which is the default view when logging in to Mantis.
The strange thing here is that if I have the same hyperlink for example in my Outlook email editor, it works fine. Also if I click the link from this forum site it works perfectly. So I know there is nothing wrong with the link url itself. I have tested this behaviour with IE8, IE9, Mozilla Firefox -browsers and Office 2003, 2010 -products. This happens in both of my two Mantis versions: 1.2.1 and 1.1.1. So apparently this is a problem with Excel and Word.
Other users claim that this worked in our very old Mantis version 0.19.4 but I really don't know if that's true...
Have anyone experinced the same problem and is there possibly someone who could help? Any help much appreciated!
Thanks.
Re: Hyperlinks from Excel and Word
Posted: 28 Oct 2010, 07:59
by atrol
You can check the access log files of your webserver to find the difference between Outlook and Word
Re: Hyperlinks from Excel and Word
Posted: 28 Oct 2010, 10:53
by elpakko
Ok, thanks. Here's what I see:
Apache access log - a successfull attempt (from outlook mail editor):
[28/Oct/2010:13:46:24 +0300] "GET /view.php?id=1824 HTTP/1.1" 200 14104 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0)"
Apache access log - an unsuccessful attempt (from excel cell):
[28/Oct/2010:13:44:21 +0300] "GET /view.php?id=1824 HTTP/1.1" 302 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0; ms-office)"
[28/Oct/2010:13:44:21 +0300] "GET /login_page.php?return=view.php%3Fid%3D1824 HTTP/1.1" 200 3758 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0; ms-office)"
[28/Oct/2010:13:44:22 +0300] "GET /login_page.php?return=view.php%3Fid%3D1824 HTTP/1.1" 302 - "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0)"
[28/Oct/2010:13:44:22 +0300] "GET /my_view_page.php HTTP/1.1" 200 33489 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Tablet PC 2.0)"
So there is some differences in the get-command. Does someone know how to fix this? Thanks.
Re: Hyperlinks from Excel and Word
Posted: 17 Nov 2010, 10:07
by elpakko
Still banging my head with this one... Help anyone?
Re: Hyperlinks from Excel and Word
Posted: 07 Jun 2011, 16:59
by atrol
Re: Hyperlinks from Excel and Word
Posted: 08 Jun 2011, 13:40
by Lapinkiller
Hello
Sherlock Holmes is here !
Mantis uses cookies for authentication (to know if user is authenticated or not, mantis look a cookie)
When you click on a link in an office document, office try to open link instead of just giving the link to the web-browser
if IE (

) is the default browser, at each link you will have to login and link will works
else, first time you will have to login and link will works, but after, mantis will not prompt you to login and will redirect you to my_view_page.php
http://support.microsoft.com/kb/899927
Re: Hyperlinks from Excel and Word
Posted: 09 Jun 2011, 08:46
by elpakko
Ok, that seems to be the problem here. So i guess we just have to live with it...
Thanks!
Re: Hyperlinks from Excel and Word
Posted: 10 Jun 2011, 11:29
by Lapinkiller
Re: Hyperlinks from Excel and Word
Posted: 10 Jun 2011, 11:47
by elpakko
Thanks a ton! Hope this is fixed in the next version of Mantis.
Re: Hyperlinks from Excel and Word
Posted: 21 Nov 2011, 10:08
by funta
@Lapinkiller
I installed your patch to mantis 1.2.8, but unfortunately it does not resolve the issue.
Now all links clicked in an external application (excel, word, desktop shortcut etc) got to this url:
http://mantis.my.domain.com/mantis//man ... php?id=123
instead to
http://mantis.my.domain.com/mantis/view.php?id=123
Re: Hyperlinks from Excel and Word
Posted: 22 Nov 2011, 16:10
by Lapinkiller
take a look a my response on the bugtracker

Re: Hyperlinks from Excel and Word
Posted: 24 Nov 2011, 23:07
by dregad
I have just committed LapinKiller's patch.