Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux e1caa558a9 Fixes a wrong NPE check
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1608491 13f79535-47bb-0310-9956-ffa450edef68
2014-07-07 15:33:19 +00:00
Jacques Le Roux 3c10fa1a0f Fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1608453 13f79535-47bb-0310-9956-ffa450edef68
2014-07-07 13:17:01 +00:00
Jacques Le Roux f60d731836 Replaces svn-external.properties by branch13.7-demo.patch which contains also changes in
url.properties
specialpurpose/build.xml
component-load.xml

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1608450 13f79535-47bb-0310-9956-ffa450edef68
2014-07-07 13:10:47 +00:00
Jacopo Cappellato 30736047df Removed useless logInfo statement that was causing the user password to be stored in the log files. Thanks to Grégory Draperi for the report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1608355 13f79535-47bb-0310-9956-ffa450edef68
2014-07-07 07:42:15 +00:00
Jacques Le Roux 416d873851 Adds the cron (must be edited/run under ofbizDemo user)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1607791 13f79535-47bb-0310-9956-ffa450edef68
2014-07-04 07:19:52 +00:00
Jacques Le Roux ab3794d0c1 This was stupid all can run under Java 7 (only tests are an issue for branches)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1607786 13f79535-47bb-0310-9956-ffa450edef68
2014-07-04 06:18:41 +00:00
Jacques Le Roux f66f2d79b1 More about ofbizDemo user (its GUID)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1607696 13f79535-47bb-0310-9956-ffa450edef68
2014-07-03 17:13:06 +00:00
Jacques Le Roux af32e75d56 Adds svn-external.properties for new branches
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1607469 13f79535-47bb-0310-9956-ffa450edef68
2014-07-02 20:25:53 +00:00
Jacques Le Roux bee28fe7bd A patch from yashwant dhakad for "Promotion item added twice when we use "Add all to cart" via ecommerce order history page." https://issues.apache.org/jira/browse/OFBIZ-5671
Reported by Deepak Dixit:
Steps to reproduce:

- Create an order (productId:WG-5569) as a logged in user.
- Go to eCommerce order history screen.
- Select newly crate order.
- On order status screen we have option to "Add all to cart"
- Click on "Add all to cart".
Current Behavior:
- All item added to cart including promotion item and promotion item added for item WG-5569.
- Now promotion item display twice one for promotion and one a  line item.
Expected Behavior:
- Promotion item should be excluded at the time of "Add all to cart"

jleroux: addToCartFromOrder is only used in ecommerce OOTB (request addordertocart) so it's OK

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1607457 13f79535-47bb-0310-9956-ffa450edef68
2014-07-02 19:43:37 +00:00
Jacques Le Roux 41c6d441d9 Adds demo-backup here since the VM is not backuped and we already lost those.
These are not the definitive versions but almost

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1607265 13f79535-47bb-0310-9956-ffa450edef68
2014-07-02 07:45:02 +00:00
Jacques Le Roux 8802023ece Fix a small bug where delegator was missing in a Groovy script
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1606660 13f79535-47bb-0310-9956-ffa450edef68
2014-06-30 09:59:06 +00:00
Jacques Le Roux bf0fbb33b1 Fixes an issues with ant.bat on Windows (worked with Wine)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1606623 13f79535-47bb-0310-9956-ffa450edef68
2014-06-30 05:36:14 +00:00
Jacques Le Roux 90204837e7 Better to reuse what I introduced in r1547719, did not read my comment enough, amount can be null...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1606228 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 21:03:21 +00:00
Jacques Le Roux 1de1e504c0 Fixes a bug I introduced with r1547719, simplifies another case
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1606225 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 20:59:48 +00:00
Jacopo Cappellato d009e2297e Upgraded specialpurpose/lucene component to the latest stable release (from 4.7.0 to 4.9.0)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1606133 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 15:44:26 +00:00
Jacopo Cappellato 3b55a49974 OFBIZ-5012: converted some of the marketing simple services to entity-auto services. Based on a patch contributed by Nicolas Malin, but manually applied and modified in several places because the original patch had some issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1606097 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 13:48:15 +00:00
Jacopo Cappellato 3cfa3cff3e OFBIZ-5651: fixed broken settings for the appserver execution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605977 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 07:37:22 +00:00
Adam Heath ccb36f2238 Fix cobertura-report when source has been generated(aka, when javacc or
jjtree has been used).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605838 13f79535-47bb-0310-9956-ffa450edef68
2014-06-26 16:15:15 +00:00
Adam Heath e04a063f21 Fix line-ending differences between windows and unix in UtilIO parsing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605837 13f79535-47bb-0310-9956-ffa450edef68
2014-06-26 16:15:09 +00:00
Adam Heath 7ad72734d3 Port the same set of features in the ant shell script to the ant batch
file.

