Commit Graph
208 Commits
Author SHA1 Message Date
Pawan Verma 8c9c0e07dd Applied fix from trunk for revision: 1861834
===

Improved: Removed old pattern directory for groovy scripts.
(OFBIZ-10903)
Thanks Deepak Dixit for reporting.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1861836 13f79535-47bb-0310-9956-ffa450edef68
2019-06-22 10:21:51 +00:00
Pawan Verma 76974812e7 Applied fix from trunk for revision: 1861828
===

Improved: Made Gradle createPlugin task reflect the actual file/folder structure.
(OFBIZ-10903)
Modified Gradle createPlugin task to reflect the groovyScripts and minilang directory instead old script directory. 
Thanks, Michael Brohl for reporting.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1861835 13f79535-47bb-0310-9956-ffa450edef68
2019-06-22 10:21:11 +00:00
Jacques Le Roux 2bd0c26791 "Applied fix from trunk for revision: 1860357"
------------------------------------------------------------------------
r1860357 | jleroux | 2019-05-29 18:29:31 +0200 (mer. 29 mai 2019) | 14 lignes

Fixed: Gradle eclipse task - classpath modification (Add exclusion for 
<OFBiz>/framework/base/config and <OFBiz>/framework/base/dtd)
(OFBIZ-11071)

Eclipse task removes all classpath entries that affects following entries also -
 * <OFBiz>/framework/base/config
 * <OFBiz>/framework/base/dtd

These two entries are essential to start OFBiz successfully. 
Developer has to manually add these entries back to start OFBiz from IDE.

Following this discussion: https://s.apache.org/baoT

Thanks: Girish Vasmatkar
------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1860358 13f79535-47bb-0310-9956-ffa450edef68
2019-05-29 16:30:32 +00:00
Jacques Le Roux 8f76ba6c67 "Applied fix from trunk for revision: 1859968"
------------------------------------------------------------------------
r1859968 | jleroux | 2019-05-25 15:25:34 +0200 (sam. 25 mai 2019) | 16 lignes

Fixed: Services allow arbitrary HTML for parameters with allow-html set to "safe"
(OFBIZ-5254)

The testCreateNewRequest was failing due to escaped single quotes in related
data in OrderTypeData.xml:
subject="OFBiz - Your Request is received: '${custRequestName}' #CR${custRequestId}"

This was a peculiar case that could be generalised to all escapable characters.
The general solution is to compare the original value with the filtered value 
unescaped in UtilCodec::checkStringForHtmlSafe.
BTW, weirdly enough StringEscapeUtils::escapeHtml4 does not escape single quote.

Another weirdness is the test was passing with plugins data loaded. This is due
to duplicated demo data in scrumTypeData.xml (which is actually not only type
data, as ever the scrum component is a mess, that's not new and always wonder
if we should not get rid of it!)
------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1859969 13f79535-47bb-0310-9956-ffa450edef68
2019-05-25 13:34:45 +00:00
Jacques Le Roux 814d98796d Fixed: Update Tomcat to 9.0.18 due to CVE-2019-0232
(OFBIZ-10920)

CVE-2019-0232 Apache Tomcat Remote Code Execution on Windows

Severity: Important

Vendor: The Apache Software Foundation

Versions Affected:
Apache Tomcat 9.0.0.M1 to 9.0.17
Apache Tomcat 8.5.0 to 8.5.39
Apache Tomcat 7.0.0 to 7.0.93

Description:
When running on Windows with enableCmdLineArguments enabled, the CGI
Servlet is vulnerable to Remote Code Execution due to a bug in the way
the JRE passes command line arguments to Windows. The CGI Servlet is
disabled by default. The CGI option enableCmdLineArguments is disabled
by default in Tomcat 9.0.x (and will be disabled by default in all
versions in response to this vulnerability). For a detailed explanation
of the JRE behaviour, see Markus Wulftange's blog [1] and this archived
MSDN blog [2].

Mitigation:
Users of affected versions should apply one of the following mitigations:
- Ensure the CGI Servlet initialisation parameter enableCmdLineArguments
    is set to false
- Upgrade to Apache Tomcat 9.0.18 or later when released
- Upgrade to Apache Tomcat 8.5.40 or later when released
- Upgrade to Apache Tomcat 7.0.93 or later when released
This announcement is being made before the releases are available as the
change to fix this issue is obviously security related.

Credit:
This issue was identified by an external security researcher and
reported to the Apache Tomcat security team via the bug bounty program
sponsored by the EU FOSSA-2 project.


