Commit Graph
27737 Commits
Author SHA1 Message Date
Daniel Watford 259f71dd43 Removed unused test imports. 2020-01-28 11:38:07 +00:00
Daniel Watford 0c2124a08a Get Path from URI than a string representation of a file path when building Path to test resources. 2020-01-28 11:35:52 +00:00
Jacques Le Roux 6f3974169b Fixed: Fixed the issue on party page that will upload the data each time after
refreshing the page.
(OFBIZ-11325)

Earlier 'view' response type is used on the request that cause the issue.
We need to use request-redirect response type along with the required
redirect-parameter instead of view response type, i.e. We need to
request-redirect on viewProfile along with partyId as redirect-parameter.

Thanks: Humera Khan
2020-01-25 14:43:04 +01:00
Pawan Verma 832076ce91 Fixed: Potensial bug under CommunicationEventServices#updateCommEventAfterEmail for CommunicationEvent.subject field
(OFBIZ-10879)

CommunicationEventServices#updateCommEventAfterEmail could generate wrong result. If general.properties value 'mail.notifications.redirectTo' is used, it is possible that the subject string has more than 255 character.

Thanks, Ulrich Heidfeld for your contribution.
2020-01-25 15:54:37 +05:30
Pawan Verma 2cb33566ab Fixed: Same content uploaded twice, if refresh the page after uploading the content
(OFBIZ-11171)

Thanks, Humera Khan and Shubham Goswami for your contribution.
2020-01-25 13:09:27 +05:30
Pawan Verma 8bcf9c2cc5 Fixed: Order Status History section broken for anonymous order
(OFBIZ-11231)

Reason for the issue: Anonymous orders doen't have associated User login record, so shown statusUserLogin in that case.
2020-01-25 12:02:48 +05:30
Jacques Le Roux 660018a0c4 Amend previous by removing a typo:
Improved: no functional change

After 12 years being unperceived I suddenly wondered about the world "default"
at the right of the connection and main Webtools screen.
It was added by OFBIZ-914, and missed a label, here it is.
2020-01-17 15:22:54 +01:00
Jacques Le Roux 121a913585 Improved: no functional change
After 12 years being unperceived I suddenly wondered about the world "default"
at the right of the connection and main Webtools screen.
It was added by OFBIZ-914, and missed a label, here it is.
2020-01-17 15:14:15 +01:00
Pawan Verma cef21ced21 Fixed: updatePassword does not save optional parameter requirePasswordChange
(OFBIZ-11320)

When changing the password of a User Login through the Party Manager the Require Password Change dropdown menu selection does not save the selected value. The corresponding process is missing from the LoginMapProcs.xml.

Thanks: Ingo Könemann for your contribution.
2020-01-16 12:41:34 +05:30
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
Jacques Le Roux 8d3d2149fc Fixed: Bug when order contains adjustments with NULL amount
(OFBIZ-11316)

The issue was introduced by OFBIZ-7012 where adding isTaxIncludedInPrice was
missing at line 565. Because the compared amount in this line (in the adjustment)
is different from 0 and equals to amountAlreadyIncluded only if
the tax is included in price

Thanks: Amine Azzi
2020-01-11 11:19:36 +01:00
Nicolas Malin 6e1c7b5958 Implemented: REST, adding segmented URI support for webtools/entitymaint
(OFBIZ-11007)

After implemeted Rest mechanism on rev. 1868963 by Mathieu Lirzin,
I reviewed the rest url implemented by Artemiy Rozovyk for entitymaint in webtools.

With discussion with Mathieu and Leila, I selected this pattern :

    entity/[cover]/{entityName}/{pkValues: .*}

and implemented like this :

    entity/list -> list all entities
    entity/find/Party -> search
    entity/find/Party/Company -> displaying form for Party with id Company
    entity/create/Party -> creation form for a Party
    entity/edit/Party/Company/Company -> edit form for Party with id Company
    entity/change/Party/Company -> call crud following given http method
    entity/relations/Party -> View relation for Party

The old uris were currently kept and the oldest GenericWebEvent.updateGeneric() were updated to support rest method information.

