Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 2fe76bead8 Improved: Misc trivial changes done while working on others issues 2020-11-11 20:43:59 +01:00
Jacques Le Roux 07cb19c0b1 Improved: Reflected XSS in content component (OFBIZ-11840)
Adds some more case and explains things better, no backport
2020-11-11 20:30:11 +01:00
Jacques Le Roux 60dd569529 Fixed: Handle special characters like single quote in Freemarker template (prevent encoding) (OFBIZ-12029)
A such case was reported by Amit Gadaley at
https://markmail.org/message/ybyjkngdiwrywut6
The solution is to use StringUtil.wrapString() to prevent encoding.
2020-11-10 11:09:46 +01:00
Jacques Le Roux 367b46c95a Improved: updates the LICENSE file date.format-1.2.3 no longer present
It has been removed with (OFBIZ-12040)
2020-11-08 17:23:20 +01:00
Jacques Le Roux dffaa1199e Update README.adoc
Fixes a typo
2020-11-08 17:16:08 +01:00
Jacques Le Roux 9a6ed0279b Fixed: NotSerializableException using uploadPartyContentFile service (OFBIZ-12050)
Removes a warning:

UtilMisc.java:202: warning: [rawtypes] found raw type: Iterator
Iterator itr = arrayList.iterator();
^
missing type arguments for generic class Iterator<E>
where E is a type-variable:
E extends Object declared in interface Iterator
2020-11-06 11:27:16 +01:00
Jacques Le Roux ae5d3b4045 Fixed: NotSerializableException using uploadPartyContentFile service (OFBIZ-12050)
This error appears after trying to upload a file to party content:

