Commit Graph
33 Commits
Author SHA1 Message Date
Jacques Le Roux e73616caf1 Fixed: Secure the uploads (OFBIZ-12080)
2020/08/10 the OFBiz security team received a security report by Harshit Shukla
<harshit.shukz@gmail.com>, roughly it was (quoting part of it to simplify):

<<I have identified a Remote Code Execution (RCE) Vulnerability. The reason
behind this RCE is lack of file extension check at
catalog/control/UploadCategoryImage?productCategoryId=CATALOG1_BEST_SELL&pload_file_type=category>>

Using this post-auth RCE in OFBiz demos, Harshit was able to get some AWS
credentials by uploading a webshell (based on [0]).
By security, it was then decided by the Infra and OFBiz security teams to shut
down the demos.

After discussing the elements reported with Mark J Cox (VP of ASF security team)
we in common decided that no CVE was necessary.
2020-12-01 10:16:04 +01:00
Jacques Le Roux 5d6e9dc9d1 Fixed: Edit button(s) are shown for shipments received or shipped (OFBIZ-11788)
When a shipment has been received (purchase) or shipped (sales), the shipment
process should be concluded. And thus the shipment should not be editable anymore.

Thanks: Pierre Smits for report, Ankit Joshi for patch
2020-11-29 20:45:01 +01:00
James Yong e3e12ee487 Improved: No need to specify externalKeyParam in ofbizUrl calls (OFBIZ-11711)
Let ofbizUrl macro generates externalLoginKey when needed.

Thanks: Jacques for review
2020-05-17 20:37:48 +08:00
James Yong 05ffbd2817 Improved: Add 'controlPath' attribute to 'ofbizUrl' freemarker macro
(OFBIZ-11317)

Adding the controlPath attribute to allow the controls by ofbizUrl to support uri to other OFBiz web application.

Thanks: Jacques for the review
2020-01-12 22:25:50 +08:00
Pawan Verma 806b7093ad Improved: Replaced hard coded PDF instead of uiLabel on various places
(OFBIZ-11169)

Replaced hard coded PDF instead of uiLabel on various places use CommonUilable instead.

Thanks: Komal Dayle for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1865853 13f79535-47bb-0310-9956-ffa450edef68
2019-08-24 15:05:25 +00:00
Suraj Khurana 8691800f38 Improved: Use code128 instead of code39 for barcode generation.
(OFBIZ-10896)
Currently, we are using code39 to generate barcodes but there are some limitations of code39 as it only able to encrypt letters from A to Z, digits from 0 to 9 and an additional set of special characters – “. $ % + – / *”.
Thanks Pawan Verma for reporting, analysis and providing the patch. Thanks everyone else for providing their inputs during discussion on Dev ML.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858242 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 06:15:14 +00:00
Suraj Khurana 75df175dc2 Fixed: Force complete Purchase Order button throws error.
(OFBIZ-9912)
Thanks Priya Sharma for reporting and Amit Gadaley for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847352 13f79535-47bb-0310-9956-ffa450edef68
2018-11-24 09:50:04 +00:00
Nicolas Malin 5dff2f648a Implemented: Calculate estimated shipment delivery time
(OFBIZ-10372)
Currently when you pass an order in ofbiz you can select the shipment method to delivery finish good and obtains an amount cost but you have nothing to indicate how the delivration will during.
We have a good example with ship by plane or boat and for road the time is different between the Portugal to Spain and Portugal to Slovenia.

With this information, we can planned the estimated delivery date with the estimated date to produce finish good and the time to delivery them

To fill this gap, we introduce a new entity ShipmentTimeEstimate modelled as ShipmentCostEstimate to define the estimated time for a shipment method, a carrier and two geo location.
During the entry order process, if you select a shipmentMethod, a carrier and geoIds that match a ShipmentTimeEstimate, when you create the order, OFBiz try to resolve the an estimated delivery date from estimatedShipDate, shipBeforeDate, shipAfterDate or now.

Thanks Leila Mekika for initialize this works, Gil Portenseigne for improve the solution and Suraj Khurana for the review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1840579 13f79535-47bb-0310-9956-ffa450edef68
2018-09-11 14:36:08 +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
Deepak Dixit 3093b5a476 Improved: Used input type=submit instead of anchor and javascript code to submit form where applicable.
(OFBIZ-10482)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836905 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 13:27:22 +00:00
Deepak Dixit d71d1c4617 Improved: Removed unused code, input type image was used to submit form usign onClick event. These code was from pre-apache era
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836894 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 12:26:31 +00:00
Deepak Dixit ef0c694a46 Improved: Use application/javascript instead of text/javascript
(OFBIZ-10492)
Replace text/javascript with application/javascript in all the script tag

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836886 13f79535-47bb-0310-9956-ffa450edef68
2018-07-28 10:51:52 +00:00
Deepak Dixit 397628ba7d Improved: Remove use of deprecated language attribute from script tag
(OFBIZ-10491)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1836545 13f79535-47bb-0310-9956-ffa450edef68
2018-07-24 11:26:23 +00:00
Deepak Dixit 7e19de9966 Improved: Replace all delegator findByAnd and findOne method calling by EntityQuery methods (OFBIZ-10029)
Applied slightly modified patch, rearrange import properly, 
Thanks Suraj Khurana for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818003 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 12:03:17 +00:00
Deepak Dixit 63258e90f8 Reverted r#1817989, workign fine locally, reverted for now will check and commit again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817998 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 10:42:32 +00:00
Deepak Dixit d1f85a7e5d Improved: Replace all delegator findByAnd and findOne method calling by EntityQuery methods (OFBIZ-10029)
Applied slightly modified patch, rearrange import properly, 
Thanks Suraj Khurana for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817989 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 09:21:33 +00:00
Deepak Dixit ac93a4235f Improved: Moved some ftl file to correct location, found while code review.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801464 13f79535-47bb-0310-9956-ffa450edef68
2017-07-10 13:07:27 +00:00
Deepak Dixit 14f9c7331d Improved: Following uiLabels should move from ProductUiLabels.xml to CommonEntityLabels.xml. (OFBIZ-9408)
ProductShipmentUomAbbreviation_LEN_in
    ProductShipmentUomAbbreviation_WT_g
    ProductShipmentUomAbbreviation_WT_kg
    ProductShipmentUomAbbreviation_WT_lb
    These labels should be written in similer pattern as other labels of "Uom" entity are written in CommonEntityLabels.xml, for example :
    ProductShipmentUomAbbreviation_LEN_in will be written as
    Uom.abbreviation.LEN_in
    <entityName>.<fieldName>.<PrimaryKey>

