Commit Graph
25506 Commits
Author SHA1 Message Date
Jacques Le Roux f2aab378fe Improved: Improve NL labels in ManufacturingUiLabels.xml
(OFBIZ-10547)

Improves Dutch labels in Manufacturing component to enable adoption increase.

Thanks: Pierre Smits


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1840129 13f79535-47bb-0310-9956-ffa450edef68
2018-09-05 12:35:21 +00:00
Deepak Dixit 870651efdf Improved: Use of layered-modal with parameter does not work
(OFBIZ-10511)
Thanks Arsalane Arrach for your contribution. Use " to escape the double quotation marks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1840093 13f79535-47bb-0310-9956-ffa450edef68
2018-09-05 07:16:21 +00:00
Nicolas Malin 31b32ff2e1 Fixed: Warning in console logs related to entity definitions
(OFBIZ-10540)
I introduced two waring on log with the commit OFBIZ-10514 (Refactoring ContactMechWorker.get[Entity]ContactMechValueMap)
Thanks to Deepak Nigam to raise and correct it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839965 13f79535-47bb-0310-9956-ffa450edef68
2018-09-03 14:18:30 +00:00
Gil Portenseigne 3f23e45b7b Implemented: Refactor EntityUtil findBy methods using Stream API
(OFBIZ-10537)

Fixed variable name to make it more meaningful

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839926 13f79535-47bb-0310-9956-ffa450edef68
2018-09-03 09:33:21 +00:00
Jacques Le Roux 1c73989942 Implemented: 'Reserve After Date' for order items
(OFBIZ-10534)

While creating orders from the backend, we have the option to set parameters 
like 'Ship After Date' and 'Ship Before Date' to manage the fulfilment cycle 
more efficiently. 

Inventory gets reserved for the product based on a FIFO basis. Sometimes the 
fulfilment time for the order is high and inventory unnecessarily gets locked 
for some time period.
 
We can introduce a new parameter (at order item level) 'Reserve After Date' 
which will indicate the date only after which reservation can happen. 
In this way, we can manage the stock availability more efficiently.
 
This issue relates to OFBIZ-10518

Thanks: Deepak Nigam  for the effort, Deepak Dixit for a review and suggestions

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839914 13f79535-47bb-0310-9956-ffa450edef68
2018-09-03 08:15:08 +00:00
Jacques Le Roux 6056b47770 Improved: Improve NL labels in ProductUiLabels.xml
(OFBIZ-10544)

Improves Dutch labels in Product component to enable adoption increase.

Thanks: Pierre Smits


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839912 13f79535-47bb-0310-9956-ffa450edef68
2018-09-03 08:05:49 +00:00
Nicolas Malin 487ad5e7dd Improved: Add shipmentIds list parameter on quickShipPurchaseOrder service return
(OFBIZ-9376)

Service "quickShipPurchaseOrder" allows to create a reception for every ship group of a purchasing order. This work correctly but it didn't return shipments reference that has been created during the receptions.
Now we can obtains the shipmentIds list after a receipt to help the follow.

Thanks to Pierre Gaudin for this proposal

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839787 13f79535-47bb-0310-9956-ffa450edef68
2018-08-31 19:17:39 +00:00
Nicolas Malin acfe87067e Improved: Convert InvoiceServices.xml mini lang to groovy
(OFBIZ-9986)
Convert services getNextInvoiceId, invoiceSequenceEnforced and invoiceSequenceRestart from minilang to groovy.
This is a subtask of OFBIZ-9350 Deprecate Mini Lang

Thanks to Leila Mekika for this issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839778 13f79535-47bb-0310-9956-ffa450edef68
2018-08-31 17:29:55 +00:00
Gil Portenseigne e316f2165d Implemented: Refactor EntityUtil findBy methods using Stream API
(OFBIZ-10537)

