? ? ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
4 Oct 2018

Target isClient and isAdmin for version 5.0.

Removes the deprecated functions isAdmin and isSite. See comments below for more information.

avatar laoneo laoneo - open - 4 Oct 2018
avatar laoneo laoneo - change - 4 Oct 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Oct 2018
Category Libraries
avatar wilsonge
wilsonge - comment - 4 Oct 2018

Unsure whether this is a good idea. We have a permanent 3rd application type (in the console App https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Application/ConsoleApplication.php )

And the API app will be a type 4 when it gets introduced which will definitely be in the 4.x series (maybe 4.0 if i put the base app code in without the base extension classes)... So this method is going to behave differently in j4 to j3 :/

i.e. what i'm saying is because we have more application types maybe we should consider removing this in j4. unsure

avatar laoneo
laoneo - comment - 4 Oct 2018

Thought I will have a fight to remove it, so I took the easy way and wanted at least to add a proper message. I'm ok with removal too as it exists now for a couple of years in the J3 code base and it would be an acceptable BC break IMO.

avatar laoneo laoneo - change - 17 Oct 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 Oct 2018
Category Libraries Libraries Front End Plugins
avatar laoneo
laoneo - comment - 17 Oct 2018

Ok, removed the functions

avatar laoneo laoneo - change - 17 Oct 2018
Title
[4.0] Target isClient and isAdmin for version 5.0
[4.0] Remove deprecated functions isClient and isAdmin
avatar laoneo laoneo - edited - 17 Oct 2018
avatar laoneo laoneo - change - 17 Oct 2018
The description was changed
avatar laoneo laoneo - edited - 17 Oct 2018
avatar laoneo laoneo - change - 17 Oct 2018
Title
[4.0] Remove deprecated functions isClient and isAdmin
[4.0] Remove deprecated functions isSite and isAdmin
avatar laoneo laoneo - edited - 17 Oct 2018
avatar rdeutz rdeutz - change - 16 Nov 2018
Labels Added: ?
avatar bonzani
bonzani - comment - 18 Jan 2019

I have tested this item successfully on c30f5b8


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

avatar bonzani
bonzani - comment - 18 Jan 2019

I have tested this item successfully on c30f5b8


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

avatar bonzani bonzani - test_item - 18 Jan 2019 - Tested successfully
avatar Quy
Quy - comment - 18 Jan 2019

I have tested this item successfully on c30f5b8


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

avatar Quy Quy - change - 18 Jan 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 18 Jan 2019

RTC


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

avatar Quy
Quy - comment - 18 Jan 2019

RTC


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

avatar Quy Quy - test_item - 18 Jan 2019 - Tested successfully
avatar infograf768
infograf768 - comment - 19 Jan 2019

We have a few isAdmin in the vendor folder. Do these have to be taken care of?

avatar infograf768 infograf768 - change - 19 Jan 2019
Labels Added: ?
avatar Quy
Quy - comment - 19 Jan 2019

@infograf768 Where? I don't see them.

avatar infograf768
infograf768 - comment - 20 Jan 2019

In a weird form
/libraries/vendor/codeception/codeception/docs/modules/Db.md

/libraries/vendor/codeception/codeception/docs/modules/MongoDb.md

It is also present, although commented out in 3 other files.

I have absolutely no idea what these files are for btw... and if isAdmin is used or not.

avatar mbabker
mbabker - comment - 20 Jan 2019

Codeception is not the Joomla API.

Just because an isAdmin method exists does not mean it is working with an object that is a subclass of our CMSApplication. Hint: anything in the libraries/vendor directory isn't working in that context ?

avatar infograf768
infograf768 - comment - 20 Jan 2019

Thanks @mbabker
Just wanted to be sure.

avatar wilsonge wilsonge - change - 2 Feb 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-02-02 23:28:58
Closed_By wilsonge
avatar wilsonge wilsonge - close - 2 Feb 2019
avatar wilsonge wilsonge - merge - 2 Feb 2019
avatar wilsonge
wilsonge - comment - 2 Feb 2019

Thanks!

avatar brianteeman
brianteeman - comment - 4 Oct 2020

By removing this code we completely kill sites on upgrade and leave them in a state that they cannot be recovered from

avatar wilsonge
wilsonge - comment - 4 Oct 2020

Can you elaborate? Presumably that’s if sites are running plugins with this code in?

avatar brianteeman
brianteeman - comment - 4 Oct 2020

see #30913

avatar joeforjoomla
joeforjoomla - comment - 4 Oct 2020

It's enough to have an isSite/isAdmin in a system plugin to kill a website.

Add a Comment

Login with GitHub to post a comment