Commit Graph
27737 Commits
Author SHA1 Message Date
Adam Heath 9c689b1c50 DEPRECATION: applications/workeffort: findByPrimaryKey variants replaced
with findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337673 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:20:31 +00:00
Adam Heath 52d69a724b DEPRECATION: applications/securityext: findByPrimaryKey variants
replaced with findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337672 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:20:22 +00:00
Adam Heath 3d09afe851 DEPRECATION: applications/product: findByPrimaryKey variants replaced
with findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337671 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:20:13 +00:00
Adam Heath d6781e63ee DEPRECATION: applications/party: findByPrimaryKey variants replaced with
findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337670 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:19:49 +00:00
Adam Heath 0d4c1314c3 DEPRECATION: applications/order: findByPrimaryKey variants replaced with
findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337669 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:19:35 +00:00
Adam Heath 7b4d216944 DEPRECATION: applications/manufacturing: findByPrimaryKey variants
replaced with findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337668 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:19:10 +00:00
Adam Heath 340cc86821 DEPRECATION: applications/marketing: findByPrimaryKey variants replaced
with findOney

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337667 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:18:56 +00:00
Adam Heath a4517dcf06 DEPRECATION: applications/humanres: findByPrimaryKey variants replaced
with findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337666 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:18:48 +00:00
Adam Heath d40ce532e1 DEPRECATION: applications/content: findByPrimaryKey variants replaced
with findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337665 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:18:36 +00:00
Adam Heath d0b6c4a7ae DEPRECATION: applications/commonext: findByPrimaryKey variants replaced
with findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337664 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:18:21 +00:00
Adam Heath d68c26e095 DEPRECATION: applications/accounting: findByPrimaryKey variants replaced
with findOne

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337663 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:18:13 +00:00
Adam Heath 64a9662c25 DEPRECATION: framework: findByPrimaryKey variants replaced with findOne
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337662 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:17:55 +00:00
Adam Heath 818b164f44 FORMATTING: Add some missing final newlines to few more files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337661 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 21:17:33 +00:00
Jacques Le Roux a60bc0b5d9 Moves the line
<set field="layoutSettings.suppressTab" value="ofbizsetup"/><!-- diseable ofbiz setup by default -->
from ApplicationDecorator to GlobalDecorator screen.

This in order to prevent showing the Setup application in all framework components (example, examplext, webtools) when demo data are loaded. 
No side effects when loading only extseed data, Setup always shows (logical and tested)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337644 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 20:52:30 +00:00
Jacques Le Roux 6cee771e0d Removes duplicated close() in try and superfluous eli null check, already checked at the beginning of the block
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337524 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 12:46:06 +00:00
Adrian Crum dba8ce3e73 Fixed tests that were failing due to the recent Mini-language changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337518 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 12:07:40 +00:00
Jacques Le Roux e11c9cecb3 Noted this in trunk demo log
2012-05-04 23:43:12,687 (Finalizer) [       SQLProcessor.java:836:ERROR]
---- runtime exception report --------------------------------------------------
Error closing the result, connection, etc in finalize SQLProcessor
Exception: java.lang.NullPointerException
Message: null
---- stack trace ---------------------------------------------------------------
java.lang.NullPointerException
org.apache.commons.dbcp.managed.ManagedConnection.close(ManagedConnection.java:147)
org.ofbiz.entity.jdbc.SQLProcessor.close(SQLProcessor.java:225)
org.ofbiz.entity.jdbc.SQLProcessor.finalize(SQLProcessor.java:834)
java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
java.lang.ref.Finalizer.access$100(Finalizer.java:14)
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
--------------------------------------------------------------------------------

2012-05-04 23:43:12,687 (Finalizer) [ EntityListIterator.java:543:ERROR]
====================================================================
 EntityListIterator Not Closed for Entity [WorkEffortAndPartyAssign], caught in Finalize
 ====================================================================

This commit will fix it