jleroux: actually Tomcat 9.0.19 was released, here it is

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1857587 13f79535-47bb-0310-9956-ffa450edef68
2019-04-15 14:42:28 +00:00
Jacques Le Roux 4d43921f7f Fixed: ‘./gradlew generateOfbizDocumentation’ fails with Gradle 5.0
(OFBIZ-10693)

Reverts 1857431, better stay as is. It works in trunk but not here.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1857432 13f79535-47bb-0310-9956-ffa450edef68
2019-04-12 20:42:38 +00:00
Jacques Le Roux 40f07f4929 Fixed: ‘./gradlew generateOfbizDocumentation’ fails with Gradle 5.0
(OFBIZ-10693)

We were still waiting for a definitive solution and fortunately it works with 
version 2.0.0 of asciidoctor-gradle-plugin

Thanks: Mathieu for discussion and Jinghai for the fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1857431 13f79535-47bb-0310-9956-ffa450edef68
2019-04-12 20:16:46 +00:00
Jacques Le Roux a3c807a225 "Applied fix from trunk for revision: 1856212 "
------------------------------------------------------------------------
r1856212 | jleroux | 2019-03-25 18:47:52 +0100 (lun. 25 mars 2019) | 9 lignes

Fixed: Update Tomcat to 9.0.16 due to CVE-2019-0199
(OFBIZ-10873)

The HTTP/2 implementation accepted streams with excessive numbers of
SETTINGS frames and also permitted clients to keep streams open without
reading/writing request/response data. By keeping streams open for
requests that utilised the Servlet API's blocking I/O, clients were able
to cause server-side threads to block eventually leading to thread
exhaustion and a DoS.
------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1856213 13f79535-47bb-0310-9956-ffa450edef68
2019-03-25 17:50:09 +00:00
Deepak Dixit 21e84e2efe Applied fix from trunk for revision: 1855501
===

Improved: Added line separator while while generating svn/git info footer.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1855502 13f79535-47bb-0310-9956-ffa450edef68
2019-03-14 09:33:52 +00:00
Deepak Dixit adeac89d37 Applied fix from trunk for revision: 1854683
===

Preparation for JDK11 update, Updated following code to fix warning with respect to JDK11
- Replaced Class::newInstance occurrences
- Removed deprecated override method Object::finalize
(OFBIZ-10757)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1854689 13f79535-47bb-0310-9956-ffa450edef68
2019-03-03 10:45:02 +00:00
Deepak Dixit 0daaa4f83f Applied fix from trunk for revision: 1852503
===

Fixed: Upgrade Apache Tika to 1.20 (CVE-2018-8017/CVE-2018-17197)
In Apache Tika 1.2 to 1.18, a carefully crafted file can trigger an infinite loop in the IptcAnpaParser. 
A carefully crafted or corrupt sqlite file can cause an infinite loop in Apache Tika's SQLite3Parser in versions 1.8-1.19.1 of Apache Tika. 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1852504 13f79535-47bb-0310-9956-ffa450edef68
2019-01-30 08:54:29 +00:00
Jacques Le Roux 705d95e9e1 "Applied fix from trunk for revision: 1850647"
------------------------------------------------------------------------
r1850647 | jleroux | 2019-01-07 15:46:50 +0100 (lun. 07 janv. 2019) | 11 lignes

Improved: Update Apache commons-fileupload to last version
(OFBIZ-10770)

Fixes CVE-2019-0189

This is an easy doing, we just need to add

    compile 'commons-fileupload:commons-fileupload:1.3-3'

to the build.gradle file.

So far the dependency was not given directly but by other dependencies

------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1850648 13f79535-47bb-0310-9956-ffa450edef68
2019-01-07 14:47:57 +00:00
Nicolas Malin e57ebea704 Improved: Updated plugins url on release18.12
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1849863 13f79535-47bb-0310-9956-ffa450edef68
2018-12-28 14:42:46 +00:00
Jacques Le Roux 8cb1fcb798 Fixed: ‘./gradlew generateOfbizDocumentation’ fails with Gradle 5.0
(OFBIZ-10693)

Downgrades AsciiDoc Gradle Plugin 1.5.9.1 → 1.5.8.1 to fix the issue. 
I have deduced from the stacktrace that the 
org.asciidoctor.gradle.backported.AsciidoctorJavaExec class was causing the 
issue and since it was introduced in 1.5.9 as stated in the comment at the 
top of its source file I have tried the latest version before this release.

