Commit Graph
27737 Commits
Author SHA1 Message Date
Adam Heath 91b11ac4f8 Fix EntityExpr encryptConditionFields; in normal use, lhs would never be
a String, because it would end up being wrapped in an EntityFieldValue
object.  The only way it would be a String is during incorrect
Freemarker lookups(which no longer happen, as the
EntityCondition.makeCondition factory pattern is now in use).

With this fix in place, EntityExpr can finally start encrypting it's
field values, so that direct matching on encrypted fields can work.

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

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604967 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:23:11 +00:00
Adam Heath 0aaad002d6 Start creating test cases for the entity engine crypto feature.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604966 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 00:23:04 +00:00
Jacques Le Roux 8dc76d665c A proposed fix by chunlinyao for "checkExistsImage method in ImageManagementServices" at https://issues.apache.org/jira/browse/OFBIZ-5658
I think indexOf(".") in these code should be lastIndexOf("."). 
From CATALOG -> Image Management -> Upload view. upload some Images it will call this method. This method is intended to add (count) to the image name, when the file name was already exist. I debugged in it, the imagePath was the absolute path of the image file. So If any parent folder name contains "." , it will not works correctly.

chunlinyao's Note: And after review the whole ImageManagementServices.java file. I found it use static variables (ex. imageCount imagePath). It is not thread safe.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604554 13f79535-47bb-0310-9956-ffa450edef68
2014-06-22 09:18:39 +00:00
Paul Foxworthy 535e473526 Read gender from person parameter, not PartyNameHistory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604522 13f79535-47bb-0310-9956-ffa450edef68
2014-06-22 03:22:42 +00:00
Jacques Le Roux d296ca03ca A patch from Pierre Smits for "field type emailType is missing in entity EmailTemplateSetting" https://issues.apache.org/jira/browse/OFBIZ-5660
The field email type is missing. Thus it is not possible to categorize and filter emailsettingtemplates data.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604370 13f79535-47bb-0310-9956-ffa450edef68
2014-06-21 13:36:49 +00:00
Jacques Le Roux 5a981e746a A patch from Leon for "No lock can be acquired after ofbiz application crashes." https://issues.apache.org/jira/browse/OFBIZ-5626
We have a service which semaphore set to "fail". Someday, while it was running, the whole ofbiz crashed. 
After the restart, the service is unable to run anymore since the lock file (database record in ServiceSemaphore entity) is already there.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604363 13f79535-47bb-0310-9956-ffa450edef68
2014-06-21 13:27:20 +00:00
Jacques Le Roux a70d6f32d1 A patch from Pierre Smits for "ConvertUom.js contains a bug" https://issues.apache.org/jira/browse/OFBIZ-5661
Due to a missing comma, this function doesn't work properly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604357 13f79535-47bb-0310-9956-ffa450edef68
2014-06-21 13:21:35 +00:00
Adam Heath cf7cfdc544 Remove the last uses of FastList from the entity engine.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604038 13f79535-47bb-0310-9956-ffa450edef68
2014-06-19 21:38:48 +00:00
Jacopo Cappellato 5f0827e189 OFBIZ-1217: commented out code that was just an example of how to select products with the same feature.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603739 13f79535-47bb-0310-9956-ffa450edef68
2014-06-19 07:31:02 +00:00
Jacopo Cappellato 803bf50497 OFBIZ-5589: Display Currency Uom of Best Selling Product in order component was ignoring the currency of the orders; thanks to Lê Văn Thiêp for the report and to Deepak Dixit for the fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603732 13f79535-47bb-0310-9956-ffa450edef68
2014-06-19 07:11:40 +00:00
Jacopo Cappellato c687532188 Fixed issue reported by Pierre Smits in OFBIZ-5274: the menu label "Edit Agreement" was misleading because the screen simply shows the agreements associated to the facility; the agreement type used in the screen doesn't exist in OFBiz; this is because this code (committed by Adam Heath) is a partial implementation of a feature than in its current status is only confusing.
Now the screen only shows the agreements associated to the facility but in order to setup an agreement you have to use the Agreement screens of the Accounting application.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603460 13f79535-47bb-0310-9956-ffa450edef68
2014-06-18 14:25:16 +00:00
Jacopo Cappellato 32dec5e757 Applied fix for OFBIZ-5622: during invoicing, only one ShipmentItemBilling was created for the first InvoiceItem.
Thanks to Christian Geisert for the fix.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603439 13f79535-47bb-0310-9956-ffa450edef68
2014-06-18 12:59:05 +00:00
Jacopo Cappellato 5daa29eeab Applied patch from OFBIZ-5592: made more consistent the Chart of Accounts screen in Global GL Settings with the one in Organisational GL Settings.
Thanks to Pierre Smits for the contribution (and to Anahita Goljahani for the tests).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603434 13f79535-47bb-0310-9956-ffa450edef68
2014-06-18 12:50:41 +00:00
Jacques Le Roux af3aa26409 I found annoying to mix the Birt report engine logs and especially lock files with the other OFBiz logs.
As suggested on dev ML,this moves these files under a birt sub directory of runtime


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1602671 13f79535-47bb-0310-9956-ffa450edef68
2014-06-15 08:08:36 +00:00
Jacques Le Roux afde1e7a5b A patch from Leon for "Birt 4.2, export report as MS 2007 document format" https://issues.apache.org/jira/browse/OFBIZ-5653
One of the new features of Birt 4.2 is the capability to export report as MS 2007 format, such as .docx, .xlsx and .pptx.
Birt library in OFBiz trunk has already been upgrade to version 4.3.1. So it's ready to introduce this new feature into ofbiz.

