Commit Graph
20 Commits
Author SHA1 Message Date
Jacques Le Roux 190e816364 Fixed: Add http to https redirect rule for ofbiz.apache.org (OFBIZ-10590)
This prevented to run the stable demo, hence the next, weirdly the trunk had
not this problem. Anyway better safe than sorry... Maybe related to Gradle
version or rather libs loaded?

The reason why the stable (and old) demos were not running is because the
EntitySaxReaderTests did not pass
2021-07-20 07:47:25 +02:00
Suraj Khurana 30f796146c Improved: Corrected some line is longer than 150 characters checkstyle issues. Also fixed some extra spaces and naming conventions related checkstyle issues.
(OFBIZ-11921)
2020-08-03 10:07:16 +05:30
Jacques Le Roux a0f7e77e77 Improved: Use Error.ftl everywhere it's not yet used (OFBIZ-11890)
Removes all error*.jsp reference, no longer used
2020-07-20 19:27:23 +02:00
holivier 1d41025097 Documented: ofbiz-plugins / msgGateway, remove docbook file without
migrate them to asciidoc (contain only a title)
(OFBIZ-11587)
2020-07-20 16:12:02 +02:00
Suraj Khurana b18669cddc Improved: Corrected checkstyle formatting issues, 'is preceded/not preceded with whitespace' for plugins component.
(OFBIZ-11874)
This fixes following checkstyle issues:
'{' is not preceded with whitespace.

'{' is not followed by whitespace.

'}' is not followed by whitespace.

'}' is not preceded with whitespace.

'typecast' is not followed by whitespace.

'try' is not followed by whitespace.

';' is preceded with whitespace.
2020-07-11 14:27:09 +05:30
Jacques Le Roux 208ef1b1be Improved: replaces module by MODULE everywhere 2020-04-06 12:14:23 +02:00
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
Mathieu Lirzin 1158664ba3 Fixed: Add XML declaration in “web.xml” files (OFBIZ-6993)
These declarations avoid SAXParseException traceback when parsing web.xml
the first time in WebappUtil.parseWebXmlFile

A schema conformance issue has been fixed in ecommerce “web.xml”.
2019-12-07 22:52:30 +01:00
Mathieu Lirzin af4b7336c9 Improved: Remove redundant "dtd" directory from classpath
(OFBIZ-11161)

the "dtd" directories are already present as resources distributed
inside OFBiz jar, so there is no need to augment the classpath to find
the XML schema inside those directories.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1865797 13f79535-47bb-0310-9956-ffa450edef68
2019-08-24 00:30:34 +00:00
Mathieu Lirzin 5ae9892e4e Improved: Inline ‘UtilGenerics#checkList’
(OFBIZ-11141)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1863492 13f79535-47bb-0310-9956-ffa450edef68
2019-07-20 16:22:24 +00:00
Jacques Le Roux 4ccff48b44 Improved: no functional change, adds missing license headers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1860902 13f79535-47bb-0310-9956-ffa450edef68
2019-06-09 13:08:08 +00:00
Mathieu Lirzin 3d63441ae7 Improved: Remove useless imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1860027 13f79535-47bb-0310-9956-ffa450edef68
2019-05-25 23:43:45 +00:00
Mathieu Lirzin 9354ac2997 Improved: Remove redundant type declarations
(OFBIZ-10937)

Since Java 1.7, when defining generic types it is unnecessary to
redefine those types in the constructor when it is already done in the
declared type.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1860025 13f79535-47bb-0310-9956-ffa450edef68
2019-05-25 23:42:00 +00:00
Rishi Solanki 15266ea769 Improved: Rename custom component for SMS gateway integration. Removed unused file.
(OFBIZ-10973)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1858323 13f79535-47bb-0310-9956-ffa450edef68
2019-04-28 12:05:58 +00:00
Rishi Solanki 26849529b3 Improved: Rename custom component for SMS gateway integration. Move the permission data to demo data as it should not be consider as seed.
(OFBIZ-10973)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1858318 13f79535-47bb-0310-9956-ffa450edef68
2019-04-28 11:49:56 +00:00
Rishi Solanki cad41b4496 Improved: Rename custom component for SMS gateway integration. Change more refereneces from msg91 to msggateway.
(OFBIZ-10973)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1858315 13f79535-47bb-0310-9956-ffa450edef68
2019-04-28 11:01:54 +00:00
Rishi Solanki 332686244b Improved: Rename custom component for SMS gateway integration. Change main decorator location and app bar display setting.
(OFBIZ-10973)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1858311 13f79535-47bb-0310-9956-ffa450edef68
2019-04-28 10:25:19 +00:00
Rishi Solanki 76d4d6b2a7 Improved: Rename custom component for SMS gateway integration. Rename files and references, also rename the webapp from msg91 to msggateway.
(OFBIZ-10973)
Thanks to Pritam and Swapnil Mane for this improvement

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1858308 13f79535-47bb-0310-9956-ffa450edef68
2019-04-28 10:18:00 +00:00
Rishi Solanki 1128cbc881 Improved: Rename custom component for SMS gateway integration. Rename files and references, few more will be coming after this commit.
(OFBIZ-10973)
Thanks to Pritam for this improvement

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1858307 13f79535-47bb-0310-9956-ffa450edef68
2019-04-28 07:19:00 +00:00
Rishi Solanki 442a358732 Improved: Rename custom component for SMS gateway integration. Rename the component name, will change the inner occrances in next commit.
(OFBIZ-10973)
Thanks to Jacques for notifying for this improvement

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1858279 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 13:47:10 +00:00