Commit Graph
27737 Commits
Author SHA1 Message Date
Daniel Watford 584f1edda5 Improved: Ensure MacroFormRenderer uses
ModelFormField#getCurrentContainerId rather than
ModelFormField#getIdName to ensure any FlexibleStringExpander expression
defined in the field's id-name property is processed before rendering
into the container FTL macro.

(OFBIZ-4035)
2020-03-19 09:51:06 +01:00
Michael Brohl e4e32a1a64 Improved: Styles some clickable fields of backend tables as buttons.
(OFBIZ-11309)

Thanks Ulrich Heidfeld for reporting and providing the patch, James Yong
for additional review.
2020-03-18 08:05:00 +01:00
Michael Brohl 83b8b27b58 Fixed: Fixed a bug introduced with the removal of the login security
question.

(OFBIZ-11244)

Thanks Olivier Heintz for reporting and Wiebke Pätzold for providing the
patch.
2020-03-17 12:36:40 +01:00
Dennis Balkir 2895da2220 Implemented: _WARNING_MESSAGE_
(OFBIZ-10587)

Added warning message as a message type, by adding it in the
messages.ftl and the request-handler

Thanks to Niklas Fallik for reporting
2020-03-15 11:23:33 +01:00
Jacques Le Roux a4753d911d 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

Removes the references to products only used in plugins
2020-03-14 12:32:02 +01:00
Jacques Le Roux 67531d8bb2 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"

jleroux: I have also fixed the dataResourceId="GZ-DIG"

Thanks: Amardeep Singh Jhajj for report and initial fix
2020-03-14 08:51:23 +01:00
Michael Brohl bb698b9b96 Implemented: Remove the user login security question.
(OFBIZ-11244)

Thanks Wiebke Pätzold for providing the patch.
2020-03-13 17:31:49 +01:00
Jacques Le Roux 308fa20e81 Improved: Remove unused ‘UtilHttp#checkURLforSpiders’
(OFBIZ-11138)

The "link.remove_lsessionid.user_agent_list" properties was forgotten
2020-03-12 15:13:42 +01:00
Dennis Balkir d83bec22d8 Fixed: Potential Nullpointer in ErrorPage.ftl
(OFBIZ-11448)

Inserted nullcheck for request-attribute
2020-03-10 15:59:57 +01:00
Nicolas Malin c8a838ef03 Improved: Convert PartyServices.xml from mini lang to groovy
(OFBIZ-11361)

Thanks to Leila Mekika for providing the patch
2020-03-10 14:37:57 +01:00
Nicolas Malin 930f4af7a2 Improved: Convert CommonServices.xml from mini lang to groovy
(OFBIZ-11402)

Thanks to Wiebke Pätzold for providing the patch
2020-03-10 14:09:08 +01:00
Nicolas Malin 43b44f53e0 Improved: Convert ProductContentServices.xml mini lang to groovy
(OFBIZ-11436)

Thanks to Sebastian Berg for providing the patch
2020-03-10 09:32:37 +01:00
Michael Brohl 03b3a7bc02 Improved: Upgrade Freemarker from 2.3.29 to 2.3.30.
(OFBIZ-11445)
2020-03-08 01:13:05 +01:00
Gil Portenseigne b79c95b151 Fixed: Convert OrderServices.xml mini-lang to groovyDSL : getNextOrderId
(OFBIZ-9984)
Fix introduced NPE detected by the introduced test.
2020-03-06 17:36:14 +01:00
Gil Portenseigne 53a8b81260 Improved: Convert OrderServices.xml mini-lang to groovyDSL : getOrderedSummaryInformation
(OFBIZ-9984)
Thanks Julien for your contribution
2020-03-06 15:47:52 +01:00
Gil Portenseigne eba4157c59 Improved: Convert OrderServices.xml mini-lang to groovyDSL : getNextOrderId
(OFBIZ-9984)
Thanks Julien for your old patch, it has been improved.
Add a new integration test for the service 'getNextOrderId'
2020-03-06 15:46:58 +01:00
Nicolas Malin 27aa23833c Improved: Convert createTextAndUploadedContent service from mini-lang to groovy DSL
(OFBIZ-11368)

Thanks to Rohit Hukkeri for providing the patch
2020-03-06 14:58:15 +01:00
Nicolas Malin 92963609da Improved: Convert ProductFeatureServices.xml mini lang to groovy
(OFBIZ-11439)

Thanks to Sebastian Berg for providing the patch
2020-03-06 11:36:32 +01:00
Jacques Le Roux 784a299968 Fixed: createMissingCategoryAndProductAltUrls service misses a transaction
(OFBIZ-11441)