patch: 3 new content types for MS 2007 word, excel and ppt. Also update the help xml and comments in controll.xml.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1602334 13f79535-47bb-0310-9956-ffa450edef68
2014-06-13 07:58:48 +00:00
Jacques Le Roux d4cd85633d Removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1599459 13f79535-47bb-0310-9956-ffa450edef68
2014-06-03 09:31:45 +00:00
Jacques Le Roux 422694c07e Better French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1599112 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 08:11:03 +00:00
Jacques Le Roux f23f0041a0 Changes a bunch of Thru to Through (kept all truDate in a sole word to avoid ambiguities)
Note tough that thru is even in the Collins http://dictionary.reference.com/browse/thru

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1599110 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 08:02:15 +00:00
Jacques Le Roux b243ccc478 A modified patch from Ankit Jain for "We should check that the thru date is not same or older than the from date" https://issues.apache.org/jira/browse/OFBIZ-3161
jleroux: 
I reused Ankit's patch as a basis for this commit
I added an i18n label
Added a way to use alert() in showErrorAlertLoadUiLabel for generalising when no contentarea is present
Replaced $ call by jQuery
Used the <<name*='fromDate'>> and <<name*='thruDate'>> filters to get all cases (228 thruDate cases)
Still used only an alert, so it's only a warning, nothing coercive

There are other date couples like (estimatedStartDate, estimatedCompletionDate) and (actualStartDate, actualCompletionDate) but their values should not be enforced.
If ever someone wants to not let them free, then she just has to add the couples in FromThruDateCheck.js





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598977 13f79535-47bb-0310-9956-ffa450edef68
2014-06-01 12:34:24 +00:00
Jacques Le Roux 4e763b6bbf Fix a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598972 13f79535-47bb-0310-9956-ffa450edef68
2014-06-01 12:10:46 +00:00
Jacques Le Roux 00b535d98b A patche from Olivier Heintz for "ProductStoreFacilities page does not refresh information after actions are performed" https://issues.apache.org/jira/browse/OFBIZ-5408
The ProductStoreFacilities page does not refresh when actions are performed.  When adding or deleting a facility from the store, the result of either action is not reflected on the page even though both are performed.  A loading icon appears after clicking action buttons/links so AJAX is probably being used.  

Olivier:
bug corrections :
1) areaId was wrong in on-event for edit and in delete button in list
2) replace wrong view-map ListProductStoreFacilityFormOnly by ListProductStoreFacility

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598913 13f79535-47bb-0310-9956-ffa450edef68
2014-05-31 20:10:54 +00:00
Jacques Le Roux 0f31bcb2a0 Adds a new self signed SSL certificate created on the OFBiz demo VM with own CA following http://httpd.apache.org/docs/current/ssl/ssl_faq.html#realcert
This certificate is valid for 10 years (until May 27 08:43:19 2024 GMT)
Characteristics: C=US, ST=DE, L=Wilmington, O=Apache Software Fundation, OU=Apache OFBiz, CN=ofbiz-vm.apache.org/emailAddress=dev@ofbiz.apache.org
The password is still the same: changeit, I checked: HTTPS works locally