2020-11-06 07:48:22,488 |jsse-nio-8443-exec-7 |RequestHandler                |I|
Sending redirect to:
[https://localhost:8443/partymgr/control/viewprofile?partyId=admin].
2020-11-06 07:48:29,288 |jsse-nio-8443-exec-7 |UtilObject                    |E|
null
java.io.NotSerializableException: org.apache.commons.fileupload.disk.DiskFileItem
2020-11-06 10:59:58 +01:00
Jacques Le Roux 0e8802ae6e Updates tasks.checkstyleMain.maxErrors from 503 to 502 2020-11-01 18:35:03 +01:00
Jacques Le Roux 21e5f215f1 Fixed: Sorting of lists generates undesired results (OFBIZ-8302)
Workaround for an issue reported by
MacroFormRendererTest::renderSortFieldUsesQueryString
Put in with "MacroFormRenderer refactoring" (OFBIZ-11456)

I put a FIXME as I'm not sure how to handle it in a reasonable time :/
2020-11-01 17:43:07 +01:00
Jacques Le Roux f2632b90c5 Fixed: Sorting of lists generates undesired results (OFBIZ-8302)
Fixes an issue reported by UtilHttpTest::emptyParameterMap

More to come for MacroFormRendererTest::renderSortFieldUsesQueryString

Both put in with "MacroFormRenderer refactoring" (OFBIZ-11456)
2020-11-01 10:47:31 +01:00
Jacques Le Roux cd242ea34c Fixed: Sorting of lists generates undesired results (OFBIZ-8302)
For this issue (OFBIZ-8302) I reverted the point 1 of
http://svn.apache.org/viewvc?view=revision&revision=1759555

As reported by Alvaro Munoz from GH security team it's not sufficient:
<<the second part of the fix was not effective, since the attacker can close the
raw string context with a double quote and write a new attribute or even close
the macro tag and write arbitrary FreeMarker code.>>

So this removes the 2nd part and add better solution to fix the OFBIZ-8302 issue
The solution is to encode only the QueryString and to handle it correctly in
UtilHttp::getParameterMap. I must say it was not a sinecure!
2020-10-31 20:21:32 +01:00
holivier 4a41f0fde5 Documented: migration to help system using asciidoc files (OFBIZ-11587)
commit correction for <Remove all related help docbook files>
* reAdd a contentDocData for main contentId and portletCategory
* remove from ofbiz-component of each application line about helpData which are removed
2020-10-27 11:20:09 +01:00
holivier e6d77fdaa3 Documented: Help system using asciidoc files (OFBIZ-11693)
now OFBiz uses only help link to asciidoc user-manual (no more using docbook files)
2020-10-26 17:34:04 +01:00
holivier 19d5435c97 fixed: duplicate webtools include help from developer-manual to user-manual for help link work
when there will be a general glossary, duplication will not be necessary
2020-10-26 17:34:04 +01:00
holivier 37c075b1f5 Documented: migration to help system using asciidoc files (OFBIZ-11587)
remove in plugin creation gradle task, files related to docbook help
2020-10-26 17:34:04 +01:00
holivier 302bc0eb15 Documented: migration to help system using asciidoc files (OFBIZ-11587)
Remove all related help docbook files
2020-10-26 17:34:03 +01:00
Jacques Le Roux d56e3977e9 Improved: Upgrade Gradle to V6.5.1 (OFBIZ-11946)
I forgot to update the shasums in init-gradle-wrapper.sh
2020-10-13 11:04:26 +02:00
James Yong 127cd86da7 Improved: Open Screen file from browser (OFBIZ-12038)
Refactoring
2020-10-11 09:18:58 +08:00
James Yong a983c7741c Improved: Open Form Widget (Single Type) source file from browser (OFBIZ-12041)
Add function to open the corresponding Form Widget file with IDE
when the named border is clicked from browser.
Dependent on widget.dev.namedBorder and widget.dev.cmd.openSourceFile properties.

Thanks Jacques for review
2020-10-11 08:37:39 +08:00
James Yong 0987c11ca7 Improved: Remove date.format-1.2.3-min.js (OFBIZ-12040)
This Javascript library is not use in the project.
2020-10-10 19:36:24 +08:00
James Yong cbbcb14119 Improved: Open Screen file from browser (OFBIZ-12038)
Refactoring
2020-10-10 18:06:14 +08:00
James Yong 0088af8b90 Fixed: Open Screen file from browser (OFBIZ-12038)
Fix regresssions in integration tests
2020-10-10 16:29:41 +08:00
James Yong 5fca2ed58d Improved: Open Screen file from browser (OFBIZ-12038)
Refactoring
2020-10-10 12:39:43 +08:00
Jacques Le Roux 51dbd9399f Fixed: Open FTL File from browser (OFBIZ-12018)
Adds missing ASL2 header
2020-10-08 12:51:15 +02:00
James Yong 0e40d9f091 Improved: Open Screen file from browser (OFBIZ-12038)
Allow the opening of screen definition that contributed to the web page from the browser. Command to open the file is set at widget.dev.cmd.openSourceFile.

Thanks Jacques for review.
2020-10-08 15:28:43 +08:00
holivier cf7164fc64 fixed: createPartyGroupRoleAndContactMechs service not working (OFBIZ-11986)
Service is used for create employee service, and email address is not mandatory, so emailAddressContext should be empty if parameters.emailAddress is empty.

Correction done is to call createPerson before creating emailAddressContext to be able to put set partyId in the if not empty parameters.emailAddress
2020-10-07 11:45:24 +02:00
Jacques Le Roux 252c227ad0 Fixed: variant product selection trashes image (OFBIZ-12019)
The variant products' images are being saved in the variable IMG encoded as urls,
thus selecting the variant triggers an image override with an unsuitable file name.

Thanks: Alex Bodnaru
2020-10-06 15:18:49 +02:00
holivier e934b2bd13 fixed: title-logo-image should be in header so without blank line
Now OFBiz-Logo is printed in pdf
2020-10-06 14:02:48 +02:00
Jacques Le Roux 6a2c26a62d Improved: Asciidoc Image directory convention for plugins and components (OFBIZ-12035)
I'm not sure in which circumstances but I still find some files in
/docs/asciidoc/images/

It's not a big deal but showing in Git when committing
Better prevent that so I ignore the dir by putting it in .gitignore
2020-10-06 12:23:18 +02:00
Jacques Le Roux a8b252f7dd Reverted: "description" and "comment" datatypes unnecessarily limited to 255 char (OFBIZ-12021)
This reverts commit 8736162c74.

We have test integration issues to fix

Due to TortoiseGIt, something weird happened, confused me to revert the revert :/
2020-10-03 13:41:41 +02:00
Jacques Le Roux 8736162c74 Reverted: "description" and "comment" datatypes unnecessarily limited to 255 char (OFBIZ-12021)
This reverts commit 686f01c8cf.

We have test integration issues to fix
2020-10-03 13:30:15 +02:00
Jacques Le Roux 8ef3b54c22 Reverted: "description" and "comment" datatypes unnecessarily limited to 255 char (OFBIZ-12021)
This reverts commit 686f01c8cf.

We have test integration issues to fix
2020-10-03 13:28:10 +02:00
James Yong 6fa16710bc Fixed: Open FTL File from browser (OFBIZ-12018)
Fix named border not properly clean up.
2020-10-03 17:51:15 +08:00
Jacques Le Roux 686f01c8cf Improved: "description" and "comment" datatypes unnecessarily limited to 255 char (OFBIZ-12021)
"Description" and "comment" fields are restricted to 255 char.

However after some research I found that all the supported databases support
longer then 255 char
I would expect users to want to write more then 255 char in a comment
(I know I personally can).

A discussion has been started on dev ML:
https://markmail.org/message/7utrgejc2c44i37u

Also adds a note in DATAMODEL_CHANGES.adoc

Thanks: ddev
2020-10-03 11:26:27 +02:00
James Yong 582e6c6ac9 Improved: Open FTL File from browser (OFBIZ-12018)
Comment + Rename method
2020-10-03 11:08:14 +08:00
holivier 7c7eae2f84 Improved: Error messages when generating HTML and PDF file from AsciiDoc files (OFBIZ-11893)
sy-impersonation.adoc minor correction,
* imagesDir cannot be out of asciidoc directory because content of it s copied in build directory when document is generated
* internal link to go to sub-section security was wrong because securty automatic anchor is generate for general security chapter
2020-10-02 18:23:14 +02:00
holivier a10d932836 Improved: change asciidoc Image directory convention for plugins (OFBIZ-12035)
* modification in gradle generateOfbizDocumentation task to copy the
image/${components.name} subdirectory in the general
docs/asciidoc/images/ directory before generation
and remove it after.
* correction in generateAllPluginsDocumentation to put copy of OFBiz-Logo in doFirst to avoid it's run during gradle Configure project
2020-10-02 17:03:30 +02:00
James Yong aa8ae4b01e Improved: Move SeoConfigUtil.java from Product to Widget component (OFBIZ-12031)
Help to remove dependency of product component from widget component
An afterthought: webapp component seems better for SeoConfigUtil.java than widget component.

Thanks Jacques for review
2020-10-02 22:57:15 +08:00
James Yong 10fbedbce0 Fixed: Open FTL File from browser (OFBIZ-12018)
Not able to open source file when clicking on named border in ecomseo landing page

Thanks Jacques for reporting
2020-10-02 20:33:44 +08:00
holivier ee20e6c715 Improved: solve Error messages when generating HTML and PDF file from
AsciiDoc files (OFBIZ-11893)

Add the correct set when use icon, to avoid INFO message
2020-10-01 16:28:18 +02:00
holivier f2f43bc8d1 Improved: solve Error messages when generating HTML and PDF file from
AsciiDoc files (OFBIZ-11893)

* Add allow-uri-read when generated html and pdf to be able to allow
image from external uri, it's used for apache2.0 image;
Generalize usage of apache2.0 image for all main documents
* Put Trunk Version in gradle generation parameter and so remove in all
documents (to avoid Version unspecified)
2020-10-01 16:27:56 +02:00
Jacques Le Roux 70ff1c5006 Fixed: createPartyGroupRoleAndContactMechs service not working (OFBIZ-11986)
As Akash Jain reported:

<<While researched on ticket OFBIZ-11896 identified that groovy version of
createPartyGroupRoleAndContactMechs service (converted from mini lang at rev
8af7cf8775 ) is not working.
Identify these two reasons,
    resolvePartyGroupMap called incorrectly
    resolvePostalAddressMap and resolveTelecomNumberMap implemented incorrectly
as 'postalAddress' and 'telecomNumber' map processor
not available into PartyMapProcs.xml.

There may be more reasons along with these two reasons.>>

He was so true to say the later!

There are also some intentionally or automated formattings.

Thanks: Akash for report, Sourabh Jain for shy tentative :)
2020-09-30 14:28:31 +02:00
Jacques Le Roux 8675993ac3 Fixed: Geo Location functionality of facility contact information screen is not working (OFBIZ-7343)
Long ago I spotted an issue:

