Commit Graph
27815 Commits
Author SHA1 Message Date
Daniel Watford eaaf41d7a9 Fixed: Default From Date for Product Config Item Content truncated to seconds rather than milliseconds.
(OFBIZ-12246)

There was a mismatch in timestamp resolution. Updates to Product Config
Item Contents rely on second resolution timestamps for finding records
to update. By default, millisecond resolution timestamps were created
for config item contents' From Date which caused records to not be found
during update operations.

Also made From Date a display-only field when editing a config item
content since it is a primary key and cannot be modified.
2021-05-28 10:29:57 +01:00
Daniel Watford f970f1c538 Fixed: Typo in request parameter when editing Product Config Item
Content's content prevented retrieval of correct record.

(OFBIZ-12245)
2021-05-28 09:09:34 +01:00
Daniel Watford d16bef46dc Improved: MacroFormRenderer refactoring of field group open and close elements
(OFBIZ-12124)

Part of the OFBIZ-11456 MacroFormRenderer refactoring effort.

Rather than MacroFormRenderer producing and evaulating FTL strings, it now
uses RenderableFtlElementsBuilder to create RenderableFtlMacroCall objects
which are then passed to an FtlWriter for evaluation.
2021-05-27 11:12:12 +01:00
Hfarajyan a7f4f8209b Improved: Convert ProductConfigItemContentServices.xml-minilang-to-groovy (OFBIZ-11463) 2021-05-27 09:18:29 +01:00
Jacques Le Roux 7c5b78919e Improved: fixes a checkstyle issue
In RequestHandler.java[1394] ':' is not preceded with whitespace.
2021-05-25 12:14:27 +02:00
Nicolas Malin b663660486 Implemented: on-event-update-area on form inherit information from parent form
(OFBIZ-11811) (OFBIZ-11808)

When you write a form, if you want the dynamic interaction and style, you need to implement everything on the form.
The developer must know the style used, different area and rules support by the technology besides the really information/action that the form will do.

   <form name="ListFacility" type="list" list-name="listIt" paginate-target="FindFacility"
         odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
       <actions>...
       <field name="facilityId">....
       <on-event-update-area event-type="sort-column" area-id="search-results" area-target="FacilitySearchResults"/>
       <on-event-update-area event-type="paginate" area-id="search-results" area-target="FacilitySearchResults"/>
   </form>

We can put all information on the theme and all dynamic refresh (for area) are related to the parent form and parent screen. Finally we will obtain :

    <form name="ListFacility" extends="CommonDynamicList" extends-resource="component://common/widget/CommonForms.xml"
          paginate-target="FindFacility">
        <actions>...
        <field name="facilityId">....
    </form>

    <form name="CommonDynamicList" type="list"
         odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
       <on-event-update-area event-type="sort-column"/>
       <on-event-update-area event-type="paginate"/>
   </form>

The target and area to update has been automatically resolved from the parent form and screen.

This commit improve the modelForm and the widget-form.xsd to do that.