Thanks: Mathieu for the fix and Jinghai for discussion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848850 13f79535-47bb-0310-9956-ffa450edef68
2018-12-13 14:52:12 +00:00
Jacques Le Roux 86c69b153f Improved: Plugins Asciidoc documentation must be standalone
(OFBIZ-10658)

Use ":toclevels: 3" after discussion ion dev ML

Thanks to all who participated

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848849 13f79535-47bb-0310-9956-ffa450edef68
2018-12-13 14:39:17 +00:00
Jacques Le Roux bbfc62d47a Improved: Fix or Silence various warnings
(OFBIZ-10701)

In order to detect potential issues early, the linting compiler option should be 
used by default and disabled with {{./gradlew -PXlint:none build}}.

Additionally it is important to reduce the number of warnings otherwise new 
warnings will remain unnoticed.

The warning related to the com.googlecode.concurrentlinkedhashmap dependency 
should resolves itself once we handle upgrade to Caffeine like proposed in 
OFBIZ-6747.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848673 13f79535-47bb-0310-9956-ffa450edef68
2018-12-11 13:33:49 +00:00
Jacques Le Roux 83462b97b4 Fixed: Standalone Asciidoc plugins documents can't render logo correctly in PDF
(OFBIZ-10677)

Modifies the generatePluginDocumentation and generateAllPluginsDocumentation 
tasks by temporary copying the OFBiz-Logo.svg in plugin/s

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1848386 13f79535-47bb-0310-9956-ffa450edef68
2018-12-07 09:30:28 +00:00
Jacques Le Roux 426df38d97 Fixed: Create a PoC for a documentation system for OFBiz based on Asciidoc
(OFBIZ-9873)

At r1831619 we committed a workaround to "turn off PDF in windows for now"

I have found a real solution for this bug which prevents to check PDF results in 
Windows because the PDF were not generated there.

I found this solution at 
https://github.com/asciidoctor/asciidoctorj-pdf/issues/8. 
After reading https://github.com/asciidoctor/asciidoctor-pdf/issues/850 
I checked it also works on Linux.

It uses the last version of jruby-complete.

I guess the gradle-versions-plugin should be able to warn us when an upgrade of 
jruby-complete is available like it does for junitReport.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847890 13f79535-47bb-0310-9956-ffa450edef68
2018-12-01 12:30:50 +00:00
Jacques Le Roux 573c231cc5 Improved: Update build.gradle to the latest dependencies
(OFBIZ-10214)

4 updates were not possible:
  Tika 1.18 max
  Poi 3.17 max
I did not update
  sshd-core
  cas-server-core

Please refer to the Jira for more information

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847026 13f79535-47bb-0310-9956-ffa450edef68
2018-11-20 16:42:05 +00:00
Jacques Le Roux 5903f06f00 No functional change, dummy change to test documentation generation on site.
Unlucky, in last commit test failed at framework stage for no reason

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846995 13f79535-47bb-0310-9956-ffa450edef68
2018-11-20 12:40:08 +00:00
Jacques Le Roux 57daeb554a No functional change, dummy change to test documentation generation on site.
In last Buildbot commit I wrongly used as generated dir name ofbizdoc not ofbiz 
(I use ofbizdoc on the site part which is were I got confused)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846990 13f79535-47bb-0310-9956-ffa450edef68
2018-11-20 11:27:16 +00:00
Jacques Le Roux 1e45f9e4a1 No functional change, dummy change to test documentation generation on site.
Removes a redundant "build"?

This is weird "/build/build/" returned by Builbot
at https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins/builds/525/
	steps/upload_1/logs/err.text
	
twisted.spread.pb.RemoteError: [Errno 2] 
No such file or directory: '/home/buildslave/slave/ofbizTrunkFrameworkPlugins/
	build/build/asciidoc/ofbizdoc'

When it works for "build/docs/javadoc"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846980 13f79535-47bb-0310-9956-ffa450edef68
2018-11-20 08:22:05 +00:00
Jacques Le Roux 72445177de No functional change, dummy change to test documentation generation on site.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846979 13f79535-47bb-0310-9956-ffa450edef68
2018-11-20 07:50:10 +00:00
Jacques Le Roux dfd8af107f No functional change, dummy change to test documentation generation on site.
Unfortunately presently I can't force with ofbiz-bot: INFRA-17259

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846891 13f79535-47bb-0310-9956-ffa450edef68
2018-11-19 10:12:02 +00:00
Jacques Le Roux 817dda659c Implemented: Create a Gradle task to generate the documenation for all plugins
(OFBIZ-10651)

