? ? Pending

User tests: Successful: Unsuccessful:

avatar tonypartridge
tonypartridge
22 May 2017

Pull Request for Issue #15730.

Summary of Changes

Add check that current is not the homepage menu itemid, then check the user has access before applying the Itemid.

Testing Instructions

Before patch, set the homepage as a 'Registered' Access level menu on a blank install. And access the menu, any menu item will do.

Expected result

You are redirected to a login page.

Actual result

You end up in a redirect loop.

Documentation Changes Required

avatar tonypartridge tonypartridge - open - 22 May 2017
avatar tonypartridge tonypartridge - change - 22 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 May 2017
Category Libraries
avatar zero-24
zero-24 - comment - 22 May 2017
avatar tonypartridge tonypartridge - change - 22 May 2017
Labels Added: ?
avatar tonypartridge
tonypartridge - comment - 22 May 2017

@zero-24 I was doing it just as you commented :-). All done, waiting for it to be re-tested it.

avatar wilsonge
wilsonge - comment - 22 May 2017

Can we please ensure there is a test on a multilanguage site - we might need to add this check to the if statement above it as well - just on code review. It might be ok.

avatar wilsonge
wilsonge - comment - 22 May 2017

I have tested this item successfully on 9398f56

Tested on a mongolanguage and multilanguage site. Seems to redirect correctly! Nice job!


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

avatar wilsonge wilsonge - test_item - 22 May 2017 - Tested successfully
avatar wilsonge
wilsonge - comment - 22 May 2017

@rdeutz we've had multiple trackers about this. I know it's last minute but it really should ship in 3.7.2 (even if that means we delay the release another day so the CMS release team have time)

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2017

I have tested this item successfully on 9398f56


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 23 May 2017 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 May 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2017

RTC after two successful tests.

avatar rdeutz
rdeutz - comment - 23 May 2017

It is not enough to make sure this patch fixes a problem we also need to make sure it doesn't has a side effect. This need intensive testing.

Re 3.7.2, we are at the end of the release process, more or less hitting the publish button is missing, so this here is too late for 3.7.2.

avatar infograf768
infograf768 - comment - 23 May 2017

Works fine on multilang.

avatar brianteeman brianteeman - change - 23 May 2017
Labels Added: ?
avatar brianteeman
brianteeman - comment - 23 May 2017

I took a 3.6.5 web site and made the home page registered only AND made sure there was no login menu item
Loading the site on the front end I am taken to index.php/component/users/?view=login and can login

I upgraded the site to 3.7.1 and I get the "too many redirects" issue

I applied the patch and once again it is working and I am taken to index.php/component/users/?view=login and can login

So this is a successful test.

NOTE if you have a login menu item then you would not have needed this patch at all

avatar brianteeman
brianteeman - comment - 23 May 2017

I have tested this item successfully on 18bfbaf


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

avatar brianteeman brianteeman - test_item - 23 May 2017 - Tested successfully
avatar tonypartridge
tonypartridge - comment - 23 May 2017

@infograf768 could you please add a confirmed test if you have tested it on multilingual sites?

avatar infograf768
infograf768 - comment - 23 May 2017

I have tested this item successfully on 18bfbaf


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

avatar infograf768 infograf768 - test_item - 23 May 2017 - Tested successfully
avatar wilsonge wilsonge - change - 23 May 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-05-23 09:14:11
Closed_By wilsonge
avatar wilsonge wilsonge - close - 23 May 2017
avatar wilsonge wilsonge - merge - 23 May 2017
avatar wilsonge
wilsonge - comment - 23 May 2017

4 good tests - I'm merging this

avatar brianteeman
brianteeman - comment - 23 May 2017

I really dont see the need to rush this into 3.7.2 when it is easily fixed by anyone right now who has this issue by adding a login menu item and this can be added to the docs

avatar infograf768
infograf768 - comment - 23 May 2017

3.7.2 packs are ready. Last night merges as well as this one will be in 3.7.3

avatar tonypartridge
tonypartridge - comment - 23 May 2017

whilst that is true @brianteeman It's about the people who upgrade their sites and have no clue about why their site has suddenly gone down with redirect loops. And another user in the original posts has tons of websites to update, doing so would cause them all to go down when he updates via the update manager.

avatar brianteeman
brianteeman - comment - 23 May 2017

@wilsonge was trying to get this into 372

avatar wilsonge
wilsonge - comment - 23 May 2017

We're not merging this into 3.7.2 - hence why I've merged it with a 3.7.3 milestone

avatar brianteeman
brianteeman - comment - 23 May 2017

@wilsonge our messages crossed in the ether ;)

avatar rdeutz
rdeutz - comment - 23 May 2017

Wondering why travis didn't run on this, on jenkins one unit test is falling

avatar stevlam
stevlam - comment - 23 May 2017

thanks! I see fix will be on 3.7.3 . OK will manually replace and fix the site until them

avatar infograf768
infograf768 - comment - 23 May 2017

@tonypartridge
Please redo your PR. We have to make sure tests are not failing.

avatar tonypartridge
tonypartridge - comment - 23 May 2017

I blame @brianteeman 's language changes ;-) Will do it now.

avatar brianteeman
brianteeman - comment - 23 May 2017

they were in comments !!

Add a Comment

Login with GitHub to post a comment