Thanks to Gil Portenseigne his help
2021-05-21 17:58:27 +02:00
wpaetzold f4932918a6 Implemented: Missing service for updateFacilityLocationGeoPoint (#296)
(OFBIZ-12242)

Thanks: Wiebke
2021-05-18 19:02:16 +02:00
holivier a81d0111c1 Documented: Order online Documentation and help (OFBIZ-12224)
just rename two adoc files, change from _ to -
2021-05-18 17:14:10 +02:00
holivier d1d30be658 Documented: Order online Documentation and help (OFBIZ-12224)
Add Return documentation, diagrams content is coming from wiki page
https://cwiki.apache.org/confluence/display/OFBIZ/Sales+Order+Management+Process+Overview many thanks to Shivangi Tanwar

some complement and help for UI from Order Management PDF from David Jones
2021-05-18 17:13:51 +02:00
holivier e5cab600b2 Documented: Order online Documentation and help (OFBIZ-12224)
In order - order documentation add

* payment term diagram and help about order-bill-setting,
* order update diagrams

most of content and diagram is coming from wiki page
https://cwiki.apache.org/confluence/display/OFBIZ/Sales+Order+Management+Process+Overview many thanks to Shivangi Tanwar

and some complement from Order Management PDF from David Jones
2021-05-18 17:13:28 +02:00
Pierre Smits edcaf9d705 Improvement: label OrderAdjustmentType (OFBIZ-12234) (#295)
-added the label
2021-05-17 13:25:02 +02:00
Jacques Le Roux 2ebbc51afd Improved: trivial changes in build.gradle and checkstyle.xml 2021-05-17 11:59:37 +02:00
Jacques Le Roux fb0701b7bd Fixed: Plugin not showing in menu due to permission (OFBIZ-12233)
When creating a plugin via gradle :
./gradlew createPlugin -PpluginId=plugin-test -PpluginResourceName=PluginTest
-PwebappName=plugin-test -PbasePermission=PLUGIN_TEST

and loading all the required data and permissions, the plugin doesn't appear
in the menu.

It comes from the ComponentConfig.java file, L1229, when the permissions gets
trimmed and modified. I tried removing it locally and it fixed the problem.

Thanks: Gaetan Chaboussie
2021-05-17 11:59:36 +02:00
Nicolas Malin b8f67d2e70 Fixed: Quote and Invoice with null value on refresh base
(OFBIZ-12239)

After a fresh data base init with only seed, if you create your company without invoice or quote prefix, your sequence will be generate with 'null' string where the invoice or quote prefix should be have :

> null10001, null10002, ...
2021-05-14 17:54:19 +02:00
Aditya Sharma e97f45c381 Fixed: removed unused asmselect files and unused variable asm_asmListItemPercentOfForm (OFBIZ-10113)
asm select library is already replaced with select2 library, but the library files still exist in code base unused.
asm_asmListItemPercentOfForm varaible was used to set the width of the selected items which were displaced distictly from select fields. With select2, the selected items display inside the input field so it is no more needed

Thanks Jacques Le Roux for reporting it
2021-05-12 11:57:54 +05:30
holivier af335df8d1 Documented: Order online Documentation and help (OFBIZ-12224)
Correction on helpAnchor in OrderScreens to put value directly not as default-value.
2021-05-11 17:53:46 +02:00
Jacques Le Roux cef2ae5d41 Improved: adds Montastic Website Monitoring Service on GH framework repo 2021-05-06 10:34:38 +02:00
holivier 59e50880e9 Documented: Order online Documentation and help (OFBIZ-12224)
forgot image about order-status-change in the previous commit
2021-05-04 16:14:27 +02:00
holivier 462b871f18 Documented: Order online Documentation and help (OFBIZ-12224)
Migration of OFBiz wiki 3.1-3.2-3.3 Order Entry page and Sales Order Management page

Create Order Diagrams
Order Status Diagrams
Add link from screen to help
2021-05-04 16:03:01 +02:00
Jacques Le Roux 45f50c910d Improved: Handle remaining checkstyle errors (OFBIZ-12169)
This handles the "'(' should be on the previous line?" rule of MethodParamPad

Actually not completely, because there are still some cases that can't be
handled by changing code, notably when a casting is necessary. I believe there
is an error in checkstyle code. I'll discuss that in dev ML before sending
checkstyle team a report.
2021-05-04 10:34:52 +02:00
Jacques Le Roux 3f2fbc6f72 Fixed: Error page shown when clicking on a product Id in the purchase order page (OFBIZ-12229)
There is no "basePrice" resulting from calculatePurchasePrice service calling but
a simple "price".

This was put in with d04f777 commit and OFBIZ-11955

Thanks: Woyce Batkins for report
2021-05-01 18:56:41 +02:00
Jacques Le Roux afacb3ab43 Fixed: Order processing issue for dropship only products (OFBIZ-12068)
When a dropship only (or dropship on low ATP) product with no qualified supplier
added to shopping cart and cart converted to sales order. System should return
errors and should not create sales order.

Thanks: Amit Gadaley
2021-04-27 12:07:49 +02:00
Jacques Le Roux 1e3148c3a8 Fixed: Secure the uploads (OFBIZ-12080)
Reopened after report of a bug (only on *nix systems) by Shrilesh Korgaonkar.
This fixes the issue

Thanks: Shrilesh Korgaonkar
2021-04-16 09:25:18 +02:00
Joonas Hiltunen 9b4a4ad8d6 Implemented: Add new party while placing quotes (OFBIZ-7456) (#294)
Introduce the option to create a new party group while placing the quotes in the system.
2021-04-12 12:32:40 +02:00
Jacques Le Roux 391b370761 Improved: Replace Bintray by a new place to upload the Gradle Wrapper (OFBIZ-12192)
The checksum part was missing in Windows init-gradle-wrapper.ps1 script
2021-04-11 10:17:38 +02:00
Jacques Le Roux f062ff4613 Fixed: Service calls of "createPartyContactMech" now include the needed contactMechTypeId (OFBIZ-12175) (#292)
Fixes PartyServices.java lines too long
Error Description	                        Line
La ligne excède 150 caractères (trouvé 178).	2621
La ligne excède 150 caractères (trouvé 178).	2638
La ligne excède 150 caractères (trouvé 191).	2655
2021-04-08 11:46:33 +02:00
wpaetzold bec5ba87f3 Fixed: Error while deleting a Facility because of an existing (#291)
FacilityLocationGeoPoint (OFBIZ-12222)

Adds a service to delete a FacilityLocationGeoPoint
2021-04-08 11:30:58 +02:00
bjugl 983f04dfd6 Fixed: Service calls of "createPartyContactMech" now include the needed contactMechTypeId (OFBIZ-12175) (#292)
This was broken by OFBIZ-8358 where, as well explained at OFBIZ-12175, "createPartyContactMech Service has been changed to expect an OUT contactMechTypeId paramter and the call on this end has not been modified."
2021-04-08 11:05:38 +02:00
Jacques Le Roux 7fd9d05f7e Improved: Improve ObjectInputStream denyList (OFBIZ-12221)
Forgot to change ListOfSafeObjectsForInputStream to allowList in UtilObjectTests
2021-04-07 10:12:33 +02:00
Jacques Le Roux 3f975780cf Improved: Improve ObjectInputStream denyList (OFBIZ-12221)
In SafeObjectInputStream.properties
  Renames listOfSafeObjectsForInputStream to allowList and fixes it
  Introduces a denyList

Adapts SafeObjectInputStream class to new denyList
2021-04-07 08:51:36 +02:00
Jacques Le Roux fcc0078b60 Improved: Improve ObjectInputStream denyList (OFBIZ-12221)
Prevents generics markup in string type names.
2021-04-05 17:03:12 +02:00
bjugl e786da42e8 Fixed: Induction from DB does not represent relations properly. (#290) (OFBIZ-12178)
As encountered in OFBIZ-6510, the ModelInduceFromDb does currently not include entity relations and foreign key constraints. Since they are an important part of the database model, we should fix that.

I could track down the problem to an incomplete invocation of the ModelEntity through the constructor used in the DatabaseUtil.induceModelFromDb() Methods. This constructor does not initialize the Relations.

Problem is, that the ModelEntity initialized through the "DB Names Constructor" does not cover references in its current state at all.

While working on an implementation I realized, that the API is not very congruent in this regards. I would expect that I could initialize ModelRelations the same way ModelFields are initialized in this context:

The create() Method takes a ModelEntity, DatabaseUtil.ColumnCheckInfo (respectively a DatabaseUtil.ReferenceCheckInfo) and a ModelFieldTypeReader (that could be left out for references) and creates ModelField (ModelRelation) objects that are added to the ModelEntity.

But that is not the case at the moment. On one hand not all fields that would be necessary are covered in the DatabaseUtil.ReferenceCheckInfo Objects (e.g. "type" is missing), on the other the object is missing public getters to make the values available in the first place.

Thanks a bunch Benjamin, nice add !
2021-04-02 11:12:42 +02:00
Jacques Le Roux 0631278fd5 Fixed: updates Tika because of CVE-2021-2865 2021-03-30 17:09:28 +02:00
Jacques Le Roux 62e657f3a7 Documented: Comment out the SOAP and HTTP engines (OFBIZ-12212)
Documents that the EntitySync feature is no longer available OOTB.
You need first to re allow the HTTP engine
2021-03-30 13:04:35 +02:00
Jacques Le Roux 1bc8a20634 Improved: Improve UtilObject class (OFBIZ-12216)
Removes "DiskFileItem, FileItemHeadersImpl are not serializable" case. It does
not appear in trunk.

Handling with exception Rather than returning null cleans UtilObject class.

Restrict unauthorized deserialisations to java.rmi instead of java.rmi.server
2021-03-30 12:29:54 +02:00
Jacques Le Roux 643b9c7ea7 Improved: Comment out the SOAP and HTTP engines (OFBIZ-12212)
The SOAP and HTTP engines are open doors to security issues.
At https://markmail.org/message/pgtjyh23bazq4s2w I proposed to comment them out
as we did for RMI in the past.
Of cause it must be clearly documented how to use them if needed.

Here is the email content:

    After the recent fix for the CVE-2021-26295[1] we discussed with the security
    team about the opportunity need to comment out the SOAP and HTTP engines
    like we did in the past for RMI[2], this obviously for security reason.

    [1] OFBIZ-12167 "Adds a blacklist (to be
    renamed soon to denylist) in Java serialisation (CVE-2021-26295)"
    [2] OFBIZ-6942 "Comment out RMI related
    code because of the Java deserialization issue [CVE-2016-2170] "

I just put a small comment in webtools controller, it should be enough.

The tests pass
2021-03-29 13:13:53 +02:00
Jacques Le Roux 76d6382c81 Fixed: addImageForProduct fails (OFBIZ-12211)
The addImageForProduct  process is not directly uploading a file but renames it
before.So there is a hyphen, and possibly a pair or parenthesis in case of
duplicate files, added to the file name.

In this commit I have also added the possibility to use underscores and spaces
in the original filename
2021-03-29 11:07:20 +02:00
Jacques Le Roux 7d9db5e321 Fixed: Convert ImageManagementServices.xml minilang to groovy (OFBIZ-11604)
For an unknown reason (I did not dig in), in uploadProductImages
result.productId = parameters.productId must be set at start and not end
because parameters.productId does not exist at end. I guess because of the call
to addMultipleuploadForProduct, but as I said I did not dig in.

Also updateStatusImageManagement did not return productId

Unrelated removes an useless new line in ImageManagementServices.java
2021-03-29 10:42:04 +02:00
Jacques Le Roux 79c991e7f8 Fixed: Invalid Currency symbol in income statement csv export (OFBIZ-12108)
1. Navigate to URL: accounting/control/IncomeStatement?organizationPartyId=Company
2. In income statement section click on export as csv button.
3. The exported csv has correct balance but with invalid currency symbol.
4. On screen USD $ symbol is shown and in csv some other currency symbol is shown.

Thanks: Lalit Dashora for report, Praveen Sharma for the fix
2021-03-28 13:29:29 +02:00
Suraj Khurana 933c3e0bc6 Fixed: ChangeReason was not being set on OrderStatus when orderItem was marked cancelled with reason.
(OFBIZ-12210)
Thanks Lalit Dashora for reporting the issue and providing the patch.
2021-03-27 16:20:31 +05:30
Suraj Khurana 92c13814b7 Improved: Improve all the service level error messages for missing required field for webtools component.
(OFBIZ-8717)
Thanks Ritesh Kumar for providing the patch.
2021-03-27 10:28:50 +05:30
Jacques Le Roux e3ec08bddc Fixed: Secure the uploads (OFBIZ-12080)
Fixes an issue reported by 赖涵 <1044309102@qq.com>: "Any file upload and delete
in latest Apache OFBiz"

It was a simple syntax error on my side
2021-03-26 19:13:07 +01:00
Jacques Le Roux 36f95557b7 Improved: Secure the uploads (OFBIZ-12080)
Improves the error message for the file name part
2021-03-24 19:14:32 +01:00
Wiebke Pätzold 42cc987fdb Improved: German translation for OrderShoppingList Labels (OFBIZ-12208) 2021-03-24 15:33:55 +01:00
Jacques Le Roux 75d3367d47 Improved: replaces java.rmi.server.UID by java.util.UUID
Not a big deal but better use java.util.UUID there.
2021-03-23 09:38:03 +01:00
Deepak Dixit 00b92f4a25 Removed extra space from eecas.xml file 2021-03-22 15:22:10 +05:30
Jacques Le Roux df69401118 Fixed: Upgrade Apache PDFBox to 2.0.23 because of CVE-2021-27807 and CVE-2021-27906 (OFBIZ-12205)
Currently we don't declare any dependency on PDFBox. I guess because it's used
as a 3rd party by another lib. Fortunately it's easily done.
2021-03-21 16:27:53 +01:00
Jacques Le Roux c1aa1056de Fixed: EditFinAccountReconciliations does not work (OFBIZ-12198)
Like for createGlReconciliation at OFBIZ-10675 it must be that this has never
been tested nor used by anybody. In relation with OFBIZ-10675, took me hours to
understand that it was only missing an INOUT instead of a simple IN :/
2021-03-18 10:25:47 +01:00
Jacques Le Roux 3ba8531595 Fixed: createGlReconciliation throws an error (OFBIZ-10675)
https://demo-trunk.ofbiz.apache.org/accounting/control/createGlReconciliation
When entering an amount and submitting the data an error is thrown.

jleroux:
EditFinAccountReconciliation form extends EditGlReconciliation. There
glReconciliationId and reconciledBalance fields are already present.
So adding them in EditFinAccountReconciliation  is wrong. On the other hand the
display of reconciledBalance is better in EditFinAccountReconciliation.
So I moved it there.

Thanks: Pierre Smits for report and Mohammed Rehan Khan for initial patch
2021-03-18 10:25:47 +01:00
Jacques Le Roux 738e5bdbfc Fixed: createGlReconciliation throws an error (OFBIZ-10675)
See accounting/control/EditFinAccountReconciliations?finAccountId=ABN_CHECKING

Removes the unwanted condition to include duplicate reconciledBalance filed
which was the cause of the issue.

Thanks: Pierre Smits for report, Mohammed Rehan Khan for the fix
2021-03-18 10:25:47 +01:00