After INFRA-17258 Infra has created the directories needed to access the 
generated documentation from the site. 

Adds a generateAllPluginsDocumentation task to generate the plugins 
documentation under the build\asciidoc\plugins directory. It will be used in the 
Buildbot script to copy the plugins documentation in 
ci.apache.org/projects/ofbiz/site/pluginsdoc/ 
with the OFBiz documentation generated in build\asciidoc\ofbiz 
copied to ci.apache.org/projects/ofbiz/site/ofbizdoc/

The plugin documentation tasks are also changed to use the build/asciidoc/plugins
path instead of /build/asciidoc previously

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846890 13f79535-47bb-0310-9956-ffa450edef68
2018-11-19 09:37:35 +00:00
Jacques Le Roux c1d09961dd Improved: Clean some Groovy files in base component
(OFBIZ-10646)

Following discussion at https://markmail.org/message/y3izmnxd7jd6jbkf 
this cleans some Groovy files in the base component, notably:

* remove ant-scripts folder and its content.
* Rename framework/base/groovyScript to framework/base/groovyScripts;
* Move GroovyInit.groovy and GroovyServiceTest.groovy respectively to 
  framework/base/groovyScripts and framework/common/groovyScripts 
  and change their paths where used.
* Removes GroovyInit.groovy from excludedConfigFiles in build.gradle
* After OFBIZ-10611 it's possible to move GroovyBaseScript.groovy  from
  framework/service/src/main/java/org/apache/ofbiz/service/engine
  to
  framework/service/src/main/groovy/org/apache/ofbiz/service/engine
* Removes FileUtilTests.groovy from basetests.xml (missed it in OFBIZ-10611)
* Fixes a typo in test-suite.xsd

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846485 13f79535-47bb-0310-9956-ffa450edef68
2018-11-13 05:03:51 +00:00
Jacques Le Roux 7cc7fd2cea Improved: Allow unit tests to be written in Groovy
(OFBIZ-10611)

Since OFBIZ-9996 it is possible to write integration tests in Groovy, meaning 
test that depend on the dispatcher and the delegator. It would be nice if the 
unit tests could be written in Groovy too.

The major benefit of writing tests in Groovy is that you create inputs and 
expected outputs more easily with objects literals. 
For example the following java code:

Map<String, Integer> input = new HashMap<>();
  input.put("foo", 42);
  input.put("bar", 37);

can be rewritten in Groovy like this:
  def input = [foo: 42, bar: 37]

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846393 13f79535-47bb-0310-9956-ffa450edef68
2018-11-12 10:57:27 +00:00
Jacques Le Roux 3190e0ff2e Improved: Create patch for removal of IDEAL code in framework
(OFBIZ-5444)

Removes all iDEAL specifics from the framework (actually only applications)

Thanks: Pierre Smits

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846227 13f79535-47bb-0310-9956-ffa450edef68
2018-11-09 10:20:10 +00:00
Jacques Le Roux 4e69dcd23f Improved: Javadoc doesn't contains links to external documentation
(OFBIZ-10603)

Adds comments about changing version in javadoc.options block

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1845217 13f79535-47bb-0310-9956-ffa450edef68
2018-10-30 10:44:53 +00:00
Deepak Dixit d06cb305ac Improved: Updated Apache FOP jar to 2.3
(OFBIZ-10619)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1844945 13f79535-47bb-0310-9956-ffa450edef68
2018-10-27 08:15:37 +00:00
Deepak Dixit 45e023651b Improved: Updated google libphonenumber to v8.9.16
(OFBIZ-10618)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1844943 13f79535-47bb-0310-9956-ffa450edef68
2018-10-27 07:55:25 +00:00
Jacques Le Roux fbfa0daa5a Implemented: Navigate from a domain to another with automated signed in
authentication
(OFBIZ-10307)

This uses a JWT Token authentication to get from one domain, where you are 
signed in, to another domain where you get signed in automatically. 
Something like ExternalLoginKey or Tomcat SSO, but not on the same domain.

In the example component, the FormWidgetExamples screen contains 2 new fields 
in the LinksExampleForm which demonstrate the use from a local instance to the
trunk demo instance.

A simple documentation is available in 
  framework\webapp\src\docs\asciidoc\_include\wa-cross-domains-SSO.adoc