I don't really understand the content and the need of framework/base/cert/ so I only added framework/base/cert/demoCA/newcerts/03.pem and framework/base/cert/README which explains this change


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598544 13f79535-47bb-0310-9956-ffa450edef68
2014-05-30 10:46:54 +00:00
Jacques Le Roux e3a6768d56 Reverts r1598505, I will also update the files under framework\base\cert to backport all in one shoot
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598507 13f79535-47bb-0310-9956-ffa450edef68
2014-05-30 09:04:38 +00:00
Jacques Le Roux 1f1a5c952c New self signed SSL certificate created on the OFBiz demo VM with own CA following http://httpd.apache.org/docs/current/ssl/ssl_faq.html#realcert
This certificate is valid for 10 years (until May 27 08:43:19 2024 GMT)
Characteristics: C=US, ST=DE, L=Wilmington, O=Apache Software Fundation, OU=Apache OFBiz, CN=ofbiz-vm.apache.org/emailAddress=dev@ofbiz.apache.org
The password is still the same: changeit, I checked: HTTPS works locally


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598505 13f79535-47bb-0310-9956-ffa450edef68
2014-05-30 08:58:44 +00:00
Jacques Le Roux 5b9b00a147 Completes r1598113 for LICENSE (2nd time)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598475 13f79535-47bb-0310-9956-ffa450edef68
2014-05-30 07:18:29 +00:00
Jacques Le Roux a95d92e3fd Reverts 1548973, I forgot ecj name changed :/ and want to backport in one shoot
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598474 13f79535-47bb-0310-9956-ffa450edef68
2014-05-30 07:17:00 +00:00
Jacques Le Roux 5c7f15b903 Completes r1598125 for LICENSE
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598473 13f79535-47bb-0310-9956-ffa450edef68
2014-05-30 07:14:19 +00:00
Jacques Le Roux d826607308 At r1598113 forgot to update .classpath
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598327 13f79535-47bb-0310-9956-ffa450edef68
2014-05-29 16:32:48 +00:00
Jacques Le Roux 44453730ee This slipped in inadvertently with r1521589
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598255 13f79535-47bb-0310-9956-ffa450edef68
2014-05-29 11:35:13 +00:00
Jacques Le Roux 20817c8788 Fixes a typo in .gitignore (this is why I got a duplicated entry at some point)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598243 13f79535-47bb-0310-9956-ffa450edef68
2014-05-29 10:23:30 +00:00
Jacques Le Roux 3a6709473f Updates Tomcat to 7.0.54
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598113 13f79535-47bb-0310-9956-ffa450edef68
2014-05-28 19:50:16 +00:00
Jacques Le Roux 3c624a864c Removes duplication
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597646 13f79535-47bb-0310-9956-ffa450edef68
2014-05-26 20:57:53 +00:00
Jacques Le Roux 6acc26eac2 Adds the gitinfo and the clean-gitinfo (last one used in build target) targets
Uses the new runtime/gitinfo.ftl in footers (all themes) like is the runtime/ftlinfo.ftl one
Actually both are shown (if you have a mix of repos, like I do) or one or the other
Adds the runtime/gitinfo.ftl file in both .gitignore and svn ignore

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597615 13f79535-47bb-0310-9956-ffa450edef68
2014-05-26 17:23:12 +00:00
Jacques Le Roux 79d38296fb 2 patches from Deepak Dixit for "If customer pay higher than amount due, POS issues an error 'Problem with order change'." https://issues.apache.org/jira/browse/OFBIZ-5611
If customer pay higher than amount due, POS issues an error 'Problem with order change'. 