Thanks Mathieu, Artemiy and Leila for their help to complete this improvement.
2020-01-09 17:51:12 +01:00
Deepak Dixit c3d53e6b8c Fixed: Fix typo 2020-01-06 00:53:32 +05:30
Mathieu Lirzin 583f926e04 Improved: Remove unused ‘ComponentContainer#retrieveComponentConfig’ argument
No functional change.
2020-01-03 16:01:44 +01:00
Mathieu Lirzin 20e0bbe55c Improved: Use ‘forEach’ in ‘RequestHandler’ for conciseness
No functional changes.
2020-01-03 14:32:31 +01:00
Jacopo Cappellato f9607c0298 Fixed: Extend the thru date of the demo financial period (and simplify
some related demo data for easier future maintenance) in order to fix
some tests that are failing in the new year.
2020-01-03 13:46:04 +01:00
Jacques Le Roux a609900105 Fixed: POC for CSRF Token
(OFBIZ-11306)

While reviewing I found this non related fix (FindPayGrade should be plural)
Better to commit it apart
2020-01-03 09:23:10 +01:00
Jacques Le Roux 0cddf2168a Improved: no functional change
Update Copy right date
2020-01-03 08:34:05 +01:00
Mathieu Lirzin 7508917a0a Improved: Remove ‘RequestHandler#ControllerConfig’ wrapper
(OFBIZ-11313)

‘RequestHandler#ControllerConfig’ was a wrapper around
‘ConfigXMLReader#ControllerConfig’ used as a convenience to gather
error handling when accessing configuration properties. Since the
later is now only throwing exceptions when instantiating the object,
‘RequestHandler#ControllerConfig’ is not useful anymore.
2019-12-30 09:54:24 +01:00
Mathieu Lirzin 6c745f6ea5 Improved: Retrieve the included controller files eagerly
(OFBIZ-11313)

The included controller files resolution was previously delayed when
accessing the configuration properties. The issue is that it imposes
callers to handle exceptions when accessing those
properties. Additionally this has the drawback of detecting inclusion
issues late.

We are now retrieving the included files when instantiating the
controller configuration object. This provides more guarantee on the
integrity of instantiated controllers and relax the error handling
requirements on configuration properties callers.
2019-12-30 09:47:55 +01:00
Jacques Le Roux 28b658e260 Improved: Equivalent of svn:auto-props properties on the server
(OFBIZ-OFBIZ-11279)

As explained at https://s.apache.org/i86ht

This is needed after b424d2683e
2019-12-19 13:19:59 +01:00
Jacques Le Roux 835e8880d1 Saving files before refreshing line endings 2019-12-19 13:18:30 +01:00
Jacques Le Roux b424d2683e Improved: Equivalent of svn:auto-props properties on the server
(OFBIZ-OFBIZ-11279)

We should have an equivalent of svn:auto-props properties on the server:
https://help.github.com/articles/dealing-with-line-endings/#per-repository-settings
2019-12-19 13:15:10 +01:00
Mathieu Lirzin aae1c8a8f5 Reverted: "Improved: Use ‘depends-on’ attribute instead of “component-load.xml”"
(OFBIZ-11296)

This reverts commit eeabe69813.
2019-12-18 12:09:20 +01:00
Michael Brohl 0039dcd7dc Fixed: German translation typo in PartyUiLabels
(OFBIZ-11308)

Thanks: Ingo Könemann for reporting and providing the patch.
2019-12-13 10:28:48 +01:00
Pawan Verma 756b181c37 Fixed: Add button for 'Gift Message is shown on completed order
(OFBIZ-11160)

Thanks: Pierre Smits for report and Shivanand Chhatre for the fix.
2019-12-12 16:07:56 +05:30
Jacques Le Roux 3fb4c15f9d No functional dummy change for INFRA-19550
Buildbot build triggered by another project INFRA-19550

Necessary change on Buildbot side done, should work now
2019-12-11 17:43:15 +01:00
Jacques Le Roux 9b2040bb4d No functional dummy change for INFRA-19550
Buildbot build triggered by another project INFRA-19550

Now uses change_filter instead of branches in Git schedulers
2019-12-11 13:38:21 +01:00
Jacques Le Roux dcc0689a31 No functional dummy change for INFRA-19550
Buildbot build triggered by another project
2019-12-11 06:38:34 +01:00
Mathieu Lirzin d4c59c3bde Improved: Inline ‘StartupControlPanel#createLogDirectoryIfMissing’.
Use a lambda instead of an anonymous class to implement a thread.
2019-12-08 00:33:11 +01:00
Mathieu Lirzin df5dde37d5 Improved: Replace getLocation with location in ‘ComponentConfig.WebappInfo’
(OFBIZ-11192)

