Commit Graph
26393 Commits
Author SHA1 Message Date
Jacques Le Roux 6db4ffdbcd Improved: Remove unused methods related to properties in UtilProperties and
EntityUtilProperties
(OFBIZ-11254)

While removing the POS I forgot to remove specific methods I added in 
UtilProperties: setPropertyValue(*,*,*) and setPropertyValueInMemory. 
I finally found that setPropertyValueInMemory is used in one test and so maybe
usefull. setPropertyValue(*,*,*) is unused and can be safemy removed. It's also 
called from EntityUtilProperties so should also be removed there.

This removes it, and also slightly formats 
EntityUtilProperties::setPropertyValueInMemory 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868589 13f79535-47bb-0310-9956-ffa450edef68
2019-10-18 11:44:29 +00:00
Nicolas Malin 1c1daf855a Fixed: Down the log level to inform to use genericBasePermissionCheck
After the migration of genericBasePermissionCheck from mini-lang to groovy, I set a warning message to inform that we need to migrate simple-method call.

But this simple-method is massively use on standard mini-lang script and finally populate with non interesting inform the log in production site.

I down the level to inform only on development state

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868581 13f79535-47bb-0310-9956-ffa450edef68
2019-10-18 09:26:29 +00:00
Nicolas Malin 193280addb Fixed: Down the log level to inform when a property number is empty
When you call a property number undefined, UtilProperty return the default value and you have in console a warning :

    UtilProperties |W| Error converting String  to Integer; using defaultNumber 60.

Or in general if you call and resolve an empty value for a property, they is no reason to inform it as error.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868580 13f79535-47bb-0310-9956-ffa450edef68
2019-10-18 09:22:11 +00:00
Jacques Le Roux ce26d03f02 Fixed: FTL error for purchase order with Bulk Item Type
(OFBIZ-11252)

Steps to regenerate:
1. Login into the ordermgr application and click on Order Entry tab
2. Create PO with any supplier
3. Fill details and click on Continue
4. Now select Product Category with Item type Bulk and add the description and 
   Click on add to order
5.  Finalize order with Finalize Order button
6. Add Term type, ship group option, etc details and create Order.
7. Scroll down to Order Items section and See the FTL error on the screen.

Thanks: Devanshu Vyas

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868553 13f79535-47bb-0310-9956-ffa450edef68
2019-10-17 14:26:42 +00:00
Jacques Le Roux c98def05a3 Fixed: EditExample always update status, because current Status not shown
(OFBIZ-11230)

In the EditExample Form, the drop-down is populates with the Valid change status 
only. So current status is not in the list and the status print in the drop-down 
is the next authorized. I want to modify exampleName or exampleType, I go to 
editExample and change what I want and validate. The problem is status is also 
changed!

There are 12 other same or similar cases. For the first of them (in FinAccount) 
there is the same bug: when I change FinAccount Name, status change too. If I 
add current="first-in-list" in the tag drop-down it works 

jleroux: Quote is a peculiar case due to OFBIZ-7337 which was a wrong fix
 
Thanks: Oliver for the analysis and the fix 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868545 13f79535-47bb-0310-9956-ffa450edef68
2019-10-17 12:19:33 +00:00
Pawan Verma 47f1e5a75f Improved: Convert AutoAcctgAgreementTests Unit Test from XML to Groovy
(OFBIZ-11248)

Thanks: Devanshu Vyas for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868449 13f79535-47bb-0310-9956-ffa450edef68
2019-10-14 13:31:22 +00:00
Jacques Le Roux 27ed54789e Improved: Upgrade Tomcat from 9.0.26 to 9.0.27
(OFBIZ-11249)

Update to Commons Daemon 1.2.2 to pick up the fix for a regression in Commons 
Daemon 1.2.0 and 1.2.1 that triggered a crash on startup when running on a 
Windows OS that had not been fully updated.

