Improved: Rename some connoted words like blacklist and whitelist (OFBIZ-12168)

Renames respectively blacklist and whitelist to denylist and allowlist in
several places.

There are still a lot of master word which can be replaced by main, but not in
contexts where slave is also used. I'll discuss that on dev ML again...

Provides the migrateOldOrderBlacklistAndOldOrderBlacklistType service to migrate
records from OrderBlacklist and OrderBlacklistType entities to new OrderDenylist
and OrderDenylistType entities
This commit is contained in:
Jacques Le Roux
2021-02-09 09:55:39 +01:00
parent d61e0e7558
commit e7b3169d03
13 changed files with 173 additions and 75 deletions
@@ -38,7 +38,7 @@ import org.apache.logging.log4j.ThreadContext;
import org.apache.ofbiz.base.util.Debug;
/**
* A Filter used to specify a whitelist of allowed paths to the OFBiz application.
* A Filter used to specify an allowlist of allowed paths to the OFBiz application.
* Requests that do not match any of the paths listed in allowedPaths are redirected to redirectPath, or an error code
* is returned (the error code can be set in errorCode, the default value is 403).
* If forceRedirectAll is set to Y then allowedPaths is ignored and all requests are redirected to redirectPath; note
@@ -58,7 +58,7 @@ import org.apache.ofbiz.base.util.Debug;
* - for its internal logic (to avoid an infinite loop of redirections when forceRedirectAll is set) the filter sets
* a session parameter (_FORCE_REDIRECT_=true) before the first redirection; the parameter is removed during the
* second pass before the request is forwarded to the next filter in the chain
* - the filter skips the check against the whitelist of allowed paths if a request attribute
* - the filter skips the check against the allowlist of allowed paths if a request attribute
* with name _FORWARDED_FROM_SERVLET_ is present; this attribute is typically set by the ControlServlet to indicate
* that the request path is safe and should not be checked again
*/