<<In French I got this js error message in console (else nothing apears anywhere)

SyntaxError: missing ) after argument list
...=9000&partyId=Company', 'Adresse d'expédition - Géolocalisation', '450', '550')

It's due to the quote in "Adresse d'expédition"
We could though commit by escaping the popUptitle, but I also think we should
change from the popup (and everywhere the same is used) to a modal layered
window.>>

Turned out that:
<<I had a quick look to see if we could not use a modal layer instead of a popup,
but it's not obvious to use modal layer from Freemarker. This does not mean that
it can't be done... I'll see later...>>

Here is a late workaround :)
2020-09-30 14:28:31 +02:00
Jacques Le Roux 7b01534208 Fixed: createPartyGroupRoleAndContactMechs service not working (OFBIZ-11986)
While researched on ticket OFBIZ-11896 identified that groovy version of
createPartyGroupRoleAndContactMechs service (converted from mini lang at rev
8af7cf8775 ) is not working.

Identify these two reasons,
    resolvePartyGroupMap called incorrectly
    resolvePostalAddressMap and resolveTelecomNumberMap implemented incorrectly
as 'postalAddress' and 'telecomNumber' map processor not available into PartyMapProcs.xml.

There may be more reasons along with these two reasons.

Thanks: Akash Jain for report, Sourabh Jain for incomplete patch (missed 2nd
point from Akash
2020-09-30 14:28:30 +02:00
James Yong f15c037e07 Fixed: Open FTL File from browser (OFBIZ-12018)
Some named borders were hidden in ecomseo landing page
2020-09-30 19:16:53 +08:00
James Yong 91d8a2f02a Improved: multi-block attribute for html-template tag (OFBIZ-11686)
Form getJs link according to SEO Config setting
2020-09-28 21:54:25 +08:00
James Yong c911019856 Improved: Open FTL File from browser (OFBIZ-12018)
Better usability when clicking on named border
2020-09-28 21:50:01 +08:00
holivier 9eaf180a4b Documented: migration to help system using asciidoc files
(OFBIZ-11587)

Add <set field=helpAnchor... in CommonScreens for application where it's
not present. With this commit all OFBiz application help go to the html
generated from asciidoc files
2020-09-28 15:15:04 +02:00
Suraj Khurana d7408de03f Fixed: Incorrect data issue for InvoiceItemTypeMap and ReturnItemTypeMap.
(OFBIZ-11971)
As we have returnItemTypeId as RET_MISC_ADJ, same should be used in ReturnItemTypeMap and corresponding InvoiceItemTypeMap.
Thanks Amit Gadaley for reporting and providing the patch.
2020-09-26 18:16:31 +05:30
Suraj Khurana fa86887eb6 Improved: Handle case of partial amount available for return in adjustment in OrderReadHelper.getAvailableOrderHeaderAdjustments method.
(OFBIZ-11185)
Currently it filters all the adjustment that has correspoding returnAdjustment, it should check for amount as well.
Thanks Amit Gadaley for providing the patch.
2020-09-26 17:27:50 +05:30