Commit Graph
4365 Commits
Author SHA1 Message Date
Pierre Smits 071240205f Fixed: Application 'ismgr' doesn't show up
(OFBIZ-11704)

fixed: app-bar-display (from 'false' to 'true'
added: OFBTOOLS to base-permission
2020-05-14 14:13:01 +02:00
Pawan Verma b7baeb2b5f Fixed: Improve the buttons on edit credit card page
(OFBIZ-10975)

Thanks: Sourabh and Suraj for your contribution.
2020-05-10 14:11:38 +05:30
Pierre Smits bd50c1417b Improved: move demo data from optional plugin to base application
(OFBIZ-6110)

removed: marketing component related data in ecommerce plugin
removed: reference to marketing demo data in component.xml of ecommerce plugin
2020-05-05 15:51:20 +02:00
Pierre Smits c46a9c4db2 Improved: demo data regardng rental assets
(OFBIZ-10862)

updated fixed assets
2020-05-05 13:42:55 +02:00
Jacques Le Roux 2c98bc3835 reverted: CLONE - Use only HTTPS in OFBiz
(OFBIZ-11643)

Reverted, this needs more work
2020-05-04 13:22:10 +02:00
Jacques Le Roux 40143e6dba Fixed: CLONE - Use only HTTPS in OFBiz
(OFBIZ-11643)

When doing OFBIZ-6849 I forgot to take care of the https attribute of the
security element used in controllers.

It's not used anymore since we used HTTPS everywhere but in request listed in
http.request-map.list property of url.properties. It's even enforced by HSTS for
requests that are not listed in this property.

This removes the https attribute and removes its usage in in controllers.
2020-05-04 13:10:29 +02:00
Pawan Verma f572e74e7e Improved: Used utility provided by OFBizTestCase class for userLogin instead of fetching from DB test cases also removed unused fetching of userLogin in some cases
(OFBIZ-11618)
2020-04-30 22:01:29 +05:30
Jacques Le Roux ba246299d9 Improved: Convert testSendOrderChangeNotification to Groovy
(OFBIZ-11233)

In the XML version we were sending note (Test note) and comments
(Test Comments) as well in serviceCtx, but in the converted version we are
not sending these fields.

Thanks: Suraj for spotting it and alerting me on dev ML
2020-04-27 18:47:12 +02:00
Jacques Le Roux 1cacb15000 Improved: Update build.gradle to the latest dependencies
(OFBIZ-11603)

I tried to update to Groovy 3 but got a compile issue with commons-cli.
I did not dig further.
2020-04-21 12:00:32 +02:00
Jacques Le Roux 208ef1b1be Improved: replaces module by MODULE everywhere 2020-04-06 12:14:23 +02:00
Jacques Le Roux aa26d8f0cf Adds the meta CSRF token for Ajax 2020-04-04 18:22:26 +02:00
Jacques Le Roux cf272a9750 Improved: POC for CSRF Token
(OFBIZ-11306)

There is no need to change it in common-controller because, apart the ecommerce
application, there are no applications that requires an anonymous flow.
It should be only changed in ecommerce controller.
2020-04-04 18:22:26 +02:00
Pawan Verma 6b0c188f5a Fixed: Product Images not rendering on One Page Checkout
(OFBIZ-11400)

Thanks: Archana Asthana for the report and Devanshu Vyas for the patch.
2020-03-28 15:47:12 +05:30
Jacques Le Roux 492dcb9208 Improved: fixes a typo due to OFBIZ-11030
Thanks: Pierre Smits for spotting it
2020-03-26 16:11:09 +01:00
Jacques Le Roux 417c3e4243 Improved: formatting
Implemented:
Documented:
Completed:
Reverted:
Fixed:

(OFBIZ-)
Explanation
Thanks:
2020-03-26 16:09:22 +01:00
Jacques Le Roux a8d3781cc6 Fixed: Convert DimensionServices.xml minilang to groovy
(OFBIZ-10948)

Now correctly creates the CurrencyDimension using currency.uomId
No need for delegator.setNextSeqId(), looking at (now removed)
DimensionServices.xml confused me.

Thanks: Pierre Smits for report
2020-03-21 19:36:39 +01:00
Pawan Verma 38112fb346 Fixed: prepareProductDimensionData does not load correct fields in ProductDimension
(OFBIZ-11465)

Thanks: Pierre Smits for your contribution.
2020-03-21 17:23:05 +05:30
Jacques Le Roux d267d161e0 Fixed: Ensure that the SameSite attribute is set to 'strict' for all cookies.
(OFBIZ-11470)

As reported by OWASP ZAP:
A cookie has been set without the SameSite attribute, which means that the
cookie can be sent as a result of a 'cross-site' request. The SameSite attribute
is an effective counter measure to cross-site request forgery, cross-site script
inclusion, and timing attacks.

The solution was not obvious in OFBiz for 2 reasons:

1. There is no HttpServletResponse::setHeader. So we need to use a filter
  (SameSiteFilter) and even that is not enough because of 2:
2. To prevent session fixation we force Tomcat to generates a new jsessionId,
ultimately put in cookie, in LoginWorker::login. So we need to add a call to
SameSiteFilter::addSameSiteCookieAttribute in
UtilHttp::setResponseBrowserDefaultSecurityHeaders.
2020-03-20 17:51:00 +01:00
Jacques Le Roux cca9d4d783 Improved: "auth" should be true for all the request url used for Application
components

(OFBIZ-4956)

Put back getAssociatedStateList requesdt in ecommerce to auth="false" to allow
the anonymous flow

Thanks: Deepak for spotting an reporting the issue (twice, inadvertently I
removed the complete file, I have no ideas how I did that :/)
2020-03-17 11:38:52 +01:00
Jacques Le Roux 350571deaa Fixed: Convert DimensionServices.xml minilang to groovy
(OFBIZ-10948)

There is a bug with loadCurrencyDimension in DimensionServices.groovy
It shows when running quickInitDataWarehouse.

The problem is this Minilang expression is missing in DimensionServices.groovy:
<sequenced-id sequence-name="CurrencyDimension" field="currencyDim.dimensionId"/>

Adding
  delegator.setNextSeqId(currencyDim)
is enough.
2020-03-17 08:49:05 +01:00
Jacques Le Roux 9f87efe7ba Improved: "auth" should be true for all the request url used for Application
components

(OFBIZ-4956)

Put back getAssociatedStateList requesdt in ecommerce to auth="false" to allow
the anonymous flow

Thanks: Deepak for spotting an reporting the issue
2020-03-16 11:31:48 +01:00
Jacques Le Roux e4388ba7c4 Improved: no functional change
Follows the "How to apply the Apache License to your work" section at
https://www.apache.org/licenses/LICENSE-2.0
2020-03-14 12:33:13 +01:00
Jacques Le Roux e72e1348c1 Improved: "auth" should be true for all the request url used for Application
components

(OFBIZ-4956)

Currently there are some URLs present in application components with
auth="false". So anyone can hit these URLs and access these resources without
authorization.

I think all the URLs should be secure with auth="true"

Thanks: Amardeep Singh Jhajj for report and initial fix
2020-03-14 08:49:54 +01:00
Jacques Le Roux 7a0386a68c Implemented: have a license
(OFBIZ-11451)

Fixes missing sections in LICENCE and adds NOTICE

I have also removed the plugins prefix in "URIs" because we are under plugins

Thanks: Jacopo for spotting missing sections
2020-03-14 08:29:22 +01:00
Michael Brohl b50d949376 Improved: Convert FactServices.xml minilang to groovy.
(OFBIZ-11030)

Thanks Pierre Smits for reporting and Sebastian Berg for providing the
patch.
2020-03-13 17:44:51 +01:00
Michael Brohl d5731824c2 Implemented: Remove the user login security question.
(OFBIZ-11244)

Thanks Wiebke Pätzold for providing the patch.
2020-03-13 17:35:45 +01:00
Michael Brohl 652050c9b9 Improved: Added Eclipse bin folder to gitignore. 2020-03-13 17:34:48 +01:00
Pierre Smits 57d709bc55 Implemented: have a license
(OFBIZ-11451)
2020-03-13 15:37:45 +01:00
Jacques Le Roux 4afe6031a7 Merge pull request #7 from priyasharma1/OFBIZ-10948
Improved: Convert DimensionServices.xml minilang to groovy (OFBIZ-10948)
2020-03-09 16:36:42 +01:00
Priya Sharma d5d0623e55 Update: The entity operator as the XML service used these instead of the current ones.
- Thanks Jacques for the catch. (OFBIZ-19048)
2020-03-09 20:45:11 +05:30
Priya Sharma fd902848e8 [Improved] : Converted the Dimension Service to groovy
- Deleted the old mini-lang service file
- Updated the service definitions with the new groovy methods
- Added a new file with the groovy implementation (with minor enhancement) of all the Dimension services
As the services deal with lists, there could be scenarios where the enterprise comprises of several thousand products, and so used the EntityListIterator instead of fetching the entire list.
2020-03-06 17:31:04 +05:30
Suraj Khurana b678615904 Improved: Added all the service level error messages for missing required field for plugins/ebay component.
(OFBIZ-7471)

Thanks Jagpreet for reporting and Anushi Gupta for the patch.
2020-03-02 12:56:13 +05:30
Suraj Khurana 2de8058af8 Fixed: Unable to remove items from onePageCheckout screen of e-commerce.
(OFBIZ-10800)

Thanks Arpit Mor for reporting and Dhaval Wagela for the patch.
2020-03-02 12:18:52 +05:30
Jacques Le Roux 6d031fe2db Merge pull request #6 from PierreSmits/OFBIZ-10561
Improved: AssetMaint labels (OFBIZ-10561
2020-02-28 15:44:58 +01:00
akash 019cc010fc Improvement: Dropdown/facet at Reports under 'Sale Orders By Channel' is not working fine
(OFBIZ-10624)

Thanks, Ritesh Kumar and Dikpal Kanungo for your contribution.
2020-02-22 18:33:02 +05:30
Suraj Khurana a73712b17a Fixed: Billing Information UI getting distorted.
(OFBIZ-10980)

Thanks Padmavati Rawat for reporting and Sourabh Punyani for the patch.
2020-02-22 17:14:19 +05:30
akash 21e4a7299d Improvement: Print and Export of ViewFacilityInventoryByProduct report into new window
(OFBIZ-10526)

Thanks, Sourabh Punyani and Pierre Smits for your contribution.
2020-02-22 16:48:26 +05:30
Jacques Le Roux a42ac97ce9 Fixed: replaceFirst sensible to variable pattern
(OFBIZ-11396)

When using variable pattern with replaceFirst you may cross issues if the
pattern contains specific tokens. For instance on Windows with the path
"C:\projectsASF\Git\ofbiz-framework/" you have inside the token "\p" which has
a special meaning.
2020-02-22 07:43:13 +01:00
akash c6067e44cc Improvement: Quantity and Add to Cart button showing twice on Compare Products page
(OFBIZ-10665)

Thanks, Ritesh Kumar and Dikpal Kanungo for your contribution.
2020-02-22 11:31:58 +05:30
Pierre Smits 8173afed0f Improved: AssetMaint labels
(OFBIZ-10561)

removed: unused labels
2020-02-20 11:44:03 +01:00
Jacques Le Roux 7525177800 Improved: no functional change
This file inadvertently slipped in with a previous commit, it's not needed.
2020-02-19 14:07:04 +01:00
Jacques Le Roux e5e7567798 Fixed: The "stream" request-map in ecommerce and commonext controllers
requires authentication
(OFBIZ-11349)

Thanks: Michael for reporting a possible issue when only commenting the "stream"
request-map in commonext controller. And Jacopo to suggest to require
authentication (after suggesting to comment out)

It should be also noted that when the CSRF defense implementation will be in
place, all XSS vulnerabilities w/o authentication will not longer be possible.
Because then all requests shall contains a CSRF token.
2020-02-19 13:55:35 +01:00
Jacques Le Roux c004c8f00b Improved: Temporarily comment out the "stream" request-map in ecommerce
controller for security reason
(OFBIZ-11348)

No functional change, simply amend the comment
2020-02-14 10:22:15 +01:00
Jacques Le Roux 57de034e1c Fixed: Temporarily comment out the "stream" request-map in ecommerce controller
for security reason
(OFBIZ-11348)

A vulnerability has been reported to the OFBiz security team. We were able to
quickly and quietly fix it in supported versions, but in the ecommerce component.
To be able to release the 17.12.01 version with this vulnerability fixed we need
to temporarily comment out the "stream" request-map in ecommerce controller.
We will later fix the specific issue in ecommerce to put back the functionnalities
allowed by the "stream" request-map in ecommerce controller.
2020-02-13 06:50:51 +01:00
Jacques Le Roux dbde1204e9 Improved: no functional change
This was added for OFBIZ-9198 but was superfluous since the same is already in
the included ecommerce controller
2020-02-12 16:26:43 +01:00
Aditya Sharma 6f17e2253e Merge pull request #5 from adityasharma7/OFBIZ-11333
Implemented: Cookie Consent In E-Commerce
2020-02-11 13:56:15 +05:30
Aditya Sharma 031fb51255 Implemented: Cookie Consent In E-Commerce
(OFBIZ-11333)
Implemented internationalisation by initialising the plugin in header.ftl and using uiLabels for title, message and labels.
Thanks Michael Brohl for your inputs
2020-02-11 11:21:32 +05:30
Aditya Sharma e8021b7ede Implemented: Cookie Consent In E-Commerce
(OFBIZ-11333)
The Cookie Law is a piece of privacy legislation that requires websites to get consent from visitors to store or retrieve any information on their computer, smartphone or tablet. It was designed to protect online privacy, by making consumers aware of how information about them is collected and used online, and give them a choice to allow it or not.

The EU Cookie Legislation began as a directive from the European Union. Some variation on the policy has since been adopted by all countries within the EU.

The EU Cookie Legislation requires 4 actions from website owners who use cookies:
1. When someone visits your website, you need to let them know that your site uses cookies.
2. You need to provide detailed information regarding how that cookie data will be utilized.
3. You need to provide visitors with some means of accepting or refusing the use of cookies in your site.
4. If they refuse, you need to ensure that cookies will not be placed on their machine.

Used bsgdprcookies plugin to implement the feature. Thanks Deepak Nigam for initiating and providing initial patch. Thanks Deepak Nigam, Pierre Smits, Michael Brohl, Jacques Le Roux and Swapnil M Mane for inputs.
2020-02-10 11:46:58 +05:30
Aditya Sharma 985840046a Improved: no functional change
Added .gitignore file
2020-02-10 10:42:34 +05:30
Nicolas Malin 04b2c4c28a Fixed: Error when initialize billFromParty from groovy context in loadSalesOrderItemFact service
After the conversion from bsh to groovy, the script that resolve
billFromParty need to propage the value on context Map to be available
on minilang context
2020-02-06 13:03:18 +01:00