* Automatically find the correct ant-launcher.jar version.
* You can now run the batch file from sub directories.  ../../ant works.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605836 13f79535-47bb-0310-9956-ffa450edef68
2014-06-26 16:15:03 +00:00
Jacopo Cappellato 96ddaf1818 Applied fix from OFBIZ-3551: Patch to only show organization's custom time periods at trialbalance screen dropdown; thanks to Willem Janssen for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605707 13f79535-47bb-0310-9956-ffa450edef68
2014-06-26 08:54:08 +00:00
Adrian Crum 714050ef33 Updated build files to use/require Java 7.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605524 13f79535-47bb-0310-9956-ffa450edef68
2014-06-25 17:59:46 +00:00
Jacques Le Roux 467b42a5f4 A patch from Sebastian Leitner for "Anonymous customer looses locale on order" https://issues.apache.org/jira/browse/OFBIZ-5666
If an anonymous customer changes his/her locale (/control/setSessionLocale) and then places an order in an ecommerce-application, the event ShoppingCartEvents.clearCart(HttpServletRequest, HttpServletResponse) invalidates the session and creates a new one. Due to that the previous locale-switch is lost and is set back to browser- or server-default.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605354 13f79535-47bb-0310-9956-ffa450edef68
2014-06-25 11:39:53 +00:00
Jacques Le Roux ee1bab7307 Better French label from "Traduction of Salutation in French" by Guillaume Sigoigne at https://issues.apache.org/jira/browse/OFBIZ-5668
When creating a new person, Salutation field is translate in "Salutation" in French. It is a false friend. Salutation in french is : "Civilité"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605348 13f79535-47bb-0310-9956-ffa450edef68
2014-06-25 11:26:18 +00:00
Vikas Mayur c14fc9c7ec Fix: When redirectAddress is specified and mail notification is disabled 'subject' can grow longer than the specified char limit in db and the service updateCommEventAfterEmail triggered on sendMail is failing for the same reason. The issue occurred when system invoke a failed job for the service sendCommEventAsEmail.
Note: sendCommEventAsEmail service also update the status of communication event by calling an inline service setCommEventComplete if there is no error in sendMail result. The service updateCommEventAfterEmail is also triggered by an eca on sendEmail which also do the same. They both eventually callthe service updateCommunicationEvent. In this case we should option (1) not call updateCommEventAfterEmail or option (2) make changes to updateCommunicationEvent so that it check for a status valid change before updating the communciation event record or option(3) just make updateCommEventAfterEmail responsible for updating the communication event record by removing the inline code that update the communication event to complete. Option (2) seemsright to me. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605286 13f79535-47bb-0310-9956-ffa450edef68
2014-06-25 08:02:51 +00:00
Adam Heath 8ea51fb77e Fix issues with inventory creation/transfer tests, and with the entity
engine tests, when run with java1.7.  Apparently, the order of methods
returned by reflection varies between runs, so if methods have implicit
requirements on each other, you get spurious errors.

The are 3 types of fixes:

* Combine the separate testCase methods into one
* Add explict method ordering.
* Make use testCase method completely stand-alone.

The product inventory tests were combined, while the entity engine tests
were restructured to be stand-alone.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605269 13f79535-47bb-0310-9956-ffa450edef68
2014-06-25 05:27:30 +00:00
Adam Heath 83b70a5643 Fix reversion introduced in StringUtil in r1330955; string maps using
"|" were being parsed correctly.  This fixes OFBIZ-5667.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605268 13f79535-47bb-0310-9956-ffa450edef68
2014-06-25 05:27:22 +00:00
Adam Heath 455edd3727 Remove sourcepathref from default-javac; in build.xml that did *not*
create a src-dir patternset, the default *empty* src-dir pattern set was
used.  Then, when javac would compile src/**/*.jar, it would *also*
compile any *other* java files it happened to find in the folder.

In other words, if there was an unpacked tree, let's say named 'p', and
there was a set of folders in there that eventually had java files, they
would all get compiled.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605223 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 23:21:05 +00:00
Adam Heath 6690816b01 Fix detection of cobertura, for compilation of the hook used by the
runtime container; also fixes the classpath used to define the ant
task.  Now, command-line api tests run underneath cobertura work.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605216 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 23:07:39 +00:00
Adam Heath c44853b234 Remove the empty dir, which then re-broke compilation of testtools.
This reverts all of the recent built-system breakage.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605213 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 22:51:31 +00:00
Adam Heath da7504cc2e Revert "Move ant out of the primary classpath; the shell script and batch file"
This reverts commit 24d7bda48e9618691b28cf63ef02354e1c2df2c8.

