Commit Graph
120 Commits
Author SHA1 Message Date
Adrian Crum 0dbf101802 Moved the security-related CRUD services to the common component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052389 13f79535-47bb-0310-9956-ffa450edef68
2010-12-23 21:58:04 +00:00
Adrian Crum d637132cdf Converted the security-related CRUD services to entity-auto - eliminating the need for the CRUD simple methods. This change will facilitate moving the services to the common component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052374 13f79535-47bb-0310-9956-ffa450edef68
2010-12-23 21:05:50 +00:00
Marco Risaliti 4c68022da8 Replace some fail-message to fail-property tag in product/securityext component (OFBIZ-1874)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052036 13f79535-47bb-0310-9956-ffa450edef68
2010-12-22 19:19:57 +00:00
Adrian Crum a8e574e276 Try SVN move for PasswordSecurityData.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050107 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 19:20:36 +00:00
Adrian Crum f95685390e Partial revert on my last commit so I can SVN move a file instead of delete it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050105 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 19:18:10 +00:00
Adrian Crum 39611c4c9f Moved some security related demo data from the applications/securityext folder to the framework/security folder. This change accommodates logging in as admin in a framework-only demo installation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1050053 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 16:45:47 +00:00
Scott Gray 47f43a302a Remove unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044931 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:27 +00:00
Jacques Le Roux b8689d9e7a A patch from Sascha Rodekamp "Security Update for forgotten passwords " (https://issues.apache.org/jira/browse/OFBIZ-3842) - OFBIZ-3842
Improve the a random Password generation when the "require new password" function is called. In the current Trunk it's a kind of hard coded password that will be send to the user. After generating a new pass the "requireNewPassword" flag will be set to true (configurable).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038209 13f79535-47bb-0310-9956-ffa450edef68
2010-11-23 17:13:53 +00:00
Adam Heath b273b52dad Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Adam Heath 95949ff2b7 Add <test-jar> macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935381 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:47 +00:00
Jacques Le Roux b5cfc499f9 Organize import
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935267 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 22:17:42 +00:00
Scott Gray 1c39f04adb Service definition was pointing to the wrong implementation location, strange that they're in different components
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931787 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 05:52:37 +00:00
Adam Heath 2eb1768f1d Fix lots of bad xhtml tags, need to have a space before the ending /.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923545 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 01:56:41 +00:00
Jacques Le Roux aa95728f0b In eCommerce password Hint Message should be an event message, not error message.
Thanks to Koon Sang at https://issues.apache.org/jira/browse/OFBIZ-3525 - OFBIZ-3525

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917435 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 09:41:47 +00:00
Ashish Vijaywargiya 9905e69fa6 Adding productStoreId in bodyParameters so that it can be used if needed.
Patch from Divesh.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915730 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 09:49:31 +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 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1c269fc012 Convert all javadoc calls to use fileset instead of sourcepath; this
allows excludes to be processed correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath 05b3ea3230 Make use of the init target, to set excludes based on available
libraries, so that the common classes target can be used.  This also
sets src.exc.set correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894028 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:20:32 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Jacopo Cappellato 1a6d504e5a Anonymous UserLogin is referenced by services in various components, so I have moved it into a file that is loaded with seed data; also removed unnecessary password and set is as not enabled since it will not be used to log into the applications.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829464 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24 23:14:59 +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 874e1d38dc ASL2 headers, I guess it's OK now, to check see http://ci.apache.org/projects/ofbiz/rat-output.txt
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812033 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 08:20:26 +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
Ashish Vijaywargiya 170aa8100a Adding more data to test role based permissions on catalog manager.
For testing this you can login by user ltdadmin & ltdadmin1.
And then can update records in consecutive tabs present in the EditProduct screen.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@795728 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 09:40:55 +00:00
Scott Gray 5bd4d1a388 Fix a problem with the demo data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@779889 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 08:18:53 +00:00
Andrew Zeneski a3586b9371 added partyId field so email gets logged as communication event
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774199 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 05:01:36 +00:00
Jacques Le Roux f29b4787b4 As suggested by David, these lines are not needed anymore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771090 13f79535-47bb-0310-9956-ffa450edef68
2009-05-03 17:19:37 +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
Scott Gray 1e0f7725cd Fix the auth tests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770655 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 12:47:33 +00:00
Scott Gray 6fddaf6815 Removed unnecessary delegator since a test delegator is provided by the parent class. I need to make it final so this
doesn't happen but JUnit instantiates the object so I can't do it without extending their class. It's on my todo list.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770596 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 09:19:43 +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 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
Adam Heath 65fce55790 Oops, this class got modified to use the removed AbstractHandler
before I removed AbstractResolver.  Rewrote it to use ServiceRegistry
instead, which, as before, simplifies the code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770028 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 01:21:11 +00:00
Adrian Crum e34785168f Fixed a problem with the new auth code that was preventing compilation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769991 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 23:18:24 +00:00
Andrew Zeneski c0d6530bb6 Added check to prevent recursive permission lookup (when implementing dynamic access logic using services) - JIRA OFBIZ-2381
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769963 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 22:08:07 +00:00
Andrew Zeneski 3492a12c3c Implementation of new Authz dynamic access handler using the service engine; placed in securityext to prevent cross dependencies. Implemented test cases for authz.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769929 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 21:02:58 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Adam Heath 14ea43adaf Fix lines that *only* have whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759255 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 17:01:44 +00:00
Adam Heath a3adf0acfe Fix purely empty whitespace lines, and remove trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757094 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 23:45:04 +00:00
Jacques Le Roux cbca93e6b4 securityext component
Following best practice.
Changed location="org/ofbiz/......... to location="component:// in the service location attribute.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755939 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 11:47:51 +00:00
Ashish Vijaywargiya 94faebe2b8 Followed best practice.
Changed location="org/ofbiz/......... to location="component://

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755828 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 04:25:50 +00:00
Ashish Vijaywargiya e0b9c086a7 Followed best practice.
Changed location="org/ofbiz/......... to location="component:// in the call-map-processor tag.

Will remove the entries in other files ASAP.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755826 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 04:17:41 +00:00
Marco Risaliti 490bf784a4 Artifact cleaning after recent changes on xsd files (OFBIZ-2137)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@754738 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 20:07:30 +00:00
Jacques Le Roux 0597116aba <call-object-method obj-field="(.*)" obj-map="(.*)" method-name="(.*)" ret-field="(.*)" ret-map="(.*)"/> => <call-object-method obj-field="$2.$1" method-name="$3" ret-field="$5.$4"/>
<call-object-method obj-field="(.*)" obj-map-name="(.*)" method-name="(.*)" ret-field="(.*)" ret-map-name="(.*)"/> => <call-object-method obj-field="$2.$1" method-name="$3" ret-field="$5.$4"/>
<session-to-field field-name => <session-to-field field

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@740035 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 16:55:53 +00:00
Jacopo Cappellato 98e71f1922 Misc cleanups for data files:
1) added {SHA} prefix to all hashed passwords
2) moved "admin" user to demo data; the only user maintained with seed data is now the "system" user
3) removed password for the "system" user; now there are no passwords in seed data



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@739743 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 11:40:55 +00:00
Jacques Le Roux 94225b1a34 Fix issues with now-timestamp-to-env and sequence-id-to-env : their factories names where missing in org.ofbiz.minilang.method.MethodOperation$Factory file
also
<sequenced-id-to-env(.*)env-name => <sequenced-id$1field
<now-timestamp-to-env(.*)env-name => <now-timestamp$1field
both on *SimpleMethods*.xml, *events*.xml, *formula*.xml, *services*.xml, *tests*.xml (previously I only used *events*.xml, *services*.xml, but I guess it's not a big deal for now)




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730433 13f79535-47bb-0310-9956-ffa450edef68
2008-12-31 17:47:37 +00:00
Jacques Le Roux 0272162a99 revert both
sequenced-id(.*)field to <sequenced-id-to-env$1env-name
<now-timestamp(.*)field => <now-timestamp-to-env$1env-name
Something is wrong with these 2 tags (inconsistency between xsd and java, I'll look at it)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730397 13f79535-47bb-0310-9956-ffa450edef68
2008-12-31 13:59:08 +00:00