That's where you see how the Tomcat team takes care of their users :)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868437 13f79535-47bb-0310-9956-ffa450edef68
2019-10-14 10:27:21 +00:00
Jacques Le Roux e27022b5cd Implemented: Providing utilities for integration tests
(OFBIZ-11247)

First step to simply using "userLogin" in tests

Thanks: Mathieu for the idea on dev ML

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868436 13f79535-47bb-0310-9956-ffa450edef68
2019-10-14 09:59:31 +00:00
Jacques Le Roux 12073747f5 Improved: Unit test case for service - createAcctgTransEntry
(OFBIZ-9004)

Thanks: Deepak Nigam for initial patch and Suraj for Groovy conversion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868433 13f79535-47bb-0310-9956-ffa450edef68
2019-10-14 08:57:32 +00:00
Jacques Le Roux b541490ba6 Improved: no functional change
Just better English in message

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868424 13f79535-47bb-0310-9956-ffa450edef68
2019-10-14 07:20:56 +00:00
Jacques Le Roux 2f3fd5a62f Fixed: Merge UrlRegexpTransform and OfbizUrlTransform classes
(OFBIZ-11229)

OFBIZ-4361 depends on this issue. Here is a first version, the main identified 
point was when the request isn't present (email send, service call) the website 
isn't pull from context. This solves this aspect

Thanks: Nicolas for the patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868395 13f79535-47bb-0310-9956-ffa450edef68
2019-10-13 10:37:08 +00:00
Jacques Le Roux 940e386de4 Improved: Unit test case for service - ProcessRepairReplacementReturn
(OFBIZ-8869)

OrderTests.groovy has been splitted in other files, this test fits in 
OrderReturnTests.groovy

Thanks: Avnindra Sharma for initial test and Suraj for Groovy conversion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868389 13f79535-47bb-0310-9956-ffa450edef68
2019-10-13 09:54:04 +00:00
Jacques Le Roux 4eb321b8a1 Improved: Unit test case for service - ProcessRefundReturnForReplacement
(OFBIZ-8868)

OrderTests.groovy has been splitter in other files, this test fits in 
OrderReturnTests.groovy

Thanks: Avnindra Sharma for initial test and Suraj for Groovy conversion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868388 13f79535-47bb-0310-9956-ffa450edef68
2019-10-13 09:32:19 +00:00
Jacques Le Roux 3745506c50 Improved: Unit test case for service - sendOrderConfirmation
(OFBIZ-8507)

Move to Groovy before deciding on moving OrderNotificationTests.groovy 
from order to ecommerce or moving EmailOrderScreens from ecommerce to order 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868341 13f79535-47bb-0310-9956-ffa450edef68
2019-10-12 13:46:13 +00:00
Jacques Le Roux 0bd6bf919b Fixed: NotSerializableException after uploading images to an order
(OFBIZ-11123)

I found that using in r1866259 the same fix than Si Chen used in OFBIZ-750 was 
wrong. The code just above this fix is

{code:java}
if (obj instanceof Serializable) {
    reqAttrMap.put(name, obj);
}
{code}

The problem with this code is that if does not handle inner Maps which may 
contain a non Serializable Object. So the solution is rather to get one level
deeper and apply the same. We can then remove the harcoded lines with 
"uploadedFile" and "_REQUEST_HANDLER_" below. Then all possible cases are handled
as long as we have not inner-inner-Maps




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868298 13f79535-47bb-0310-9956-ffa450edef68
2019-10-11 16:45:16 +00:00
Jacques Le Roux 750b51259e Improved: Add a discussion feature in order detail view for following
communication about the order (mail, phone etc.)
(OFBIZ-11210)

Adds missing ASL2 header

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868197 13f79535-47bb-0310-9956-ffa450edef68
2019-10-09 18:16:08 +00:00
Jacques Le Roux 42cb5c5dcc Improved: Update build.gradle to the latest dependencies
(OFBIZ-11245)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868194 13f79535-47bb-0310-9956-ffa450edef68
2019-10-09 14:06:47 +00:00
Pawan Verma c0141b568d Improved: Convert AutoAcctgAdminTests Unit Test from XML to Groovy
(OFBIZ-11243)