Thanks Jacques and Mathieu for the review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839763 13f79535-47bb-0310-9956-ffa450edef68
2018-08-31 15:32:02 +00:00
Suraj Khurana 2d2aba0a4c Improved: Empty header row should not render if list to render in file is empty.
(OFBIZ-7598)
Thanks everyone for your inputs and suggestions.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839729 13f79535-47bb-0310-9956-ffa450edef68
2018-08-31 06:33:07 +00:00
Deepak Dixit f1ba3ae6a8 Improved: Removed comment from ServerHitBin.java related to mysql Fractional Seconds related issue, this issue fixed under OFBIZ-9337
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839655 13f79535-47bb-0310-9956-ffa450edef68
2018-08-30 09:35:25 +00:00
Deepak Dixit 6d3395f4c4 Improved: Removed extra unused code to set the fromDate to avoid duplicate PK in case of mysql. As mysql added support to store Fractional Seconds in Time Values, this has been fixed under OFBIZ-9337
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839653 13f79535-47bb-0310-9956-ffa450edef68
2018-08-30 09:27:04 +00:00
Jacques Le Roux b21b8891e4 Improved: Improve NL labels in OrderUiLabels.xml
(OFBIZ-10543)

Improve Dutch labels in Order component to enable adoption increase.

Thanks: Pierre Smits

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839551 13f79535-47bb-0310-9956-ffa450edef68
2018-08-29 08:29:23 +00:00
Jacques Le Roux 7f4dec9441 Fixed: Add method attribute to request-map to controll a uri can be called GET
or POST only
(OFBIZ-10438)

The problem was r1838081 prevented to serialise requests.

Like in ordermgr/control/updateCheckoutOptions/quickcheckout where 
updateCheckoutOptions and quickcheckout are serialised to update the check out 
after updateCheckoutOptions is done and then get back to the screen with 
quickcheckout. 

CheckoutOptions.ftl is a good example of this usage.

Thanks: Deepak Nigam for initial report and Mathieu for fixing it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839451 13f79535-47bb-0310-9956-ffa450edef68
2018-08-28 16:06:23 +00:00
Nicolas Malin 5bb8916cca Fixed: escape null pointer exception on ShipmentWorker.calcPackageWeight when a product haven't a productWeight value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838868 13f79535-47bb-0310-9956-ffa450edef68
2018-08-24 14:37:25 +00:00
Suraj Khurana 5d317c08de Reverted: Empty header row should not render if list to render in file is empty.
(OFBIZ-7598)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838823 13f79535-47bb-0310-9956-ffa450edef68
2018-08-24 11:37:16 +00:00
Jacques Le Roux 99be3370a9 Fixed: Fix Default or Empty Catch block in Java and Groovy files
(OFBIZ-8341)

I was waiting for months to do more on this, but got caught recently with this
pending change merged with a patch I tested. Better to get rid of it now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838665 13f79535-47bb-0310-9956-ffa450edef68
2018-08-22 16:59:59 +00:00
Jacques Le Roux e073f7d29e Improved: no functional change
Previous commit 
    "Fixes the API doc, removes a return when there is not"
was wrong, the return missed a description rather


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838419 13f79535-47bb-0310-9956-ffa450edef68
2018-08-20 09:55:32 +00:00
Jacques Le Roux a7dd9efb2b Improved: no functional change
Fixes the API doc, removes a return when there is not

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838418 13f79535-47bb-0310-9956-ffa450edef68
2018-08-20 09:53:50 +00:00
Jacques Le Roux 85c4d26378 Improved: no functional change
We have agreed to have lines no longer than 120 characters. This splits where
necessary, at least for me. I find that a bit longer sometimes makes things more
legible, we are not robots.

Also automatically removes an unused import (thanks Eclipse)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838384 13f79535-47bb-0310-9956-ffa450edef68
2018-08-19 15:49:00 +00:00
Jacques Le Roux 4b8d988563 Fixed: Search in Ecommerce no longer works
(OFBIZ-10531)

I guess that when I worked on OFBIZ-9164 I broke that.