Conflicts:

	LICENSE

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605179 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 20:30:39 +00:00
Adam Heath 715c018cb6 Revert "Fix Eclipse classpath file."
This reverts commit 823b2d691f2d688153c13b7d87aea35a17f23ef0.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605178 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 20:30:26 +00:00
Adrian Crum b934663b22 Fix broken build.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605160 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 19:16:18 +00:00
Adam Heath 131a3d907c Fix breakage with the build, both buildbot and reported on the mailing
list; couldn't create ivy tasks.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605151 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 18:45:07 +00:00
Adrian Crum 05bf97a0f0 Fix Eclipse classpath file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605148 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 18:15:41 +00:00
Adam Heath 55a4cc3023 Remove ant-nodeps, it's no longer part of 1.9.0 apparently.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605121 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 16:01:29 +00:00
Adam Heath 7f2163054f Update the log4j version reference in the tests-cobertura task.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605120 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 16:01:23 +00:00
Adam Heath 702ac6d2f8 Move ant out of the primary classpath; the shell script and batch file
now load it from this out-of-band location.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605119 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 16:01:13 +00:00
Vikas Mayur bd71a876e5 Fix: Bypass the permission check to update communication event if userLogin partyId equals partyIdFrom parameter, useful in certain cases for front-end customers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605056 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 11:25:13 +00:00
Jacopo Cappellato 05073f29df Upgrade to the most recent version of Freemarker-2.3-gae: this is not an official release yet but it will be soon; I have committed this work, as discussed in the dev list, in order to get help from the community to test this new improved version of Freemarker and provide feedback to the Freemarker community.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605029 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 08:33:04 +00:00
Adam Heath d4ae304e5a Fix OFBIZ-5565: FinAccountHelper.getFinAccountFromCode() no longer
returns financial account.

Now that EntityCondition lookups work against encrypted fields, there is
no longer a need to do the field encryption locally in the above method.
So, just pass the value directly into the entity engine.

There are also test cases, to prevent this breakage from occurring
again.

This commit depends on r1604967 and r1604968, at the minimum.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604993 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 01:30:56 +00:00
Adam Heath 1596c224f4 Re-enable hiding of condition parameters in toString calls; this was
accidentally checked in as part of r1604972.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604985 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:45:28 +00:00
Adam Heath c423838342 Remove encryptConditionFields from the condition objects; now, the
encryption/decryption happens at the jdbc layer, when values are set
into a PreparedStatement, or fetched from a ResultSet.

This means that conditions are no longer munged to contain the encrypted
value, and entities are no longer updated to temporarily contain the
encrypted value.  In all cases, the value of a field in memory will be
unecncrypted.

This fixes the following code patterns:

person = delegator.create("Person", [partyId: "my-party"]);
person.socialSecurityNumber = "1234";
person.store();
// this fails, the encrypted value is stored inside entity
assertEquals("1234", person.socialSecurityNumber);
currentValue = person.socialSecurityNumber
person.store();
// this fails, the field is doubly-encrypted
assertEquals(currentValue, person.socialSecurityNumber);

origCondition = EntityCondition.makeCondition(
    "socialSecurityNumber",
    EntityOperator.EQUALS,
    "1234"
);
list = delegator.findList("Person", origCondition);
newCondition = EntityCondition.makeCondition(
    "socialSecurityNumber",
    EntityOperator.EQUALS,
    "1234"
);
// this fails, because the condition is updated in-place, with the
// encrypted field value.
assertEquals(origCondition, newCondition);

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604976 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:24:22 +00:00
Adam Heath eeb2cc31f3 Condition objects are now immutable. This removed more uses of
javolution classes, namely, all the factory support code is now gone.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604975 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:24:08 +00:00
Adam Heath e226c3310b Restructured so that the built-up object is a wrapper around the actual
condition; this allows the wrapped value to be changed, as the builder
api is used, and will make it possible for the actual condition object
to be made final.

To allow for this wrapper to be passed to the delegator, it extends
EntityCondition, and delegates all calls to the contained condition
object.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604974 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:24:01 +00:00
Adam Heath fb157fd4c7 encryptConditionFields now returns a new EntityCondition, if it did
anything.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604973 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:23:54 +00:00
Adam Heath 40a06ca876 Add EntityConditionValue.encryptConditionFields support to
EntityConditionValue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604972 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:23:46 +00:00
Adam Heath b6662d97b3 In EntityExpr.encryptConditionFields. pass the call down to the lhs and
rhs when we are in join mode.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604971 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:23:38 +00:00
Adam Heath 9d5779c95b This is the first phase at making EntityCondition objects immutable; the
classes/fields not yet finalized are left undone due to there being
side-effects with other parts of the code base.  These side-effects will
be fixed shortly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604969 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:23:32 +00:00
Adam Heath 5bc5c4151f Change encrypt=true fields to no longer have a pre-pended salt value.
This is done by just setting the length of salt bytes to 0, but still
having a length byte prepended.

Add a feature to allow for certain fields to actually have a salt
prefix.  This is enabled by setting encrypt=salt in the entity
definition.

This change is slightly incompatible with existing code.  Old database
values will continue to be decrypted correctly.  However, newly
encrypted values will no longer have a salt prepended, while originally
they would.  This shouldn't be a problem in practice.

This change, along with the previous commit, finally allow for direct
lookup of encrypted values.  However, already stored values will not be
found.  To fix those, each database row will have to be read in by
ofbiz, then immediately written back out.

This is part two to completely fix OFBIZ-5959:
Person.socialSecurityNumber can't be used for findByAnd.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604968 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:23:23 +00:00