Thanks: Jacques Le Roux for the review and test.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868167 13f79535-47bb-0310-9956-ffa450edef68
2019-10-09 04:45:21 +00:00
Jacques Le Roux 530cf61808 Improved: Improve the job search view with a better limit and a default sort
(OFBIZ-11241)

Adds a 50 items limit by default instead of 20
Adds a default sort on -runtime to have a look on the lasts jobs executed

Thanks: Carl Demus 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868140 13f79535-47bb-0310-9956-ffa450edef68
2019-10-08 15:56:00 +00:00
Jacques Le Roux ad7597bfda Improved: Refactor OrderTests.groovy and separate order and return test services
(OFBIZ-11239)

Forgot to commit OrderNotificationTests.groovy in last commit

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868128 13f79535-47bb-0310-9956-ffa450edef68
2019-10-08 11:04:22 +00:00
Jacques Le Roux 3231d9178a Improved: Refactor OrderTests.groovy and separate order and return test services
(OFBIZ-11239)

Based on Suraj's patch
This also moves
  testQuickReturnOrder to OrderReturnTests.groovy 
  the requirement tests in OrderRequirementTests.groovy
  renames OrderTest.groovy to OrderNotificationTests.groovy since it contains
  only that
  renames test-case for OrderTests.xml "order-tests-xml"
 
Test pass

Thanks: Suraj for initial patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868126 13f79535-47bb-0310-9956-ffa450edef68
2019-10-08 10:50:18 +00:00
Suraj Khurana 75787be0c8 Improved: Unit test case for service - createPaymentContent.
(OFBIZ-9093)
Thanks: Deepak Nigam for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868057 13f79535-47bb-0310-9956-ffa450edef68
2019-10-06 12:22:40 +00:00
Suraj Khurana d832a00464 Improved: Unit test case for service - AutoAssignRequirementToSupplier.
(OFBIZ-8934)
Thanks: Avnindra Sharma for reporting, Anushi Gupta for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868055 13f79535-47bb-0310-9956-ffa450edef68
2019-10-06 11:49:34 +00:00
Suraj Khurana a844251683 Improved: Unit test case for service - ProcessRefundReturn.
(OFBIZ-8867)
Thanks: Avnindra Sharma for reporting, Rushikesh Mawal for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868054 13f79535-47bb-0310-9956-ffa450edef68
2019-10-06 11:46:24 +00:00
Suraj Khurana 1c485f417d Improved: Unit test case for service - GetReturnItemInitialCost.
(OFBIZ-8862)
Thanks: Avnindra Sharma for reporting, Anushi Gupta for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868053 13f79535-47bb-0310-9956-ffa450edef68
2019-10-06 11:40:55 +00:00
Suraj Khurana c8344766ff Improved: Unit test case for service - ProcessRefundImmediatelyReturn.
(OFBIZ-8865)
Thanks: Avnindra Sharma for reporting, Anushi Gupta for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868052 13f79535-47bb-0310-9956-ffa450edef68
2019-10-06 11:35:43 +00:00
Suraj Khurana 37d15f844f Improved: Unit test case for service - ProcessCrossShipReplacementReturn.
(OFBIZ-8864)
Thanks: Avnindra Sharma for reporting, Anushi Gupta for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868051 13f79535-47bb-0310-9956-ffa450edef68
2019-10-06 11:32:50 +00:00
Suraj Khurana a067386be7 Improved: Unit test case for service - ProcessCreditReturn.
(OFBIZ-8863)
Thanks: Avnindra Sharma for reporting, Rushikesh Mawal for providing the updated patch and Jacques for review.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868050 13f79535-47bb-0310-9956-ffa450edef68
2019-10-06 11:29:23 +00:00
Suraj Khurana 790021e2ce Improved: Unit test case for service - CheckCreateOrderRequirement.
(OFBIZ-8935)
Thanks: Avnindra Sharma for reporting and Anushi Gupta for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868049 13f79535-47bb-0310-9956-ffa450edef68
2019-10-06 11:23:38 +00:00
Suraj Khurana 932d955043 Improved: UI of the order status section in status column of order items table on orderview screen.
(OFBIZ-11106)
Thanks: Chandrashekhar Dhakad for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868048 13f79535-47bb-0310-9956-ffa450edef68
2019-10-06 11:18:40 +00:00
Mathieu Lirzin 13188ab6cc Improved: Refactor ‘ComponentConfig.ClasspathInfo’
(OFBIZ-11192)(OFBIZ-11238)