I have "organize import" set when saving. So you might notice no commented changes here and then

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337502 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 10:34:00 +00:00
Jacopo Cappellato 1f12dec9be Removed the dependency on "build" from all the "run-test*" ant targets: In order to run most of the tests successfully you need to run load-data that already depends on "build; however you can still of course use the command: ant build run-tests if you want to build and test with one command.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337484 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 08:58:31 +00:00
Erwan de Ferrieres 8e0642a575 Adding consistency in log messages, 3 chars between square brackets
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337462 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 07:39:56 +00:00
Adam Heath 2a03776797 FORMATTING: Add some missing final newlines to tons of files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337320 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 18:03:08 +00:00
Adam Heath a6a2498e51 FORMATTING: Combined split lines, removed a few blank lines, added {}
around single-stmt if, reindented a few things, added spaces after
casts.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337319 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 18:02:50 +00:00
Jacopo Cappellato 0adb5a91f9 Completed migration to new captcha event implemented by Scott; removed old artifacts; removed tempfiles webapp that was causing the error reported in OFBIZ-4856
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337202 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 15:10:45 +00:00
Adrian Crum 3c9838c534 Added new element - <trace> - to Mini-language. Also updated the <simple-method> element to output trace messages.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337137 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 13:02:35 +00:00
Adrian Crum 7ca86c0501 Fixed Mini-language validation for the <check-id> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337135 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 12:55:55 +00:00
Adrian Crum 7a8a64a27e Minor Mini-language <log> element changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337117 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 11:47:23 +00:00
Adrian Crum beda6b3d14 Fixed broken Mini-language <check-errors> element (second try).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337103 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 10:25:33 +00:00
Adrian Crum f60d3ca6c8 Fixed broken Mini-language <check-errors> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337092 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 09:50:45 +00:00
Scott Gray a5bfa2e58f Changed the Anon Contact Us in ecommerce to use the improved captcha event. Also removed some bad code that would allow a user to impersonate another user and discover their name simply by entering that person's email address in the form.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337059 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 08:23:21 +00:00
Scott Gray 7f0893f8cd Deprecated org.ofbiz.common.Captcha
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337058 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 08:23:10 +00:00
Scott Gray 20047d5fe3 Copied the captcha image generator into a single event that streams the image to the response for a direct request rather than trying to store it during screen rendering to be served up later.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337057 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 08:23:02 +00:00
Jacopo Cappellato 0a81c3a3be Fixed message to reflect new name of the ant task to load demo data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337047 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 07:55:07 +00:00
Jacopo Cappellato 4c5561546f Based on review from Adam Heath, refactored/simplified the implementation of thread safe code using the parsedScripts object.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337046 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 07:50:43 +00:00
Ashish Vijaywargiya b256c3d7cc Applied similar fix as we did on trunk r1300463.
On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)

Bad use of Debug statement. On production system you will get false alarm that you are having error in code base although the resultant statement is only giving additional information instead of error message.

If conditional check is used for some debug level lets say "Verbose" then the containing Debug statement will be Debug.logVerbose() instead of Debug.logInfo() - Comment from Jacopo and Adrian. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1337024 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 04:46:26 +00:00
Jacques Le Roux 9435e7d948 A patch from Pierre Smits "Help screens in Manufacturing" https://issues.apache.org/jira/browse/OFBIZ-4802
Fix the help screens of Manufacturing

jleroux: We maybe need to think about the components order in help

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1336921 13f79535-47bb-0310-9956-ffa450edef68
2012-05-10 22:03:33 +00:00
Adam Heath f96330287f FEATURE/OPTIMIZE: Copied these from the release12.04 branch(using svn copy). Having to manually add them to each new release branch is quite sub-optimal; we also lose out on any revision history. I see no harm in having them always available.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1336772 13f79535-47bb-0310-9956-ffa450edef68
2012-05-10 16:13:23 +00:00
Adam Heath 01b4a0370c FEATURE: Add gen-kek ant target.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1336420 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 21:57:31 +00:00
Jacques Le Roux 06add8ab01 A patch from Pierre Smits "Project resources overview shows button when thruDate < nowTimestamp" https://issues.apache.org/jira/browse/OFBIZ-4858
The button to end the assignment of a resource on a project should only be shown when the thruDate is not set or when the thruDate > nowTimestamp. But the button is also shown when the thruDate < nowTimestamp.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335946 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 07:15:19 +00:00
Ashish Vijaywargiya e0971b304c Applied similar fix as we did on trunk r1300463.
On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)

