? Success

User tests: Successful: Unsuccessful:

avatar clinchergt
clinchergt
8 Nov 2014

An attempt to fix issue #4934

Steps to reproduce the issue

  1. create an article for registered users only,
  2. create a menu item to aforementioned article,
  3. go to the front-end of the site and log in,
  4. access the article through the menu item,
  5. log out,
  6. click menu item.

Expected result

Get error explaining I'm not authorized to access the article since I'm not logged in.

Additional Information

Problem seemed to only be happening with Firefox.

Make sure to use an incognito/private browsing window to ensure that neither cookies nor the cache will affect the testing.

If you try accessing the article without ever having logged in, you'll get what was described in the "Expected result" section, so it's the logging in that's causing this behaviour after logging out.

This PR deals with the problem making the logout not spit out a "permanently moved" code.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar clinchergt clinchergt - open - 8 Nov 2014
avatar jissues-bot jissues-bot - change - 8 Nov 2014
Labels Added: ?
avatar jissues-bot jissues-bot - change - 8 Nov 2014
Labels Added: ?
avatar RCheesley RCheesley - test_item - 8 Nov 2014 - Tested successfully
avatar RCheesley
RCheesley - comment - 8 Nov 2014

Successful test - had to open the site in an incognito window due to cached redirects as recommended.

On application of patch the correct error message is displayed.

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

avatar philipwatz philipwatz - test_item - 8 Nov 2014 - Tested successfully
avatar philipwatz
philipwatz - comment - 8 Nov 2014

jes it work


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

avatar crystalenka
crystalenka - comment - 8 Nov 2014

SEF is causing strange issues in 3.3.6 - despite being in incognito on Firefox. I'd revisit this, make sure SEF is turned on because I can't reproduce the issue with SEF turned on.

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

avatar yireo
yireo - comment - 8 Nov 2014

I've been testing this for half an hour: When repeating the test, I got the same results: When in normal browser mode, the message pops up. When in Incognito Mode, after logging in and logging out again, the warning does not appear. However, looking closer shows me that I'm actually being redirected from the new Menu-Item back to the homepage. When debugging things using die() statements in the Joomla code, I can see that the Joomla index.php is never executed but Firefox itself is redirecting back to the Joomla homepage, based on the previous results. This seems like a caching issue with Firefox to me, not an issue with Joomla.

@test: Unable to confirm Joomla issue

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

avatar roland-d roland-d - alter_testresult - 8 Nov 2014 - yireo: Tested unsuccessfully
avatar roland-d
roland-d - comment - 27 Nov 2014

@clinchergt Can you verify the outcome by @yireo ?

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

avatar clinchergt
clinchergt - comment - 8 May 2015

@yireo and @roland-d: sorry for taking so long. I read your comments and decided to check further. I've updated the PR with a, imo, better fix.

Apparently, that true I removed was returning a 301 code (page permanently moved). I'm guessing Firefox and IE handle this differently from Chrome, so that's why it wasn't happening on both. However, even if they do handle it differently, this redirect does not warrant a 301 code since the page hasn't been moved.

See also: https://github.com/joomla/joomla-cms/blob/staging/libraries/vendor/joomla/application/src/AbstractWebApplication.php#L258

I'd appreciate a PR review and some testers :D

avatar jissereitsma
jissereitsma - comment - 9 May 2015

(I'm the same guy as @Yireo) I checked the PR and it looks dead-simple to me. Next, I tested it myself to see the difference. Without the patch a 303 code is sent, with the patch a 301 code is sent. Looks fine to me!

avatar zero-24 zero-24 - alter_testresult - 9 May 2015 - jissereitsma: Tested successfully
avatar zero-24 zero-24 - alter_testresult - 9 May 2015 - yireo: Tested successfully
avatar zero-24 zero-24 - alter_testresult - 9 May 2015 - yireo: Not tested
avatar clinchergt
clinchergt - comment - 12 May 2015

@infograf768: I'd appreciate your input here as well since you were also part of the discussion here: #4934
Thanks!

avatar clinchergt
clinchergt - comment - 5 Jun 2015

Hey @crystalenka and @RCheesley could I get you guys to test this fix once again? I'd appreciate it. Thanks!

avatar zero-24 zero-24 - alter_testresult - 11 Jun 2015 - philipwatz: Not tested
avatar zero-24 zero-24 - alter_testresult - 11 Jun 2015 - RCheesley: Not tested
avatar zero-24 zero-24 - change - 11 Jun 2015
Category Plugins
avatar mdemop mdemop - test_item - 19 Jul 2015 - Tested successfully
avatar zero-24 zero-24 - change - 27 Jul 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 27 Jul 2015

RTC


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

avatar joomla-cms-bot joomla-cms-bot - change - 27 Jul 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 25 Aug 2015
Milestone Added:
avatar Kubik-Rubik Kubik-Rubik - change - 3 Sep 2015
Milestone Added:
avatar Kubik-Rubik Kubik-Rubik - change - 3 Sep 2015
Milestone Removed:
avatar rdeutz rdeutz - reference | 739de96 - 1 Oct 15
avatar rdeutz rdeutz - merge - 1 Oct 2015
avatar rdeutz rdeutz - close - 1 Oct 2015
avatar rdeutz rdeutz - change - 1 Oct 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-10-01 18:05:13
Closed_By rdeutz
avatar rdeutz rdeutz - close - 1 Oct 2015
avatar joomla-cms-bot joomla-cms-bot - close - 1 Oct 2015
avatar joomla-cms-bot joomla-cms-bot - change - 1 Oct 2015
Labels Removed: ?
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone Added:
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone Added:
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone

Add a Comment

Login with GitHub to post a comment