Not sure why it had use-transaction="false", makes no sens to me, too old to
check, not a big deal I guess
2020-03-05 09:56:07 +01:00
Nicolas Malin 51837c8cbf Fixed: Convert ProductServices.xml mini lang to groovy: productPriceGenericPermission failed
(OFBIZ-10231)

After groovy conversion the method productPriceGenericPermission failed to validate a user

Problem due to bad call on hasEntityPermission instead of hasPermission
2020-03-04 21:46:11 +01:00
Nicolas Malin 80026c76c0 Improved: Convert ProductServices.xml mini lang to groovy
(OFBIZ-10231)

After groovy conversion the method checkProductRelatedPermission
has been broken for other minilang method that didn't converted.

To solve this problem, I created new permission service checkProductRelatedPermission
and convert all previous minilang method call by a permission service on the related service call
2020-03-04 21:44:11 +01:00
Nicolas Malin 2b98727c5f Improved: Convert party/LookupServices.xml mini-lang to groovyDSL
(OFBIZ-11362)

Deprecate lookupParty service by performFindParty and rewrite to work as bridge during the deprecation time
2020-03-04 21:25:23 +01:00
Nicolas Malin 9a50fa907b Fixed: Refactoring permission model call, alone permission service failed
(OFBIZ-11440)

During refactoring (OFBIZ-7113), the service reader used two different methods to read a
permission service definition if is present alone or in a group. For the alone version a link
was missing between the service and the permission service to resolve correctly the permission.

To solve this problem I reorganized to use only one method to initialize a service model permission.

Other point, an attribute renaming was missed : action -> permissionMainAction, when service permission call was called

Last, these problems weren't detected before due to missing unit test on failure service permission, now cover.
2020-03-04 21:18:30 +01:00
Jacques Le Roux feeeb22f4a Fixed: Convert ProductServices.xml mini lang to groovy
Improved: no functional change
(OFBIZ-10231)

ProductServices.xml has been removed while

createProductPrice still refers to an inexisting PriceServices.xml
createProductPrice is not implemented in Groovy, there is no PriceServices.groovy

This just adds it temporarily, waiting for a correct and complete fix
2020-03-04 15:43:51 +01:00
Jacques Le Roux 7a34e9cda8 Merge pull request #42 from danwatford/ofbiz-11437-2020-incoterms-improvement
OFBIZ-11437: Improved: Added 2020 version of Incoterms
2020-03-04 15:01:26 +01:00
Jacques Le Roux a3bcdc4cc3 Improved: Removes getSubContentWithPermCheck and getSubSubContentWithPermCheck
unused services
(OFBIZ-11393)(OFBIZ-11394)

They were introduced by Al Byers in 2007 and, like some other stuff done then
by Al, were never used. We can safely close the 2 related issues as won't do
after removing the 2 services and all the references to them.

Thanks: Priya Sharma
2020-03-04 14:35:18 +01:00
Daniel Watford bbd570ad22 Improved: Add 2020 version of Incoterms
(OFBIZ-11437)

Alter the parent type and descriptions of existing Incoterm TermTypes to
indicate the version of Incoterms they relate to.

Added new Incoterm TermTypes and descriptions correspoding to the
Incoterms 2020 set.
2020-03-03 17:59:56 +00:00
Nicolas Malin 8ec3886d7f Fixed: Code refactoring to support groovy syntax
(OFBIZ-10231)

No functional change

This commit contains multiple refactoring to decrease code quantity :
 * use groovy syntax for empty/not empty value
 * use kelvin syntax
 * exploit DSL syntax and EntityQuery as possible
 * refactoring redundant "if block"
 * remove unnecessary transfer variable

Thanks to Gil Portenseigne for help my as his second eye
2020-02-28 17:47:41 +01:00
Nicolas Malin 604a3bfa02 Improved: Convert PartyInvitationService.xml from minilang to groovy
(OFBIZ-11360)

Thanks to Marie-Aline Pantais for providing the patch.
2020-02-28 16:39:06 +01:00
Jacques Le Roux 5b8c89906c Merge pull request #36 from danwatford/ofbiz-11428-checkstyle-line-endings
OFBIZ-11428: Set checkstyle to use LF line endings
2020-02-28 14:09:36 +01:00
Jacques Le Roux e9ec4181ec Merge pull request #17 from PierreSmits/Label-Cleanup
OFBIZ-10565 Removing unused UI labels
2020-02-28 13:50:03 +01:00
Jacques Le Roux c121ad6b9d Merge pull request #15 from PierreSmits/OFBIZ-10551
Implemented: Remove unused labels from ProductUiLabels.xml (OFBIZ-10551)
2020-02-28 13:49:27 +01:00
Daniel Watford e665f9dc68 Improved: Set checkstyle to use LF line endings
(OFBIZ-11428)