Bad use of Debug statement. On production system you will get false alarm that you are having error in code base although the resultant statement is only giving additional information instead of error message.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335927 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 05:28:17 +00:00
Jacques Le Roux 0858b800fd A patch from Ankit Jain "Fixes js issue due to bad demo data" https://issues.apache.org/jira/browse/OFBIZ-4566
On the edit contact mech page (https://localhost:8443/ecommerce/control/editcontactmech?contactMechId=10001) coming from profile page, there was one js error (in console)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335351 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 06:29:08 +00:00
Jacques Le Roux c5a4aea6de A patch from Ankit Jain "Continue shopping does not work" https://issues.apache.org/jira/browse/OFBIZ-4834
After submitting an order using quick checkout, when you want to add products from main page (using Continue shopping or not), at the 1st product you add you get directly to quick checkout and would have to get back to the main page to add another product

This was happening because we had used save-current-view="true" for "quickCheckout" request and in the addItem request we are using view-last that's why it was redirecting to quickCheckout after adding item. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335347 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 06:07:51 +00:00
Jacques Le Roux f546e5b6fc A patch from Tom Burns for "Catalog Edit Product Store Promos List Not Displayed" https://issues.apache.org/jira/browse/OFBIZ-4859
Promotion list not displayed in trunk.
To duplicate:
Open Catalog Manager
Select Stores > Store Id 9000 > Promos

Expected: List of Promotions in the "Edit Product Store Promos" section.

Actual: No records in list.

Note: There is no component "Catalog" in the issue field Component/s drop above.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335343 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 05:56:32 +00:00
Adam Heath 6cd099d6fd FEATURE: Key-encrypting-key(kek) support is now enabled. To enable
support for this, run:

java org.ofbiz.base.crypto.Main -kek

and paste that value as a new attribute in entityengine.xml, <delegator
key-encrypting-key="$kekText"/>.  Make certain to add that attribute to
*all* delegators that share the same datasources.

ps: That java command should really be added to build.xml.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335268 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 21:27:32 +00:00
Adam Heath 31b721aaa6 FIX: Bare passwords(circa 595296) comparisons were broken; they actually
used the oldFunnyHex encoding, not the fixed correct hex encoding.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335267 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 21:27:25 +00:00
Adam Heath 48062a3c41 FIX: There is a problem with tenant kek support, this should fix it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335064 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 15:29:28 +00:00
Jacopo Cappellato 5b528efa2d First pass in fixing the buggy code for captcha support; this is a first pass (the next one will probably be to save the image in the session rather than in the file system); the main problems fixed are related to concurrent access: the class was not thread safe and this, especially in servers with high traffic, could cause a series of issues like:
* captcha images created and then lost
* captcha images created in the wrong location (for example out of the OFBiz folder)
* the folder runtime/tempfiles/captcha could be locked



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335047 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 14:46:07 +00:00
Adrian Crum 3aba61d402 Oops, forgot to include schema changes in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335025 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 13:53:50 +00:00
Adrian Crum 832eb766ea Overhauled Mini-language <return> element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335020 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 13:50:41 +00:00
Adrian Crum 615c04ec63 Moved some classes out of the org.ofbiz.minilang.method.callops package. The classes might have been intended for call/return operations originally, but now they are used in a generic way - so I moved them to the org.ofbiz.minilang.method.envops package.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1335018 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 13:48:41 +00:00
Adrian Crum 778871216f Moved some classes out of the org.ofbiz.minilang.method.conditional package that didn't belong there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334997 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 12:59:21 +00:00
Adrian Crum 782b312b1a Small fix for the Mini-language <set> element validation - allow scripts in the "from" attribute.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1334996 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 12:56:36 +00:00