The validity checks have been moved at construction time instead of
relying on client code to ensure that the class path information are
sound.

A new ‘ComponentConfig.ClasspathInfo.Type’ enum has been defined to
improve type safety.

The location of the class path information is now using a
‘java.nio.file.Path’ class instance.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868030 13f79535-47bb-0310-9956-ffa450edef68
2019-10-05 16:30:12 +00:00
Mathieu Lirzin f628dec8be Improved: Specify that the component dependencies are never ‘null’
(OFBIZ-11238)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868029 13f79535-47bb-0310-9956-ffa450edef68
2019-10-05 16:23:21 +00:00
Mathieu Lirzin 60f7041c3d Improved: Use ‘Path’ for component config ‘rootLocation’ attribute
(OFBIZ-11192)

The method ‘ComponentConfig#getRootLocation’ has been removed
and replaced by ‘ComponentConfig#rootLocation’.

The callers have been adapted.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868028 13f79535-47bb-0310-9956-ffa450edef68
2019-10-05 16:20:32 +00:00
Mathieu Lirzin c982df72c2 Improved: Rewrite ‘Classpath’ class
(OFBIZ-11237)

This class has been moved to ‘org.apache.ofbiz.base.container’ to be
able to reduce its visibility to the “package” level.

The API has been change to avoid unnecessary checks and simpler dataflow.

There was no need to provide thread safety so the ‘synchronized’
blocks have been removed.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868027 13f79535-47bb-0310-9956-ffa450edef68
2019-10-05 15:44:21 +00:00
Jacques Le Roux 4ee663356e Improved: no functional change
In r1868022 I added the POS_SALES_CHANNEL was suggested in OFBIZ-10965. Actually
that was wrong. Tt's already in PosTypeData.xml though with a wrong sequenceId

This fixes it


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868023 13f79535-47bb-0310-9956-ffa450edef68
2019-10-05 14:23:17 +00:00
Jacques Le Roux 37672315c1 Improved: no functional change
Adds the POS_SALES_CHANNEL was suggested in OFBIZ-10965 and could be useful


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868022 13f79535-47bb-0310-9956-ffa450edef68
2019-10-05 14:18:33 +00:00
Jacques Le Roux 11d1ec6a5f Improved: no functional change
As reported by Ethan Vos on user ML, sometimes the alias between wget and 
Invoke-WebRequest is not present on Windows 7, better keep it simple!

Also removes the comment:
  Anyway I believe this should be only used in dev environment
which is no longer true

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867998 13f79535-47bb-0310-9956-ffa450edef68
2019-10-05 08:05:54 +00:00
Mathieu Lirzin ee77723168 Improved: Remove unnecessary semicolon
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867986 13f79535-47bb-0310-9956-ffa450edef68
2019-10-04 14:37:45 +00:00
Mathieu Lirzin 0ba98fb97b Improved: Remove unused imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867985 13f79535-47bb-0310-9956-ffa450edef68
2019-10-04 14:36:33 +00:00
Mathieu Lirzin b37bd7ab79 Improved: Add missing generic types
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867984 13f79535-47bb-0310-9956-ffa450edef68
2019-10-04 14:35:07 +00:00
Pawan Verma 8a4d0e7bcc Reverted: User is unable to update the review of product
(OFBIZ-10799)

Reverted rev 1867904