I found 3 occurences where the dispatcher was not in the session because the 
session comes from the request and the request has not it in.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838381 13f79535-47bb-0310-9956-ffa450edef68
2018-08-19 15:30:42 +00:00
Nicolas Malin ea9844a6c4 Improved: Refactoring ContactMechWorker.get[Entity]ContactMechValueMaps function to improve processing speed
(OFBIZ-10514)
ContactMechWorker.get[Entity]ContactMechValueMaps are old historic functions that resolve all contact mech context related to an Entity (Party, Facility, Order, WorkEffort).
The problem that they create too many db call during their execution that decrease OFBiz performance when the contactMech history grow.

A solution use to improve the process speed was replace all db call through *GenericValue.getRelated* function by *Delegator.makeValidValue* to instanciate each GenericValue needed after an unique search call on a viewEntity. For the four entities : Party, Facility, Order and WorkEffort, I use the same view structure with a sub view entity on ContactMechDetail. This offer more genericity and permit to slim code.

This commit introduce a regression on genericValue resolved for ContactMechType and ContactMechPurposeType that currently lost their description, it's actually not awkward because theses genericValue use the function .get("description", locale) to resolve the description so call directly the label system.

For Order and WorkEffort, I merged the resolving process in one function, that can be extend later easily for some other entity like Invoice or Quote.
The new FtpAddress wasn't managed by this worker so I introduce it to keep the coherence.

Last improvement, I use 
   getPartyContactMechValueMaps(Delegator delegator, String partyId, Timestamp date, String contactMechTypeId) 
instead of
   getPartyContactMechValueMaps(Delegator delegator, String partyId, boolean showOld, String contactMechTypeId) 
to offert also more possibility to resolve at date instead just use now or all.

icing on the cake, I added groovy test to control this worker

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838349 13f79535-47bb-0310-9956-ffa450edef68
2018-08-18 21:23:31 +00:00
Suraj Khurana 9c2127b257 Improved: Added support to calculate deposit price as well while creating shopping cart item.
(OFBIZ-7482)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838320 13f79535-47bb-0310-9956-ffa450edef68
2018-08-18 08:34:18 +00:00
Aditya Sharma 24f846174c Improved: Remove checks to store only 250 characters of URL in VisitHandler.getVisit() & ServerHitBin.saveHit()
(OFBIZ-10508)
When the code was committed the 'URL' field type had a size of 255 characters only which was later changed to 2000 characters. So, the above code logic to restrict no of characters can be removed now. 
Removed null pointer check for initialRequest and initialReferrer as it is already handled while setting the values in UtilHttp.setInitialRequestInfo() method.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838256 13f79535-47bb-0310-9956-ffa450edef68
2018-08-17 12:46:59 +00:00
Shi Jinghai ddf3540817 Implemented: Add method attribute to request-map to controll a uri can be called GET or POST only
OFBIZ-10438

Thanks: Mathieu Lirzin for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838081 13f79535-47bb-0310-9956-ffa450edef68
2018-08-15 11:45:45 +00:00
Shi Jinghai c9f5a346ec Implemented: Remove org.apache.tomcat.util.net.secure_protocol_version from json output
OFBIZ-10443

Add org.apache.tomcat.util.net.secure_protocol_version to ignoreAttrs.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838080 13f79535-47bb-0310-9956-ffa450edef68
2018-08-15 11:40:19 +00:00
Julien Nicolas 9a4bda3f27 Improve: Change the uggly favicon with the new one ! | Using new OFBiz logo
(OFBIZ-10522)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838074 13f79535-47bb-0310-9956-ffa450edef68
2018-08-15 09:15:13 +00:00
Julien Nicolas 89f390cd54 Improve: Main menu enhancement
(OFBIZ-10521)

The main menu in rainbowstone theme don't display more than 9 items, pending items are included in the + menu.
The problem is that it's not really clear to know where you are or to simply click again on the webapp link to be redirected to the main target.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838073 13f79535-47bb-0310-9956-ffa450edef68
2018-08-15 08:50:28 +00:00
Julien Nicolas 35677822a1 Improved: Change font Title|to match with the initial implementation
(OFBIZ-10513)