Setting checkstyle to use LF line endings means that a newline at the
end of a source file is correctly detected no matter whether it is
checked out with LF or CRLF line endings.
2020-02-28 10:37:02 +00:00
Jacques Le Roux 66aa76d7f7 Merge pull request #35 from danwatford/ofbiz-11418-documentation
OFBIZ-11418: Fixed line lengths in ModelFormFieldTest to adhere to coding standards
2020-02-28 09:44:28 +01:00
Daniel Watford 0ece441228 Fixed: Fixed line lengths in ModelFormFieldTest to adhere to coding standards
(OFBIZ-11418)
2020-02-28 08:02:12 +00:00
Jacques Le Roux cfad407c48 Merge pull request #34 from danwatford/ofbiz-11418-documentation
OFBIZ-11418: Documented use of field attribute parameter-name and lookup field attribute target-parameter in widget-form.xsd
2020-02-28 08:43:29 +01:00
Daniel Watford 5640de4eba Documented: Documented use of field attribute parameter-name and
lookup field attribute target-parameter in widget-form.xsd

(OFBIZ-11418)
2020-02-27 20:50:41 +00:00
Daniel Watford 08a371d047 Improved: Use FlexibleStringExpander in form widget lookup field field
target parameters

(OFBIZ-11418)

Changed target-parameter attribute of the form widget's Lookup field to
use the FlexibleStringExpander type rather than String. This has been
done to allow reference to other form fields which may have had their
parameter-name attribute set to a FlexibleStringExpander expression.
2020-02-27 18:42:11 +01:00
Jacques Le Roux c34491892a Improved:
Implemented:
Documented:
Completed:
Reverted:
Fixed:
Improved: no functional change
(OFBIZ-)
Explanation
Thanks:
2020-02-27 14:36:26 +01:00
Jacques Le Roux be7438fb6f Improved: Put the TOCs on left in generated AsciiDoc documentation
(OFBIZ-11423)
Following discussions

* AsciiDoc generated online documentation and releases
* New Online Help, need some ideas
threads on dev ML

I propose as suggested Oliver to put TOCs at the left. If I refer to
https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/119
toc: 'left@'
should be put in the main build.gradle

Thanks: Olivier Heintz for the suggestion
2020-02-26 20:55:58 +01:00
Michael Brohl c0a9714ef1 Fixed: hr-glossary.adoc: line 22: id assigned to block already in use:
ANNUAL_REVENUE

(OFBIZ-11419)

Thanks Olivier Heintz for providing the patch.
2020-02-26 15:18:04 +01:00
Suraj Khurana d98d9ccbfa Fixed: Picklist is in Input status even after order is completed.
(OFBIZ-10883)

Thanks Rashi Dhagat for reporting, Shikha Jaiswal for the patch and Pawan Verma for review.
2020-02-26 19:22:49 +05:30
Suraj Khurana 2c1fe936bd Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-02-26 16:07:13 +05:30
Suraj Khurana cc52b98151 Improved: Defects reported by code analysis tool.
(OFBIZ-10571)

Following refactoring done -
-- Refactored code to fall in line with some java standards.
-- Based on FindBugs suggestion, refactored some classes to have static nested classes instead of inner class.

Thanks Girish Vasmatkar for reporting the issue and providing the patch.
2020-02-26 16:06:55 +05:30
holivier 820f67a635 Documented: revert remove docbook help files for humanres
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-02-26 11:29:07 +01:00
holivier c34919683b Documented: revert remove docbook help files for content
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-02-26 11:29:07 +01:00
holivier 5c88250932 Documented: revert remove docbook help files for commonext-SETUP
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-02-26 11:29:07 +01:00
holivier 2766510aaf Documented: revert remove docbook help files for accounting
(OFBIZ-11420)

Removing Help files in docbook format break the current online help
2020-02-26 11:29:07 +01:00
Jacques Le Roux d003807154 Improved: Remove createTopic service (unused)
(OFBIZ-11376)

I could not find any references for this service in the code base, i.e. this
service has not been used anywhere, do we still want to keep it?

Thanks: Devanshu Vyas for report, Priya Sharma for the proposition and the fix
2020-02-26 10:00:33 +01:00
Jacques Le Roux 4697bf5faa Fixed: DatabaseUtil.getColumnInfo(...) does not retrieve primary keys due to
connection-locks
(OFBIZ-11312)

The method DatabaseUtil.getColumnInfo(...) uses an elaborate algorithm using a
List<Future<AbstractCountingCallable>> object. This does not work properly as it
runs into connection-locks. When debugging the error does not occur. I assume
that the slower pace of debugging prevents the error.

Thanks: Benjamin Jugl
2020-02-26 08:38:26 +01:00