Thanks: Deepak Dixit for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867972 13f79535-47bb-0310-9956-ffa450edef68
2019-10-04 10:15:20 +00:00
Nicolas Malin c619dd5491 Improved: Use website to generate links on email content
(OFBIZ-4361)
OFBiz contains a nice process to generate link through WebSite entity.
Unfortunately when you send an email, the standard service didn't propage the website 
to the body content email, so we can't use it.

This improvement is needed on forgot password process to resolve the correct uri 
and go back on good OFBiz component: where the user requested for a new password.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867960 13f79535-47bb-0310-9956-ffa450edef68
2019-10-04 07:32:48 +00:00
Pawan Verma abebcb6375 'At least one phone number is required below' message should be uneditable while creating new customer using partymgr
(OFBIZ-11113)

Thanks: Arpit Mor for report and Saurabh Dixit for the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867937 13f79535-47bb-0310-9956-ffa450edef68
2019-10-03 12:36:38 +00:00
Jacques Le Roux 1b1f1b7262 Improved: Unit test case for service - sendOrderCompleteNotification
(OFBIZ-8812)

As Suraj somehow mentioned at https://markmail.org/message/zlf5chufefekb5r2, 
we can use the same ticket while converting the test to Groovy

Tests pass

Thanks: Avnindra Sharma for the initial patch (here converted to Groovy)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867936 13f79535-47bb-0310-9956-ffa450edef68
2019-10-03 12:17:36 +00:00
Pawan Verma ec56797af7 Fixed: Check run payment(A/P) transactions not getting available for reconciliation
(OFBIZ-10796)

Check run payment group transactions don't get available for Financial Account reconciliation. Though the financial account balance gets updated during the A/P check run process, the system must allow the user with an additional step of reconciling the transactions.

The cause of this is that the financial account transaction doesn't get created in the 'Created' status and has an 'Approved' status. An approved status financial transaction directly updates the financial account balance and thus don't appear in the list of the transactions to be reconciled.

Thanks: Chinmay Patidar for your contribution and Pierre Smits for the review.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867930 13f79535-47bb-0310-9956-ffa450edef68
2019-10-03 12:05:21 +00:00
Jacques Le Roux 795b855e60 Improved: Unit test case for service - sendOrderPayRetryNotification
(OFBIZ-8813)

As Suraj somehow mentioned at https://markmail.org/message/zlf5chufefekb5r2, 
we can use the same ticket while converting the test to Groov

Tests pass

Thanks: Avnindra Sharma for the initial patch (here converted to Groovy)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867929 13f79535-47bb-0310-9956-ffa450edef68
2019-10-03 12:03:37 +00:00
Jacques Le Roux 8f9e79b31e Improved: Unit test case for service - SendOrderBackorderNotification
(OFBIZ-8810)

As Suraj somehow mentioned at https://markmail.org/message/zlf5chufefekb5r2, 
we can use the same ticket while converting the test to Groov

Tests pass

Thanks: Avnindra Sharma for the initial patch (here converted to Groovy)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867928 13f79535-47bb-0310-9956-ffa450edef68
2019-10-03 11:46:18 +00:00
Jacques Le Roux 00b64c903e Improved: Convert testSendOrderChangeNotification to Groovy
(OFBIZ-11233)

Tests pass

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867927 13f79535-47bb-0310-9956-ffa450edef68
2019-10-03 11:30:28 +00:00
Jacques Le Roux cc698a468c Improved: Unit test case for service - testSendOrderChangeNotification
(OFBIZ-8811)

Removes duplicated order-tests-data-load

Tests pass

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867926 13f79535-47bb-0310-9956-ffa450edef68
2019-10-03 10:49:07 +00:00
Jacques Le Roux 02fee75365 Improved: Unit test case for service - testSendOrderChangeNotification
(OFBIZ-8811)

Fixes to right place

There were no reasons to add an OrderTest.xml file, 
testSendOrderChangeNotification fits in OrderTests.xml

It was even wrong because of duplicated order-test test-case

Tests pass

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867921 13f79535-47bb-0310-9956-ffa450edef68
2019-10-03 09:28:37 +00:00