? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
14 Jan 2021

Updates the strings to use Allowed and Forbidden instead of whitelist and blacklist. This still leaves the use of whitelist in com_csp as I can't actually see a list at all. @zero-24 please clarify

Uses the terms allowed and forbidden instead of whitelist and blacklist

Continuation of #29703

Previous comment

I just spent some time looking at this and it will never be a simple search and replace. After thinking about it for a while I think in most cases it will be enough to just changed to allowed and forbidden but there will be some occasions where for linguistic reasons it will need to be allowed list and forbidden list

The second issue is should this be everywhere or just in the visible strings. Everywhere means changing comments and variable names and to me the time to do that has now passed. But some might argue that if you still have a variable called $blacklist then you're not really desensitizing the language.

If @wilsonge and @bembelimen can make a decision on that I can easily do the work

avatar brianteeman brianteeman - open - 14 Jan 2021
avatar brianteeman brianteeman - change - 14 Jan 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jan 2021
Category Administration Language & Strings
57750c3 14 Jan 2021 avatar brianteeman /
avatar brianteeman brianteeman - change - 14 Jan 2021
Labels Added: ? ?
461cb9c 14 Jan 2021 avatar brianteeman sync
avatar zero-24
zero-24 - comment - 14 Jan 2021

The usage of whitelist in com_csp can be changed to allowlist as well without any problems.

avatar brianteeman
brianteeman - comment - 14 Jan 2021

But where is this list?

avatar zero-24
zero-24 - comment - 14 Jan 2021

The collected and approved urls are put together as 'allowlist' for example or in this case Allowed domains to "use" whatever directive we are talking about.

avatar wilsonge
wilsonge - comment - 15 Jan 2021

For the code. It's going to be a bit situational. For things like https://github.com/joomla/joomla-cms/pull/29703/files#diff-108363cbc354ffab84b1fd1e834d0406f74132c0dd946ec7f8445e3c4ad67e1bR136 which was soley a variable used in a function (i.e. not accessible to anyone) then it's fine to change obviously.

Some of the other changes like https://github.com/joomla/joomla-cms/pull/29703/files#diff-e6d69a506c2984b154921451397a94d38a0513f0f40da9a531cc311a40daf624R145 which changed the term saved to db - less sure. As we're still going to always read both formats out not really sure it's a major issue (and personally it's one of those things where I wouldn't even deprecate for bs5 - just read them both forever - because assets are rarely going to change and I think it's asking too much)

I think the major thing in the old PR I wouldn't maybe feel comfortable changing anymore would be the ListModel stuff - because that's very widely extended by 3rd parties.

avatar bembelimen
bembelimen - comment - 15 Jan 2021

Thank you for your PR! In my opinion we should do all or should not do it at all. Otherwise it is just a "sham". That's what I tried at least with the PR. I think I found all the appearance and made it B/C, so you could just look up the lines and fix them. My problem was just to be not native english...

avatar brianteeman
brianteeman - comment - 15 Jan 2021

@bembelimen I will take a look this weekend. The key issue is that its not a simple search replace so each use has to be checked.

avatar adj9 adj9 - test_item - 16 Jan 2021 - Not tested
avatar adj9
adj9 - comment - 16 Jan 2021

I have not tested this item.

But where are the terms to be verified?


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

avatar joomla-cms-bot joomla-cms-bot - change - 16 Jan 2021
Category Administration Language & Strings Administration com_config com_users Language & Strings Libraries Front End Plugins
avatar brianteeman brianteeman - change - 16 Jan 2021
The description was changed
avatar brianteeman brianteeman - edited - 16 Jan 2021
avatar brianteeman
brianteeman - comment - 16 Jan 2021

@bembelimen I think I have got all the code changes you suggested plus one additional one. Please can you check.

avatar bembelimen
bembelimen - comment - 16 Jan 2021

Didn't found anything, not sure if this b/c thing in the UsersModel is needed, because it's merged anyways, but otherways great job, thanks ?

avatar brianteeman
brianteeman - comment - 19 Jan 2021

@bembelimen not sure as I'm not sure about the deprecation at such a late time. Will leave that decision to @wilsonge

avatar ceford ceford - test_item - 25 Jan 2021 - Tested successfully
avatar ceford
ceford - comment - 25 Jan 2021

I have tested this item successfully on 25686ef

I code searched for BLACKLIST, BLACK_LIST, blacklist and Blacklist (and white versions) before and after applying PR. The only ones unaffected were in libraries/vendor and media/vendor. Except for Blacklist in libraries/src/MVC/Model/ListModel.php - was that covered in the discussion?


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

avatar wilsonge
wilsonge - comment - 25 Jan 2021

For the component specific implementation I think it's fine to remove the old properties. In list model you're right to keep B/C

avatar gostn gostn - test_item - 31 Jan 2021 - Tested successfully
avatar gostn
gostn - comment - 31 Jan 2021

I have tested this item successfully on 25686ef


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

avatar brianteeman
brianteeman - comment - 2 Feb 2021

@wilsonge I'm not sure I understand what you want to do here.

avatar brianteeman
brianteeman - comment - 14 Feb 2021

I guess its not that important after all

avatar wilsonge wilsonge - change - 14 Feb 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-02-14 00:26:50
Closed_By wilsonge
avatar wilsonge wilsonge - close - 14 Feb 2021
avatar wilsonge wilsonge - merge - 14 Feb 2021
avatar wilsonge
wilsonge - comment - 14 Feb 2021

Thanks!

avatar brianteeman
brianteeman - comment - 14 Feb 2021

Now I see your commit I understand your comment. I didnt before - sorry

avatar wilsonge
wilsonge - comment - 15 Feb 2021

Don't worry about it. Sorry for not replying promptly!

Add a Comment

Login with GitHub to post a comment