Thanks: Taher for review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1844880 13f79535-47bb-0310-9956-ffa450edef68
2018-10-26 09:32:46 +00:00
Jacques Le Roux a3381b44b5 Improved: Javadoc doesn't contains links to external documentation
(OFBIZ-10603)

While reading the OFBiz Javadoc, it is often necessary to look at OFBiz 
dependencies documentation to properly understand it.  Currently this has to be 
done manually.  It would be convenient to be able to click and on class 
definition of a dependency to go to its documentation.  
This can be done via the -link option of javadoc command.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1843896 13f79535-47bb-0310-9956-ffa450edef68
2018-10-15 10:20:07 +00:00
Jacques Le Roux 7cd9600365 Fixed: Creating Javadoc on Windows fails
(OFBIZ-10605)

This is due to the lack of UTF-8 encoding

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1843893 13f79535-47bb-0310-9956-ffa450edef68
2018-10-15 10:06:04 +00:00
Jacopo Cappellato 1d1b12400e Improved: Upgraded Freemarker to the latest stable version (from
2.3.27-incubating to 2.3.28).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1840828 13f79535-47bb-0310-9956-ffa450edef68
2018-09-13 14:49:25 +00:00
Taher A. Alkhateeb 4665c60ecf Fixed: bug in which build scripts for plugins are not executing
Due to refactoring work a bug was introduced, this fix tackles
this issue in which plugin install and uninstall tasks are not
running.

reference: https://s.apache.org/CKU9

Thanks: Mathieu Lirzin for the analysis and patch.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837987 13f79535-47bb-0310-9956-ffa450edef68
2018-08-14 05:55:29 +00:00
Jacques Le Roux 0600c9e2a6 Improved: no functional change
Removes io.jsonwebtoken:jjwt, this was not supposed to be part of OFBIZ-10517

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837863 13f79535-47bb-0310-9956-ffa450edef68
2018-08-11 10:49:10 +00:00
Jacques Le Roux 8e21fb51b3 Fixed: Update Apache Tomcat to 9.0.10 because of CVE-2018-8037
(OFBIZ-10517)

If an async request was completed by the application at the same time as the 
container triggered the async timeout, a race condition existed that could 
result in a user seeing a response intended for a different user. 
An additional issue was present in the NIO and NIO2 connectors that did not 
correctly track the closure of the connection when an async request was 
completed by the application and timed out by the container at the same time.
This could also result in a user seeing a response intended for another user. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837857 13f79535-47bb-0310-9956-ffa450edef68
2018-08-11 10:37:40 +00:00
Jacques Le Roux fbe01909a8 Fixed: Put back the com.lowagie:itext license from 4.2.0 to 2.1.7
(OFBIZ-10455)

At r1812161 for OFBIZ-9674 we updated com.lowagie:itext license from 2.1.7 to 
4.2.0. Scott mentionned at https://s.apache.org/ixHW:

<<I just noticed that the iText maven bundle is a bit tricksy and includes iText
 5.6.6 as a dependency, with the latter being GPL licensed.>>

Actually Scott meant itextpdf (was clear in his message), and it turned out that 
not only itextpdf was a problem but the 4.2.0 version in its entirety as 
discovered in the thread.

The solution is to get back to the 2.1.7 version which is still MPL licensed.

Thanks: Scott for discovering the issue and others for the discussion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834736 13f79535-47bb-0310-9956-ffa450edef68
2018-06-30 14:00:16 +00:00
Jacques Le Roux 65a705eb56 Improved: Use in and spread operator in gradlewSubprocess
(OFBIZ-10431)

No functional change. The idea of using the spread operator is to have less 
mutation involved. In Groovy, using operator overloads like in is more idiomatic 
than using explicitly the associated method.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833997 13f79535-47bb-0310-9956-ffa450edef68
2018-06-21 11:41:22 +00:00
Jacques Le Roux 985aeaee03 Improved: Use list literals when possible
(OFBIZ-10431)

No functional change. List literals feels simply more readable.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833981 13f79535-47bb-0310-9956-ffa450edef68
2018-06-21 08:02:33 +00:00
Jacques Le Roux daa5194031 Improved: Use functional programming in build script
(OFBIZ-10429)

No functional change, the idea is to have more declarative code.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833951 13f79535-47bb-0310-9956-ffa450edef68
2018-06-20 20:43:35 +00:00
Jacques Le Roux 7b79f3d2b4 Improved: Don't guess the system file separator
(OFBIZ-10428)