Thanks Renuka for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801281 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 11:36:50 +00:00
Arun Patidar 69c7d479bc Improved: Inconsistent String Comparisons. (OFBIZ-9254).
Thanks Devanshu Vyas for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801280 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 11:33:19 +00:00
Arun Patidar 8763342f1e Improved: Inconsistent String Comparisons. (OFBIZ-9254).
Thanks Devanshu Vyas for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801268 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 09:15:03 +00:00
Deepak Dixit 858183cf31 Improved: Improper UI of View and Edit button bar on shipment page, this was broken on flatgray theme.
(OFBIZ-7486)

Thanks Avnindra and Yash for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766864 13f79535-47bb-0310-9956-ffa450edef68
2016-10-27 18:27:13 +00:00
Pranay Pandey 9b07370518 Improved: Product: Remove inline js for toggleAll, checkToggle and selectAll calling from ftls
(OFBIZ-7896)

Remove inline js for toggleAll, checkToggle and selectAll calling from ftls in Product component, instead added class="selectAll" on parent checkbox element for select all functionality.

Thanks: Amardeep Singh Jhajj for the contribution.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761182 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 10:36:33 +00:00
Ashish Vijaywargiya 718f45cc7a Applied patch from jira issue - OFBIZ-8066 - Clean up commented out code in Free Marker Template for Product. Thanks Aman for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759144 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 06:28:52 +00:00
Deepak Dixit 92a09b96a4 (OFBIZ-7427) Applied patch from jira issue
================================
OrderId, PartId showing multiple times in ReceiveInventoryAgainstPurchaseOrder screen.
Also fixed markup of Receive Inventory Against PurchaseOrder scrren.
================================
Thanks Renuka for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757963 13f79535-47bb-0310-9956-ffa450edef68
2016-08-27 07:58:07 +00:00
Jacques Le Roux e151318b96 Deleted ShipmentScaleApplet.java as POS is now in attic. Thanks to Mridul for the reminder at "Delete stale java files from applications and framework" - https://issues.apache.org/jira/browse/OFBIZ-7529
Completes r1754598

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1754599 13f79535-47bb-0310-9956-ffa450edef68
2016-07-30 08:40:28 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Divesh Dutta e84233e902 [OFBIZ-7583] Facility: Checkbox and Radio buttons should get selected on clicking upon their labels. Thanks Mohammad Kathawala for your patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751345 13f79535-47bb-0310-9956-ffa450edef68
2016-07-04 16:59:06 +00:00
Deepak Dixit 34b586d227 (OFBIZ-6144) Applied patch jira issue.
===========================================
Convert FindShipment ftl to form widget
===========================================

Thanks  Christian Carlow and Pawan for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750240 13f79535-47bb-0310-9956-ffa450edef68
2016-06-26 09:18:56 +00:00
Ashish Vijaywargiya d03caf808b Applied patch from jira issue - OFBIZ-7358 - In Facility find shipment button doesn't work on first click.
Thanks Aman and Rahul Bhammarker for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1750114 13f79535-47bb-0310-9956-ffa450edef68
2016-06-24 14:12:10 +00:00
Pranay Pandey 86e686d1a9 [OFBIZ-7170] Improvements in 'Find Shipment' screen to make it consistent with other find screens.
- Moved Create and Find Shipment button in screenlet-body
- Use Like operator for 'Shipment Id' search constraint.

Thanks Chandan Khandelwal for suggesting this improvement and Vaibhav Jain for providing the patch.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1746809 13f79535-47bb-0310-9956-ffa450edef68
2016-06-04 11:20:19 +00:00
Divesh Dutta 9af7411803 [OFBIZ-7060] Fixed bug: Purchase Return shipments not allowing to select received inventory against the Product that need to be returned
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1746783 13f79535-47bb-0310-9956-ffa450edef68
2016-06-04 08:34:26 +00:00
Deepak Dixit 09ca38b7f6 (OFBIZ-7164) Fix typo in freemarker else tag.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1746691 13f79535-47bb-0310-9956-ffa450edef68
2016-06-03 08:59:56 +00:00
Deepak Dixit abeaeb2a58 (OFBIZ-6821) relocate .ftl files in the product component
Thanks Pierre for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1740477 13f79535-47bb-0310-9956-ffa450edef68
2016-04-22 10:34:35 +00:00