Deepak: 
This is due to changes done at r#1186102 (http://ofbiz.markmail.org/message/orewmkxnalebolke?q=1186102)
Removed incorrect condition form createPaymentApplication service.
Also found type in PaymentEvents.java file (Xuilabels == > XuiLabels).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597464 13f79535-47bb-0310-9956-ffa450edef68
2014-05-25 20:04:08 +00:00
Jacques Le Roux d647a61edb Better French label and clearly separate the label and the error in all languages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597274 13f79535-47bb-0310-9956-ffa450edef68
2014-05-24 11:00:44 +00:00
Jacques Le Roux d7782d5fb9 Completes OFBIZ-5648 - Extend primary keys, removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597273 13f79535-47bb-0310-9956-ffa450edef68
2014-05-24 09:51:48 +00:00
Jacques Le Roux 79365e65da Completes OFBIZ-5648 - Extend primary keys, by adding XSD documentation about current restrictions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597270 13f79535-47bb-0310-9956-ffa450edef68
2014-05-24 09:14:22 +00:00
Jacques Le Roux a00123d7e7 Closes OFBIZ-5648 - Extend primary keys
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597239 13f79535-47bb-0310-9956-ffa450edef68
2014-05-24 05:09:39 +00:00
Jacques Le Roux da63b56fbb Improves serviceResult.ftl, from Yvan Cauchy (reformatted: we use 2 spaces for indentation in FTL files)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597237 13f79535-47bb-0310-9956-ffa450edef68
2014-05-24 05:07:39 +00:00
Jacques Le Roux b844d4e9bb A (slightly modified) patch from Yvan Cauchy for "Trigger for service to run upon subscription expiry" https://issues.apache.org/jira/browse/OFBIZ-5333
We are also proposing to add the following fields:

    ProductSubscriptionResource.gracePeriodOnExpiry
    ProductSubscriptionResource.gracePeriodOnExpiryUomId
    Subscription.gracePeriodOnExpiry
    Subscription.gracePeriodOnExpiryUomId

This will allow the runServiceOnSubscriptionExpiry to trigger the service in SubscriptionResource.serviceNameOnExpiry only after

nowTimeStamp >= Subscription.thruDate + Subscription.gracePeriodOnExpiry.

This provides flexibility in managing the triggering of the deprovisioning service, similar to the flexibility in automatic subscription extensions enabled by Subscription.canclAutmExtTime for runSubscriptionAutoReorders. 

jleroux: 
I replaced tabs by spaces
Will commit the change in serviceResult.ftl apart
Slightly reformatted SubscriptionServices.runServiceOnSubscriptionExpiry()
Slightly reformatted and added comment in services_subscription.xml for the 2 new services


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597235 13f79535-47bb-0310-9956-ffa450edef68
2014-05-24 04:37:16 +00:00
Paul Foxworthy 2aaec0e464 Change getProductInventoryAvailable to use a transaction for EntityListIterator
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597067 13f79535-47bb-0310-9956-ffa450edef68
2014-05-23 11:48:46 +00:00
Jacques Le Roux 476d1586d3 Temporary removes this SECA to check the build in Buildbot works the same than here.
Unfortunately the infrabot is not able to re-run at demand at the moment, see https://issues.apache.org/jira/browse/INFRA-7642

So this is rather a build test, we still have to fix this issue (not enough time atm)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1596506 13f79535-47bb-0310-9956-ffa450edef68
2014-05-21 07:58:51 +00:00
Jacques Le Roux 8f3be2d59f Dammit, reverts unwanted previous commit (wrong button)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1596126 13f79535-47bb-0310-9956-ffa450edef68
2014-05-20 07:42:55 +00:00
Jacques Le Roux 10f0335c64 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1596125 13f79535-47bb-0310-9956-ffa450edef68 2014-05-20 07:40:25 +00:00
Jacques Le Roux fc2eb805c2 Ignores JDBC drivers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1595776 13f79535-47bb-0310-9956-ffa450edef68
2014-05-19 08:18:04 +00:00
Jacques Le Roux a1fb475c88 A patch from Pierre Smits for "Service to check UomConversionDated is missing" https://issues.apache.org/jira/browse/OFBIZ-5638
While there is a service to check the existence of a record in UomConversion the equivalent to check the existence of a record in UomConversionDated (mainly used for foreign exchange rates) is lacking.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1595768 13f79535-47bb-0310-9956-ffa450edef68
2014-05-19 07:19:30 +00:00
Hans Bakker 7d4d745f53 partially revert 1594758, should not ignore hot-deploy content
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1595732 13f79535-47bb-0310-9956-ffa450edef68
2014-05-19 03:13:25 +00:00
Jacques Le Roux 516a3b0299 Removes useless entried in ofbiz-component.xml files
Indicates what to do in README for accounting optional libs

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1595658 13f79535-47bb-0310-9956-ffa450edef68
2014-05-18 19:00:58 +00:00
Hans Bakker b4355b87fd update git ignore for product indexes and components in hot-deploy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1594758 13f79535-47bb-0310-9956-ffa450edef68
2014-05-15 02:24:27 +00:00
Paul Foxworthy dad62c594f Ensure invoicePerShipment variable always has a value and is never null.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1594141 13f79535-47bb-0310-9956-ffa450edef68
2014-05-13 06:33:57 +00:00