?
avatar dirk-graetz
dirk-graetz
3 Oct 2015

Steps to reproduce the issue

1) Set the access level of a menu or an article to "registered"
2) Login and navigate to the URL (for example "domain.tld/login/profile")
3) Copy the entire URL into Word, Excel, PowerPoint or something like this
4) Click on the link

Expected result

If still logged in: Open the linked page in an new browser tab.

If logged out (because of logging out or closing the browser in the meantime): Login-Page and after login redirect to the "registered" url.

Actual result

Logout-Page with button "log out"

System information (as much as possible)

Joomla 3.4.4; Clean install; Tested on various systems (local and on live sites).

Additional comments

???

avatar dirk-graetz dirk-graetz - open - 3 Oct 2015
avatar dirk-graetz dirk-graetz - change - 3 Oct 2015
The description was changed
avatar n9iels
n9iels - comment - 8 Oct 2015

I can not reproduce the issue.

When I made a registered profile page (localhost/your-profile), and open this link in anther bower (so I am nog logged in) I see the login page. After login I am redirected to the profile page.
When I am logged in, and open this link I can open the profile page without any problems.

avatar dirk-graetz
dirk-graetz - comment - 8 Oct 2015

Hi Niels,
it's not a problem if you copy the link into the browser, it's a problem if
you ad the link to a MS Word-document and then klick on this link!
Please try the attached file with the link to your example page.

2015-10-08 21:39 GMT+02:00 Niels van der Veer notifications@github.com:

I can not reproduce the issue.

When I made a registered profile page (localhost/your-profile), and open
this link in anther bower (so I am nog logged in) I see the login page.
After login I am redirected to the profile page.
When I am logged in, and open this link I can open the profile page
without any problems.


Reply to this email directly or view it on GitHub
#8010 (comment).

avatar n9iels
n9iels - comment - 8 Oct 2015

Okay, strange...

Did the following:
1. Copy and past the link localhost/your-profile in a word document
2. ctrl + click on the link (this will open the link in your browswer)
3. logged in, and the page opens correctly
4. close the browser tab (so I am still logged in)
5. ctrl + click on the link in the word document
6. Getting a "logged out button" on the url localhost/login

So, issue confirmed. But no idea what cause it...

avatar peterpeter
peterpeter - comment - 16 Oct 2015

Hello
I can confirm that behaviour. The answer lies in the servers access.log:
Word does some kind of ping/linkprecheck, with a inbuild (and thus not logged in) Browser/HTTP-Class, and handles the standard-browser call based on the/these ping results.

Below are the access.log entries of one of these 'word-link-click'
(stipped out some stuff)

"HEAD ../index.php?option=com_cpcalendar&view=entry&lang=de HTTP/1.1" 303 - "-" "Microsoft Office Word 2013"
"GET ../index.php?option=com_users&view=login&return=L2pvb21sY...&lang=de HTTP/1.1" 200 31021 "-" "Microsoft Office Word 2013"
"GET ../index.php?option=com_cpcalendar&view=entry&lang=de HTTP/1.1" 303 2841 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; .... ms-office)"
"GET ../index.php?option=com_users&view=login&return=L2pvb21sYS9r.... HTTP/1.1" 200 31147 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/7.0; ..... ms-office)"
"GET ../index.php?option=com_users&view=login&return=L2pvb21sYS9r...&lang=de HTTP/1.1" 200 33904 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0"


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8010.

avatar peterpeter
peterpeter - comment - 16 Oct 2015

...and my systems standard browser was the last call, FireFox


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8010.

avatar dirk-graetz
dirk-graetz - comment - 23 Oct 2015

So no chance??


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8010.

avatar peterpeter
peterpeter - comment - 24 Oct 2015

Word does a kind of precheck of that link (as guest to a restricted area), and 'modifiy' the original link in word with the answer from the system (correct redirect to login). It's a behavior from Word. And in my opinion it's not possible to solve that on the joomla-side.

So yes, I would say, no chance, and suggest to close this issue.

avatar zero-24
zero-24 - comment - 24 Oct 2015

Closing as expected behavior Thanks @peterpeter and @dirk-graetz :smile:

avatar zero-24 zero-24 - change - 24 Oct 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-10-24 18:46:58
Closed_By zero-24
avatar zero-24 zero-24 - close - 24 Oct 2015

Add a Comment

Login with GitHub to post a comment