? Failure

User tests: Successful: Unsuccessful:

avatar izharaazmi
izharaazmi
7 Nov 2016

Pull Request in continuation to #8445

Summary of Changes

Implementing the new pattern everywhere. All controllers that extend JControllerLegacy are set to use the "nice" handling instead of white screen on a token validation failure.

Wherever this was within a JSON response, the handling is kept intact as they are better suited it those contexts, changing only the message text.

Testing Instructions

Test the various backend and front-end forms which would earlier show a blank white page with just a message "Invalid Token". They should now redirect to same page if possible otherwise to home page; with appropriate message.

To see the effect the respective forms should be submitted after manipulating the token input in the form so as to trigger invalid token situation. This can usually be done by selecting in the browser "inspect element" (or similar) and modify the DOM.

If the token is valid (not manipulated or expired), everything should be working as usual without any difference.

The affected components are:

  • Banners
  • Cache
  • Categories
  • Contacts
  • ContentHistory
  • CustomFields
  • Finder
  • Installer
  • Joomla Update
  • Language Manager
  • Login/Logout
  • Media Manager
  • Module Manager
  • Menu Manager
  • Tags
  • Template Manager
  • User Manager
  • Joomla Installation Application (/installation)

Documentation Changes Required

Developer documentation should include this feature introduction. Text can be taken from #8445

avatar izharaazmi izharaazmi - open - 7 Nov 2016
avatar izharaazmi izharaazmi - change - 7 Nov 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Nov 2016
Category Administration Components com_media
avatar andrepereiradasilva
andrepereiradasilva - comment - 7 Nov 2016

ok from code review, just added one question, when possible will try to do some tests and see if there is no other left.

avatar joomla-cms-bot joomla-cms-bot - change - 10 Aug 2017
Category Administration Components com_media Administration com_banners com_cache com_categories com_checkin com_contact com_content com_contenthistory com_fields com_finder com_installer com_joomlaupdate com_languages com_login com_media com_menus Components
avatar izharaazmi
izharaazmi - comment - 10 Aug 2017

There is something wrong in all merge 'staging' happening these days. Not sure why. Will look again into this later.

avatar SamuelSchepp SamuelSchepp - test_item - 22 Aug 2017 - Tested unsuccessfully
avatar SamuelSchepp
SamuelSchepp - comment - 22 Aug 2017

I have tested this item ? unsuccessfully on 64c78f1

Unable to apply patch via git.
Applying patch with com_patchtester did not resolve the issues.

Tested:

  • Banners (New -> Name "test" -> removed last character of token -> Save)
  • Categories (New -> Name "test" -> removed last character of token -> Save)
  • Module Manager (New -> „Articles - Latest“ -> Title „test“ -> removed last character of token -> Save)

Result:

  • Banners: White Error Page
  • Categories: White Error Page
  • Module Manager: New message (green box)

Result: No change in Banners (admin) und Categories (admin).
@icampus


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12801.
avatar izharaazmi
izharaazmi - comment - 22 Aug 2017

@SamuelSchepp There are conflicts so patchtester/git may not be able to apply patch correctly. I'll resolve the conflicts then please test again.

avatar sabaturgay sabaturgay - test_item - 23 Jul 2018 - Tested successfully
avatar sabaturgay
sabaturgay - comment - 23 Jul 2018

I have tested this item successfully on 578a42f

I have tested this item succesfully
I changed session lifetime of global configuration to 1 minute

Tested:
Banners (New -> Name "test" -> wait 1 minute -> Save)
Contacts(New -> Name "test" -> wait 1 minute -> Save)

Result:
Banners: redirected sign in page
Contacts: redirected sign in page
@icampus


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12801.
avatar bene-we bene-we - test_item - 23 Jul 2018 - Tested successfully
avatar bene-we
bene-we - comment - 23 Jul 2018

I have tested this item successfully on 578a42f

What I tested:

Banner -> new -> Name "Test" -> Clear Site Data -> Save
Contacts -> new -> Name "Test" -> Clear Site Data -> Save
Joomla! Update -> Choose File -> Clear Site Data -> Upload & Install

Results:

Banner: Redirect to login page, after login redirect to Banner List page
Contacts: Redirect to login page, after login redirect to Contacts List page
Joomla! Update: Redirect to login page, after login redirect to home page


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

@icampus

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Jul 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Jul 2018

Ready to Commit after two successful tests.

avatar roland-d
roland-d - comment - 24 Jul 2018

@mbabker Good catch. This is not a new file but a file that was deleted in commit 204ef46 and this PR has not been updated since. So that is why it is still there. So this file should be removed from this PR. Either by @izharaazmi or a maintainer merging this PR.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Aug 2018

@izharaazmi can you please remove the File mentioned above by @roland-d and @mbabker?

avatar izharaazmi izharaazmi - change - 28 Aug 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 28 Aug 2018
Category Administration Components com_media com_banners com_cache com_categories com_checkin com_contact com_content com_contenthistory com_fields com_finder com_installer com_joomlaupdate com_languages com_login com_menus Administration com_associations com_banners com_cache com_categories com_checkin com_contact com_content com_contenthistory com_fields com_finder com_installer com_joomlaupdate com_languages com_login com_media Components
avatar izharaazmi
izharaazmi - comment - 28 Aug 2018

Done the conflict anomaly fix. I have updated 5 more of those usages. So maintainers might recommend to clear current test status.

PS: Can we have a new Label something like "Needs Work" or "Author Attention" so that it can be found out clearly which PR needs attention?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Aug 2018

Label something like "Needs Work" or "Author Attention"

@izharaazmi at Issue Tracker is an "Needs Review"-Status. But this isn't shown here and vice versa (Issue about this is open joomla/jissues#1032).

avatar izharaazmi
izharaazmi - comment - 28 Aug 2018

IMO, "Needs Review" sound more like a Reviewer attention rather than Author attention. Or not?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Aug 2018

True. It was an Information about what is available.

avatar mbabker mbabker - change - 3 Sep 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-03 17:19:36
Closed_By mbabker
avatar mbabker mbabker - close - 3 Sep 2018
avatar mbabker mbabker - merge - 3 Sep 2018

Add a Comment

Login with GitHub to post a comment