Tanks: Marine DESMARCHELIER for her help to understand the reason that it wasn't work

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838072 13f79535-47bb-0310-9956-ffa450edef68
2018-08-15 08:42:00 +00:00
Jacques Le Roux d22812ba9b Fixed: You can't create a New Payment Group
(OFBIZ-10523)

There is a duplicated paymentGroupTypeId, it should a string not a list.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1838032 13f79535-47bb-0310-9956-ffa450edef68
2018-08-14 16:44:17 +00:00
Nicolas Malin 8aaadfd41f Fixed: No functional change, indent correctly the xml file workeffort/entitydef/entitymodel_view.xml and set self-closing tag on empty element
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837999 13f79535-47bb-0310-9956-ffa450edef68
2018-08-14 08:58:11 +00:00
Taher A. Alkhateeb 4665c60ecf Fixed: bug in which build scripts for plugins are not executing
Due to refactoring work a bug was introduced, this fix tackles
this issue in which plugin install and uninstall tasks are not
running.

reference: https://s.apache.org/CKU9

Thanks: Mathieu Lirzin for the analysis and patch.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837987 13f79535-47bb-0310-9956-ffa450edef68
2018-08-14 05:55:29 +00:00
Julien Nicolas 28a8f7b053 fixed: code duplication in main rainbowstone less file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837981 13f79535-47bb-0310-9956-ffa450edef68
2018-08-13 21:05:54 +00:00
Deepak Dixit b5da481d29 Improved: Use input type=submit for form submission (OFBIZ-10482)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837892 13f79535-47bb-0310-9956-ffa450edef68
2018-08-12 08:52:51 +00:00
Jacques Le Roux 0600c9e2a6 Improved: no functional change
Removes io.jsonwebtoken:jjwt, this was not supposed to be part of OFBIZ-10517

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837863 13f79535-47bb-0310-9956-ffa450edef68
2018-08-11 10:49:10 +00:00
Jacques Le Roux 8e21fb51b3 Fixed: Update Apache Tomcat to 9.0.10 because of CVE-2018-8037
(OFBIZ-10517)

If an async request was completed by the application at the same time as the 
container triggered the async timeout, a race condition existed that could 
result in a user seeing a response intended for a different user. 
An additional issue was present in the NIO and NIO2 connectors that did not 
correctly track the closure of the connection when an async request was 
completed by the application and timed out by the container at the same time.
This could also result in a user seeing a response intended for another user. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837857 13f79535-47bb-0310-9956-ffa450edef68
2018-08-11 10:37:40 +00:00
Deepak Dixit 2fe25b3d79 Improved: Replace #assign with #local in all the ftl macros
(OFBIZ-10516)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837830 13f79535-47bb-0310-9956-ffa450edef68
2018-08-10 18:49:03 +00:00
Deepak Dixit 5f8f3bfa65 Improved: Replace #assign with #local in all the themes ftl macros
(OFBIZ-10516)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837829 13f79535-47bb-0310-9956-ffa450edef68
2018-08-10 18:47:58 +00:00
Deepak Dixit e7a7ba4876 Improved: Rendering different HTML container types with ScreenRenderer
(OFBIZ-10495)
Applied slightly modified patch 
Thanks Dennis Balkir for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837827 13f79535-47bb-0310-9956-ffa450edef68
2018-08-10 18:23:11 +00:00
Gil Portenseigne 0b6acc8feb Fixed: Use of layered-modal with parameter does not work
(OFBIZ-10511)

Thanks Deepak and Aditya for the review and providing a better patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837806 13f79535-47bb-0310-9956-ffa450edef68
2018-08-10 14:11:22 +00:00
Taher A. Alkhateeb 6c28c16c58 Improved: disable DTDs for XML-RPC requests
(OFBIZ-10509)

