? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
4 Feb 2018

Pull Request for Issue #15730

Summary of Changes

Display the login form without an Itemid as it was before 3.7.0

Testing Instructions

Set a Home page to Registered.
Load the Home page
Test SEF on and off
Test with an existing Login Form menu item or not.

After patch

The login form will display whatever the situation

screen shot 2018-02-04 at 11 11 44

avatar infograf768 infograf768 - open - 4 Feb 2018
avatar infograf768 infograf768 - change - 4 Feb 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Feb 2018
Category Libraries
avatar infograf768 infograf768 - change - 4 Feb 2018
Labels Added: ?
avatar brianteeman
brianteeman - comment - 4 Feb 2018

I have tested this item successfully on 4fa702f


Before PR -
No login menu => too many redirects
With login menu => login

After PR
No login menu => login
With login menu => login

(thanks for listening that the correct approach was to look at the cause of the bug)


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

avatar brianteeman brianteeman - test_item - 4 Feb 2018 - Tested successfully
ea67fe6 4 Feb 2018 avatar infograf768 cs
avatar infograf768 infograf768 - alter_testresult - 4 Feb 2018 - brainteeman: Tested successfully
avatar infograf768 infograf768 - alter_testresult - 4 Feb 2018 - brainteeman: Tested successfully
avatar Quy
Quy - comment - 4 Feb 2018

I have tested this item successfully on ea67fe6


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

avatar Quy Quy - test_item - 4 Feb 2018 - Tested successfully
avatar Quy Quy - change - 4 Feb 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 4 Feb 2018

RTC


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

avatar infograf768 infograf768 - alter_testresult - 4 Feb 2018 - brainteeman: Not tested
avatar infograf768 infograf768 - alter_testresult - 4 Feb 2018 - brianteeman : Tested successfully
avatar Stevec4
Stevec4 - comment - 4 Feb 2018

I successfully tested this as well J3.85.RC with and without login form performs as JM stated.

avatar mbabker
mbabker - comment - 4 Feb 2018

This is still incorrect as bypassing the use of the router is wrong.

avatar Stevec4
Stevec4 - comment - 4 Feb 2018

I have tested this item successfully on ea67fe6

I successfully tested this as well J3.85.RC with and without login form performs as JM stated


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

avatar Stevec4 Stevec4 - test_item - 4 Feb 2018 - Tested successfully
avatar infograf768
infograf768 - comment - 4 Feb 2018

@mbabker

This is still incorrect as bypassing the use of the router is wrong.

It is imho a special case and I did my best. Welcome to better coders. ;)

avatar mbabker
mbabker - comment - 4 Feb 2018

Bypassing the router means there's still a broken routing condition. That's what's concerning here. Ya, it might work, but it's avoiding another issue.

avatar infograf768 infograf768 - change - 5 Feb 2018
Labels Added: ?
avatar infograf768
infograf768 - comment - 5 Feb 2018

@mbabker
Found a way to keep JRoute AND keep Itemid to NULL. Is that OK for you?

avatar brianteeman
brianteeman - comment - 5 Feb 2018

Removing RTC as the code has changed

avatar infograf768
infograf768 - comment - 5 Feb 2018

Please test anyway. Thanks.

avatar brianteeman
brianteeman - comment - 5 Feb 2018

I have tested this item successfully on a6530dd


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

avatar brianteeman brianteeman - test_item - 5 Feb 2018 - Tested successfully
avatar ggppdk
ggppdk - comment - 5 Feb 2018

hhmm, i am afraid that this PR is not enough

the redirection loop issue is fixed
... but the login form that appears has a target URL that includes an Itemid ...

  • and it is the Itemid of that the home page which is inaccessible

so as soon as you submit the form, you get redirected back to the login form, to try to login (again)

thus you cannot login
So since we can not update login forms in overrides if 3rd party templates to use JRoute will null Itemid
this will

  • either need to be fixed inside the router code
  • or need to go back to the PR that displays the warning message inside the home page menu item

in any case it is a rare misconfiguration issue, no need for this to be addressed in J3.8.5

avatar brianteeman
brianteeman - comment - 5 Feb 2018

I can not confirm that - login works correctly for me


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

avatar infograf768
infograf768 - comment - 5 Feb 2018

@ggppdk

I confirm your findings. The login form reloads.
Closing.

avatar infograf768 infograf768 - change - 5 Feb 2018
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2018-02-05 15:26:00
Closed_By infograf768
avatar infograf768 infograf768 - close - 5 Feb 2018
avatar ggppdk
ggppdk - comment - 5 Feb 2018

I can not confirm that - login works correctly for me

you will need to unpublish all 'com_users' menu items (of any type),
that way the menu item id (Itemid) that is selected for the form target URL will be the home page menu item id, which is not accessible

avatar brianteeman
brianteeman - comment - 5 Feb 2018

As the attached movie shows - I have no com_users menu items and with the patch applied it works perfectly

testibg

avatar ggppdk
ggppdk - comment - 5 Feb 2018

Make sure that SEF URLs are enabled (i tested with SEF URLs on),
and then please examine the HTML code login form and look at the form target URL,

the form target URL
if there are no com_users menu items published
-- it should have the menu item Id of the home page

only then you will not be able to login, because before login tasks executes, you will get redirected back to the login form due to the currently inaccessible menu item

avatar brianteeman
brianteeman - comment - 5 Feb 2018

Sef Enabled
screenshotr17-54-56

avatar ggppdk
ggppdk - comment - 5 Feb 2018

I tested with current staging and this PR

Look at my target URL

/devel/joomla-cms2/index.php/component/users/?task=user.login&Itemid=435

435 is the home page menu item which is inaccessible

i don't know why you get a form target URL that does not have a menu item

form_target_url

avatar infograf768
infograf768 - comment - 5 Feb 2018

@brianteeman
i think you did not apply correctly the last instance of the pr. look at the url you got. it does not inlude &itemid=

avatar brianteeman
brianteeman - comment - 5 Feb 2018

yeah - something went wrong locally. just did a clean install of everything and I see the problem

Add a Comment

Login with GitHub to post a comment