The JVM already knows the file separator of the current system when running 
Gradle so use that value instead of guessing from the operating system property.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833949 13f79535-47bb-0310-9956-ffa450edef68
2018-06-20 20:36:59 +00:00
Jacques Le Roux ca9b1bbd41 Reverted: Navigate from a domain to another with automated signed in
authentication
(OFBIZ-10307)

This reverts the work done previously for OFBIZ-9833 and OFBIZ-10206
Most parts of it will actually be reused later in a patch. By reverting it will 
allow to provide a patch for others to review


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833510 13f79535-47bb-0310-9956-ffa450edef68
2018-06-14 14:37:24 +00:00
Jacques Le Roux 7036cb66e0 Improved: Update DBCP to 2.3.0
(OFBIZ-10404)

This is a minor release, including bug fixes and enhancements.
See http://commons.apache.org/proper/commons-dbcp/changes-report.html#a2.3.0
I'm running with it locally for 2 weeks, all seems OK

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832426 13f79535-47bb-0310-9956-ffa450edef68
2018-05-29 06:32:57 +00:00
Gil Portenseigne 9fbb3765e4 Implemented : File transfer management with communicationEvent and new contactMech FTP_ADDRESS
(OFBIZ-10245)

This commit introduce a new way to manage file transfer in OFBiz.
Inspired by mailing communication event management, a new communicationEventTypeId is created ('FILE_TRANSFER_COMM').

Such commEvent with classics : partyIdFrom/partyIdTo/contactMechIdTo/entryDate etc. are analysed by a job (like sendEmailDated), to send associated contents to a configured FTP/SFTP/FTPS server. If failure happens, it is catched and stored in communicationEvent, waiting for a new try.

For this purpose :

A new contactMechTypeId is introduced (FtpAddress), with its corresponding table. This contactMech store needed information for basic user/password authentication (server url and protocol, port, username, password, etc.)
A new service sendFileTransferDated that will look for pending file transfer and call following service.
A new service sendCommEventAsFtp that take a selected commEvent, check its structure and manage its status after trying the associated content file transfers.
A new service sendContentToFtp, that take a content and transfer it to a given FtpAddress.
A seca createCommEventFromFtpTransfer on sendContentToFtp to manage plural content file transfer, creating children communicationEvent to follow each content transfer separately (only for several content transfers).
A new Interface FtpClientInterface, with the 3 implementations of FTP, FTPS (To Implement), SFTP clients to manage Ftp connection and transfer.
A new property file to enable and manage redirection for testing purpose.

With this implementation, creating a communicationEvent, with a FtpAddress contactMechIdTo, and sendFileTransferDated job planned, the file is transfered to the ftp : communication event status set to COM_COMPLETE, if error occured the communication event status is set to COM_BOUNCED with error message on communicationEvent note.

Thanks Rishi for your feedbacks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831867 13f79535-47bb-0310-9956-ffa450edef68
2018-05-18 15:53:35 +00:00
Taher A. Alkhateeb 197e44e5e4 Fixed: bugs with asciidoctor PDF generation in Windows
(OFBIZ-9873)

We are facing multiple issues in PDF generation in windows. Most of these bugs
are related to incompatible transitive dependencies and some JRuby libraries.
From researching it seems that most of these bugs should be resolved in upcoming
releases of asciidoctor and hence this workaround might be resolved in the
future by upgrading asciidoctor.

Thanks: Jacques Le Roux for reporting and testing


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831619 13f79535-47bb-0310-9956-ffa450edef68
2018-05-15 10:33:37 +00:00
Jacopo Cappellato 59f97f6549 Implemented: Upgraded to latest Tomcat (9.0.7).
(OFBIZ-10036)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831074 13f79535-47bb-0310-9956-ffa450edef68
2018-05-07 06:41:47 +00:00
Taher A. Alkhateeb 291fdc43d7 Improved: moved some shared attributes in asciidoc sources to gradle
(OFBIZ-10285)

Given that both the developer and user manuals share many of the configurations
like table of contents and other formatting settings, this commit moves such
configurations from the source documents to the buildscript to sustain DRY.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1827961 13f79535-47bb-0310-9956-ffa450edef68
2018-03-29 08:20:42 +00:00
Taher A. Alkhateeb 551cada3c5 Improved: remove unnecessary lines for defining owasp repository
We switched to jcenter, and hence no need for these extra lines.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1827400 13f79535-47bb-0310-9956-ffa450edef68
2018-03-21 10:25:28 +00:00