Disable any doctype declarations in XML-RPC requests to OFBiz to enhance
performance and security.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837697 13f79535-47bb-0310-9956-ffa450edef68
2018-08-09 08:27:57 +00:00
Jacques Le Roux 73096d0962 Improved: no functional change, was missing the ASL2 license
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837642 13f79535-47bb-0310-9956-ffa450edef68
2018-08-08 11:42:12 +00:00
Gil Portenseigne 266b63ac12 Fixed: Initial set of hasLoggedOut flag when logging in
(OFBIZ-10506)

Thanks Dennis for your patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837584 13f79535-47bb-0310-9956-ffa450edef68
2018-08-07 09:34:53 +00:00
Gil Portenseigne ceea6ce791 Improved : Remove all unnecessary boxing and unboxing in Java classes
(OFBIZ-10504)

Thanks Taher, Jacques, Mathieu and Rishi for the review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837577 13f79535-47bb-0310-9956-ffa450edef68
2018-08-07 07:30:43 +00:00
Taher A. Alkhateeb 22d780cdae Improved: Further refactor MapContext and MapStack
(OFBIZ-10485)

This commit applies multiple new refactoring enhancements as follows:
- rename stackList to contexts (the data structure holding the context Deque)
- refactor the size function to utilize streams to sum all keys
- Implement a function "entryStream()" that returns a stream of all keys in the
  correct sequential order and utilize this function in multiple functions for
  iterating over the keys including "containsValue", "values" and "entrySet".
  This implementation is necessary to avoid code repetition and ensure correct
  order with no duplicates
- Re-design the get functions of the context map to use a generic function with
  a functional interface "withMapContainingKey". The purpose of it is to avoid
  checking for nulls and instead use the "containsKey" function followed by the
  injected lambda expressions in both signatures of the get function

Thanks: Mathieu Lirzin for the patch and implementing suggested changes.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837462 13f79535-47bb-0310-9956-ffa450edef68
2018-08-05 12:36:09 +00:00
Gil Portenseigne d3021c213b Improved : Use the stream API in FormRenderer
(OFBIZ-10505)

Thanks Mathieu for the patches

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837460 13f79535-47bb-0310-9956-ffa450edef68
2018-08-05 09:18:20 +00:00
Taher A. Alkhateeb e534c3b3b7 Improved: refactored the MapContext object with multiple improvements
(OFBIZ-10485)

- Removed the constructor and factory method "getMapContext" as it was
  redundant and does not add any value
- Replaced manual for-loop for collection walking in multiple methods with
  simple stream calls applied declaratively with less noise in the code.
- Fully removed the ListSet custom data structure with as that data structure
  did not serve any meaningful purpose and it is always better to rely on
  the java builtin data structures where possible. Construction was replaced
  with a HashSet instead.

Thanks: Mathieu Lirzin for your time, discussions and patch.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837409 13f79535-47bb-0310-9956-ffa450edef68
2018-08-04 08:39:16 +00:00
Gil Portenseigne 03107374d2 Improved : Inline ‘getFieldListsByPosition’ method
(OFBIZ-10503)

Refactors ‘getFieldListsByPosition’ method using stream. Thanks Mathieu for the patches

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837348 13f79535-47bb-0310-9956-ffa450edef68
2018-08-03 07:28:34 +00:00
Gil Portenseigne a855a8bd9a Fixed : File transfer management with communicationEvent and new contactMech FTP_ADDRESS
(OFBIZ-10245)

Fix package name of FtpAddress entity respecting renaming to 'org.apache.ofbiz'

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837297 13f79535-47bb-0310-9956-ffa450edef68
2018-08-02 13:10:26 +00:00
Gil Portenseigne b16339e90a Improved : Factorize and Refactor filtering of duplicated ‘use-when’ fields in ‘FormRenderer’
(OFBIZ-10502)

Thanks Mathieu for providing unit test and improvment patches

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837254 13f79535-47bb-0310-9956-ffa450edef68
2018-08-01 20:02:09 +00:00