Jacques Le Roux
bbfc62d47a
Improved: Fix or Silence various warnings
...
(OFBIZ-10701)
In order to detect potential issues early, the linting compiler option should be
used by default and disabled with {{./gradlew -PXlint:none build}}.
Additionally it is important to reduce the number of warnings otherwise new
warnings will remain unnoticed.
The warning related to the com.googlecode.concurrentlinkedhashmap dependency
should resolves itself once we handle upgrade to Caffeine like proposed in
OFBIZ-6747.
Thanks: Mathieu Lirzin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848673 13f79535-47bb-0310-9956-ffa450edef68
2018-12-11 13:33:49 +00:00
Jacques Le Roux
f5cd96479b
Documented: no functional change
...
Fixes security-impersonation.adoc file name to sy-impersonation.adoc
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847224 13f79535-47bb-0310-9956-ffa450edef68
2018-11-23 08:53:02 +00:00
Jacques Le Roux
159fb21f80
Documented: no functional change
...
Renames the security doc dir to docs as requested by documentation guidelines
Includes webapp.adoc in developer-manual.adoc
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847078 13f79535-47bb-0310-9956-ffa450edef68
2018-11-21 08:15:36 +00:00
Gil Portenseigne
a61c98775f
Implemented : Impersonation of userLogin feature
...
(OFBIZ-10515)
Introduce a new feature that allow the impersonation of a login by an authorized user.
Add the documentation with all the details in security-impersonation.adoc.
Big thanks to Leila, Nicolas and Jacques for your contribution to this implementation.
Big thanks to Mathieu, Jacques, Pierre and Taher for your remarks and reviews that
improved this contribution quality.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1842110 13f79535-47bb-0310-9956-ffa450edef68
2018-09-27 16:01:35 +00:00
Jacques Le Roux
40e8be83df
Improved: Always check if debug verbose is on when using Debug.logVerbose()
...
(OFBIZ-10052)
This completes r1818010, there were much more cases.
Also few tabs automatically replaced by spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818020 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 14:11:38 +00:00
Jacques Le Roux
e0d2057456
Improved: Always check if debug verbose is on when using Debug.logVerbose()
...
(OFBIZ-10052)
We discussed on this point: http://markmail.org/message/mplvusuqn7oshl4v
and we agreed about better doing a check when using Debug.logVerbose().
I checked there are 300+ cases like that. Since it's an easy S/R
This implements it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818005 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 12:43:05 +00:00
Deepak Dixit
2a8a37f308
Improved: Manage life span of SecurityGroupPermission entity.
...
Applied patch from jira issue(OFBIZ-9801) Thanks Suraj Khurana for your contribution
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812383 13f79535-47bb-0310-9956-ffa450edef68
2017-10-17 10:47:47 +00:00
Michael Brohl
57aa05a457
Improved: Fixing defects reported by FindBugs, package
...
org.apache.ofbiz.security.
(OFBIZ-9635)
Thanks Dennis Balkir for reporting and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1811429 13f79535-47bb-0310-9956-ffa450edef68
2017-10-07 14:15:58 +00:00
Deepak Dixit
834691742b
(OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Taher A. Alkhateeb
b37ef2d280
Migrate ALL java files from /src to /src/main/java - OFBIZ-7790
...
This is the first of two steps in the above mentioned JIRA. This
first step changes the java source directory for every component
from /src to /src/main/java. The next step will be adding unit
tests to every component in /src/test/java
Thank you to Deepak Dixit for tips on how to use the SVN commands
to make the appropriate file moving.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752838 13f79535-47bb-0310-9956-ffa450edef68
2016-07-15 14:17:14 +00:00
Deepak Dixit
10886a0252
(OFBIZ-5780) Fixed some compilation warning:
...
- Mark some SecurityFactory method as deprecated
- Mark FoFormRender as deprecated
- Fixed deprecation warning for PassportUtil class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1731377 13f79535-47bb-0310-9956-ffa450edef68
2016-02-20 11:46:08 +00:00
Adrian Crum
a1bb4ff6bc
Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674064 13f79535-47bb-0310-9956-ffa450edef68
2015-04-16 13:05:55 +00:00
Ashish Vijaywargiya
039f0608bc
Applied framework related patch from jira issue - OFBIZ-5844 - Convert java files to EntityQuery.
...
Thanks Arun for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646212 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 12:13:46 +00:00
Scott Gray
96cd99914e
Remove unnecessary imports
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634027 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 08:28:47 +00:00
Hans Bakker
2d5f2903a3
fixed null pointer exeption will viewing a content record in webtools
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535291 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 07:03:52 +00:00
Hans Bakker
834c6ac2d8
revert of unwanted commit, sorry!
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535287 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:42:34 +00:00
Hans Bakker
45011c0ed1
reorganizing of files
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535286 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:39:36 +00:00
Adrian Crum
8615235194
Refactored SecurityFactory implementation - make OFBizSecurity an inner private class, plus some code cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531602 13f79535-47bb-0310-9956-ffa450edef68
2013-10-12 22:24:13 +00:00
Adrian Crum
6c45957573
Oops, I forgot to remove a debug statement from my last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531578 13f79535-47bb-0310-9956-ffa450edef68
2013-10-12 18:58:59 +00:00
Adrian Crum
57816747d7
Refactored SecurityFactory implementation - use Java's ServiceLoader to discover Security implementations, instead of using configuration files.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531577 13f79535-47bb-0310-9956-ffa450edef68
2013-10-12 18:54:59 +00:00
Adrian Crum
54d2cdba1a
Removed unused META-INF folder from security component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1531576 13f79535-47bb-0310-9956-ffa450edef68
2013-10-12 18:52:39 +00:00
Adrian Crum
53be886210
Some work on the Security component:
...
1. Some code cleanup and optimization in OFBizSecurity.java. We can use the entity condition cache now that the cache has been fixed.
2. Added @Override annotations to methods that implement the interface.
3. Flagged some Security interface methods as deprecated because they are implementation-specific. If the idea is to have a pluggable Security implementation, then the interface should not reference the entity-engine-based implementation - because a replacement implementation might not use the entity engine.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1530471 13f79535-47bb-0310-9956-ffa450edef68
2013-10-09 00:50:22 +00:00
Adrian Crum
34704f3fdc
Some work on the security component:
...
1. Fixed the XSD.
2. Fixed a bad config file.
3. Removed cached DOM code.
4. Simplified Security factory code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1491345 13f79535-47bb-0310-9956-ffa450edef68
2013-06-10 05:53:54 +00:00
Adrian Crum
a17298a06e
Removed unused "authz" security code - https://issues.apache.org/jira/browse/OFBIZ-4839 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1360283 13f79535-47bb-0310-9956-ffa450edef68
2012-07-11 16:34:26 +00:00
Jacopo Cappellato
fcdf07a0e6
Improved code that manages the cache:
...
* protected some UtilCache objects (static fields) by making them private and final
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343815 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 16:18:02 +00:00
Adam Heath
9e5f405a4d
DEPRECATION: framework: findByAnd variants replaced with findByAnd that takes a boolean useCache parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338403 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 20:59:54 +00:00
Jacopo Cappellato
160982d9e7
Enhanced GroovyUtil to support the execution of data preparation methods defined in a Groovy script file (similarly to what is already supported by the ScriptUtil class for JSR223).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1326996 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 08:44:43 +00:00
Hans Bakker
0372daa663
OFBIZ-4638: make ofbiz run with openjdk7,6. Contribution of Chattree
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1299985 13f79535-47bb-0310-9956-ffa450edef68
2012-03-13 06:50:41 +00:00
Andrew Zeneski
11bcb7d52e
reverted previous commit since it breaks SUN (oracle) JDK, ick.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1211088 13f79535-47bb-0310-9956-ffa450edef68
2011-12-06 20:25:52 +00:00
Andrew Zeneski
15228ae88b
few minor changes to fix compiling with openjdk icetea6 1.7.9
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1211073 13f79535-47bb-0310-9956-ffa450edef68
2011-12-06 19:51:28 +00:00
Marco Risaliti
9178f9ec3f
Removed some javadoc warning (wrong param/return) into security component no functional changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1127281 13f79535-47bb-0310-9956-ffa450edef68
2011-05-24 20:57:33 +00:00
Marco Risaliti
1f3a3dc9db
Add a @SuppressWarning("serial") in SecurityConfigurationException (OFBIZ-4102)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1069087 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 20:53:31 +00:00
Adam Heath
2f6217251a
Set svn:eol-style properly on all java files. This needs to be done on other text files as well, but that would cause undo conflicts in the jquery branch(due to .js being heavily modified there). Also, some files were committed to the repository with DOS line endings; those are fixed as well.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044202 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 02:40:02 +00:00
Adam Heath
6122265c29
s/ServiceRegistry/ServiceLoader/
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921085 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 19:52:50 +00:00
Adam Heath
b17eb127ec
Fix trailing whitespace, and mixed tab/space at the beginning of lines.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Adam Heath
17e8d26105
Fix some javadoc warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894037 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 01:01:01 +00:00
Jacques Le Roux
c72b29cb1f
Use UtilValidate.isNotEmpty methods instead of (obj != null) || (obj.length > 0) and (obj != null) || (obj.size > 0)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883549 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 23:41:34 +00:00
Adam Heath
820d11eb97
Deprecate UtilCache constructors, and add a create helper function.
...
This is the first step to making utilCacheTable concurrent, and
non-blocking. To do so, the constructor has to have no side-effects.
This means it can't modify utilCacheTable itself; this will be moved to
the helper function created above.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883217 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 02:56:28 +00:00
Jacques Le Roux
a3b3d8623f
A simple fix to avoid NPE in grovvy scripts, from Jeremy Wickersheimer at "Possible NPE in security check" ( https://issues.apache.org/jira/browse/OFBIZ-3160 ) - OFBIZ-3160
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@835161 13f79535-47bb-0310-9956-ffa450edef68
2009-11-11 23:38:05 +00:00
Jacques Le Roux
61abace124
A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - security" ( https://issues.apache.org/jira/browse/OFBIZ-3116 ) - OFBIZ-3116
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833093 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 17:31:17 +00:00
Adrian Crum
a4d68934c9
Converted GenericDelegator concrete class references to Delegator interface references.
...
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Adam Heath
28e751cc4e
Remove custom UtilCache caching of security items; this is actually
...
a bug fix, the minilang services were referencing fields that no
longer existed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817316 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 16:48:34 +00:00
Jacques Le Roux
7befd1d25e
no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +00:00
Adrian Crum
b96f551de7
Converted Security.java to an interface. No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802563 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 17:20:06 +00:00
Scott Gray
dec24b29f2
Sorry for the big commit, got a bit carried away.
...
Added override and deprecated annotations wherever they were missing
Removed the use of any deprecated classes/methods (except OutputFormat in UtilXml)
A few other random generics and misc. cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791212 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 10:01:19 +00:00
Andrew Zeneski
485805fe3f
Renamed AbtractAuthorization to AbstractAuthorization (bad typo)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770836 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 21:53:29 +00:00
Andrew Zeneski
87535e2f67
Often thread pools do not clear ThreadLocal, implemented a workaround to handle this
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770771 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 17:47:52 +00:00
Andrew Zeneski
f36c5a9335
No longer requiring the boolean field 'expanded' as part of the API; after dicussing w/ Adrian; the FSE can handle pre-expanded strings
...
Added new API method findMatchingPermission() which takes a regular expression for the base permission returning the value of all matching permissions (see unit tests)
Fixed missing base permission in SecurityData.xml
JIRA OFBIZ-2381
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770401 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 19:14:48 +00:00
Andrew Zeneski
4efd08c46c
changed name of context in groovy DA handler; conflicted with the internal name 'context'; added logging and minor fixes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770076 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 05:49:25 +00:00
Andrew Zeneski
15e577f68e
added license header
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770036 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 02:02:39 +00:00