Use Path instead of String + File.
2019-12-08 00:12:52 +01:00
Mathieu Lirzin 4d4a1ba1cd Improved: Lint ‘FreeMarkerWorker’ class
(OFBIZ-11161)
2019-12-07 23:16:45 +01:00
Mathieu Lirzin 376b818464 Improved: Do not add classpath info to the classloader classpath (OFBIZ-11161)
Those directories are already added in the classpath by the build
system. The classpath info defined in “ofbiz-component.xml” files are
now only used to retrieve label files.
2019-12-07 23:13:18 +01:00
Samuel Trégouët 98bfafd148 Improved: Resolve classpath conflict on freemarkerTransforms.properties
(OFBIZ-11161)

All files in {compoment}/config directories are placed in jar
root (cf. sourceSets definition in build.gradle) but there are 4 different
`freemarkerTransforms.properties` in ofbiz (content, product, webapp, widget).
This works fine because we are adding config directories in classpath (through
classpath tag in ofbiz-component.xml), but this is not really intuitive. So to
make things clearer this patch move `freemarkerTransforms.properties` into
`src/main/resources` with a namespace package and `FreeMarkerWorker.java` is
modified accordingly.
2019-12-07 23:13:10 +01:00
Samuel Trégouët 62c617eeec 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
2019-12-07 22:58:29 +01:00
Samuel Trégouët e7bec48f16 Fixed: Use ‘WebAppUtil#parseWebXmlFile’ when handling “web.xml” files
(OFBIZ-6993)
2019-12-07 22:51:09 +01:00
Mathieu Lirzin 3c9af84245 Fixed: Display file name in XML parsing errors
(OFBIZ-6993)
2019-12-07 22:51:05 +01:00
Nicolas Malin 071a74238b Fixed: Fix missing else during previous refactoring
(OFBIZ-11253)
When you rendering for with auto-field-entity on edit mode, indicator field has been override by text field.
Fix also two error on source field type set to FieldInfo.SOURCE_AUTO_SERVICE instead of FieldInfo.SOURCE_AUTO_ENTITY

Thanks to Olivier Heintz to inform on the regression.
2019-12-06 21:29:32 +01:00
Mathieu Lirzin 87d7465306 Improved: Move ‘ComponentContainerTest’ data to src/test/resources/ (OFBIZ-11275)
Remove unnecessary webapp declaration inside the test component
configurations.
2019-12-01 23:43:53 +01:00
Mathieu Lirzin d0f522aeed Fixed: Remove obsolete references to WorkflowActivity (OFBIZ-11303)
The workflow component is in attic since 7 years.
2019-12-01 20:05:27 +01:00
Mathieu Lirzin c764a90b18 Improved: Lint ‘SEOContextFilter#doFilter’ (OFBIZ-11278) 2019-12-01 20:01:44 +01:00
Mathieu Lirzin 22f1da7859 Improved: Remove unnecessary ‘ofbizDebug’ task type (OFBIZ-11302)
the standard ‘--debug-jvm’ Gradle option already provides the same
functionality.
2019-12-01 20:01:03 +01:00
Mathieu Lirzin 81f82b1203 Improved: Upgrade some dependencies 2019-12-01 19:42:45 +01:00
Mathieu Lirzin 815fb52835 Improved: Remove some explicit transitive dependencies 2019-12-01 19:42:20 +01:00
Jacques Le Roux 2da6de1090 Fixed: https://github.com/apache/ofbiz-framework/pull/3
Just fixes a typo I guess people from Indonesia and Yogyakarta did not see
it yet, so I did not create a Jira
2019-12-01 12:31:17 +01:00
Jacques Le Roux 4ac9ae097e Improved: Resolve: TODO: Convert this to a <set-calendar> operation
(OFBIZ-11295)

Because we want to migrate from Minilang to Groovy, rather than using
<set-calendar> removes the TODO

Thanks: Pawan for report
2019-11-30 09:02:17 +01:00
Mathieu Lirzin 5ac460614a Implemented: Add “CONTRIBUTING.adoc” file (OFBIZ-11271) 2019-11-29 11:58:35 +01:00
Jacques Le Roux 701388faa6 iS gITBOX ok NOW? 2019-11-28 22:15:53 +01:00
Jacques Le Roux 7689c8910a No functional change
Because of a change in Buildbot: we don't want to run the build task in trunk
because it includes checkstyleMain
2019-11-28 20:51:56 +01:00
Jacques Le Roux 4cf7d24a1d No functional change
A last one because I'm unsure my last Buildbot change was taken in account since
I did after committing here
2019-11-28 17:02:53 +01:00