Commit Graph
27737 Commits
Author SHA1 Message Date
Mathieu Lirzin be39e09d80 Fixed: Use try with resource for closing ‘EntityListIterator’
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857084 13f79535-47bb-0310-9956-ffa450edef68
2019-04-07 19:38:09 +00:00
Mathieu Lirzin 3111fc6b40 Fixed: Remove unused ‘java.util.TreeMap’ import
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857083 13f79535-47bb-0310-9956-ffa450edef68
2019-04-07 19:35:37 +00:00
Mathieu Lirzin f2a72984e1 Fixed: Remove Raw type cast warning in ‘ObjectType’
Use ‘UtilGenerics#cast’ for shorter syntax.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857082 13f79535-47bb-0310-9956-ffa450edef68
2019-04-07 19:33:44 +00:00
Jacques Le Roux 148be77060 Improved: Have the ability to edit/remove terms of an invoice
(OFBIZ-9290)

Currently the user has the ability to add terms to an invoice, 
but doesn't have the functions to edit or remove existing terms.

jleroux: Based on Akshay Modak's patch, which was, mmm..., imperfect

Thanks: Pierre Smits for report, Akshay Modak for initial patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857076 13f79535-47bb-0310-9956-ffa450edef68
2019-04-07 10:29:10 +00:00
Scott Gray ddcbb33de8 Implemented: Allow Jobs to specify a priority and be queued accordingly by the
JobPoller so that important jobs can be prioritized over normal jobs, and low 
priority jobs can be left until last. [OFBIZ-10865]

Changes are as follows:
* Add a "priority" field to JobSandbox entity (numeric/Long)
* Add JobPriority constants class containing fields LOW (0), NORMAL (50) and HIGH (100)
* Add getPriority method to the Job interface and implement methods for AbstractJob (returns NORMAL), PersistedServiceJob (returns JobSandbox.priority) and PurgeJob (returns LOW)
* Change the JobPoller executor's queue to use PriorityBlockingQueue (unbounded) instead of LinkedBlockingQueue (bounded)
* Implement custom Comparator for the priority queue to sort by priority descending and then runTime ascending
* Change the poll size per poll to be (queueSize() - queue.size) instead of queue.remainingCapacity() due to the new queue being unbounded
* I've also opted to limit the database poll query to the poll size using maxRows() because it seemed dangerous to me to use an unconstrained query on this table
* Ensured recurring jobs receive the default (NORMAL) priority when being rescheduled so that they're sorted correctly on the next time they show up in the database poll
* Ensured jobs generated at runtime are given a default priority of NORMAL



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857071 13f79535-47bb-0310-9956-ffa450edef68
2019-04-07 07:39:47 +00:00
Jacques Le Roux d2a59bb818 Improved: no functional change
Add a "missing" new line, I could not read the last one in Eclipse

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856945 13f79535-47bb-0310-9956-ffa450edef68
2019-04-04 15:30:34 +00:00
Nicolas Malin e8b826ce3c Fixed: When add item on shopping cart, we lost orderItemAttributes
(OFBIZ-10906)
When you add an item on the cart with some orderItemAttributes with the function

    /** add rental (with accommodation) item to cart and order item attributes*/
    public int addOrIncreaseItem(...too long...)

OrderItemAttributes didn't throw to the second function and we lost them.
Thanks to Leila Mekika to found it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856880 13f79535-47bb-0310-9956-ffa450edef68
2019-04-03 14:44:22 +00:00
Jacques Le Roux 9f36abe2c5 Fixed: EmailServices.sendMail causes a NPE, when sendFrom is missing
(OFBIZ-10706)

I tried to find the history for why the service does not take the 
defaultFromEmailAddress property from general.properties and I found that It was 
last modified in revision r418498 on 02/07/2006, I think it was always broken.

This uses defaultFromEmailAddress property in sendMail if sendFrom is missing

Thanks: Benjanmin Jugl reported, Pawan Verma fixed and others for discussion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856667 13f79535-47bb-0310-9956-ffa450edef68
2019-03-31 09:14:16 +00:00
Rishi Solanki 95979acf0e [Fixed] Incorrect decorator being used over view all promotions and view promotion details screen causing back navigation. Change the decorator name on the showAllPromotions and showPromotionDetails screens. Now user can go back after navigating to both screens.
(OFBIZ-10859)
Thanks to Ratnesh Upadhyay for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856627 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 13:39:07 +00:00
Suraj Khurana e18d2f4e13 Fixed: Error message is populating while clicking on product barcode.
(OFBIZ-10743)
Used code128 to generate product barcode.
Thanks Ashish Sharma for reporting, everyone who participated in discussion and Pawan Verma for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856617 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 12:42:31 +00:00
Aditya Sharma eaa00b8c25 Added: Unit test case for service - createProductFeatureType
(OFBIZ-9089)
Slightly modified patch. Improved class name and file name.
Thanks Pradhan Yash Sharma for reporting and initial patch & Yogesh Naroliya for providing updated patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856613 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 09:37:07 +00:00
Aditya Sharma b112049a5d Improved: Replace Inline js with External js in renderDropDownField macro.
(OFBIZ-9849)
Silghtly modified patch as Specify-other Dropdown field were not working. Refactored code in combobox.js file
Thanks Dhaval Wagela for the initial patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856610 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 07:12:36 +00:00
Suraj Khurana 362f154b74 Added: Unit test case for service - CreateReturnAdjustment.
(OFBIZ-8857)
Thanks Avnindra Sharma for reporting, Pawan Verma for discussion and Vivek Singh Bisen for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856609 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 07:12:25 +00:00
Suraj Khurana f3fd5ad42a Added: Unit test case for service - updateProductCategory.
(OFBIZ-8579)
Thanks Akash Jain for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856608 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 06:57:58 +00:00
Suraj Khurana 2a9630f971 Improved: Send Email services should be called asynchronously. Checked it and not getting any error as mentioned in previous comment.
(OFBIZ-10860)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856603 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 06:29:01 +00:00
Suraj Khurana 2cecce8a22 Improved: OrderId should be set in FinAccountTrans while gift card redemption and creation.
(OFBIZ-10867)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856602 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 05:53:42 +00:00
Swapnil Mane 1879270595 Fixed: Missing oldStatusId in error when no status valid change record found
(OFBIZ-10377)

In the case of entity auto service, when an invalid status change is performed, the error message doesn't show the current status of the item from which the user is changing the status.

Thanks:  Lalit Dashora for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856598 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 05:45:34 +00:00
Suraj Khurana 922ca2d1a6 Added: Unit test case for service - getDataResource.
(OFBIZ-8423)
Thanks Tanmay Muley for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856597 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 05:43:33 +00:00
Suraj Khurana 039dfbf5fa Added: Unit test case for service - AddRequirementTask.
(OFBIZ-8931)
Thanks Avnindra Sharma for reporting and Pawan Verma for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856596 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 05:13:33 +00:00
Suraj Khurana 31e2fd3768 Improved: Corrected typo in 'GiftCertificate' UiLabels.
(OFBIZ-10861)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856595 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 04:53:12 +00:00
Suraj Khurana 755b835c8c Improved: Extended ReturnType entity with parentTypeId and hasTable fields to make it consistent with other type entities.
(OFBIZ-10868)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856592 13f79535-47bb-0310-9956-ffa450edef68
2019-03-30 04:39:13 +00:00
Gil Portenseigne 20afdb7dc5 Fixed: Switch ftpNotificationEnabled test condition to respect configuration meaning
(OFBIZ-10245)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856541 13f79535-47bb-0310-9956-ffa450edef68
2019-03-29 14:14:29 +00:00
Nicolas Malin 7a34878e51 Improved: Configure stackTrace displaying on ftl rendering
(OFBIZ-10817)

When freemarker failed to execute a template, you have on end screen rendered all java stack trace generated.

I improve this to display the stack trace only when widget is on verbose, no regression during development and when you switch to production site, in general your widget verbose is off so end user haven't stack trace and replace it by ∎ (that totally unused for them but help to detect a problem).

I also introduce two new properties on widget.properties:
    widget.freemarker.template.verbose : if your widget verbose is off and you want display the freemarker stacktrace when your template generate an exception set it to true
    widget.freemarker.template.exception.message : when you don't displaying freemarker stacktrace, you can replace it by an other message by default it use ∎ but you can set what you want, like 'ERROR', '##' or ' '

Thanks to Deepak Dixit, Jacques Le Roux, Michael Brohl and Mathieu Lirzin for their suggest

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856524 13f79535-47bb-0310-9956-ffa450edef68
2019-03-29 08:28:15 +00:00
Jacques Le Roux ad21c41b34 Improved: Improve ObjectInputStream class
(OFBIZ-10837)

Fixes CVE-2019-0189

The white list was still not complete as reported by Ed Mack
This adds 
org.apache.ofbiz.widget.model.ModelTheme
java.util.Collections 
java.util.LinkedList 
java.util.ArrayList
java.util.TimeZonz


Thanks: Ed Mack at OFBIZ-10876

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856484 13f79535-47bb-0310-9956-ffa450edef68
2019-03-28 15:36:13 +00:00
Jacques Le Roux 495a76f886 Improved: Improve ObjectInputStream class
(OFBIZ-10837)

Fixes CVE-2019-0189

There was a recurring typo in previous commit.
For arrays of primitives it should be 
"\\[Z","\\[B","\\[S","\\[I","\\[J","\\[F","\\[D","\\[C"
and not 
"[Z","[B","[S","[I","[J","[F","[D","[C"
It shows how tired I'm :/


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856460 13f79535-47bb-0310-9956-ffa450edef68
2019-03-28 08:30:21 +00:00
Jacques Le Roux 0cc1913a34 Improved: Improve ObjectInputStream class
(OFBIZ-10837)

Fixes CVE-2019-0189

There was a recurring typo in previous commit.
For arrays of primitives it should be 
"[Z","[B","[S","[I","[J","[F","[D","[C"
and not 
"[Z ","[B ","[S ","[I ","[J ","[F ","[D ","[C "
Just spotted that while reviewing again (did not have the time to test)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856459 13f79535-47bb-0310-9956-ffa450edef68
2019-03-28 08:18:19 +00:00
Jacques Le Roux 87a1138fb2 Improved: Improve ObjectInputStream class
(OFBIZ-10837)

Fixes CVE-2019-0189

The white list was still not complete as reported by Ed Mack
This adds all arrays of primitives and java.math.BigDecimal 

Thanks: Ed Mack at OFBIZ-10876

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856455 13f79535-47bb-0310-9956-ffa450edef68
2019-03-28 07:50:32 +00:00
Jacques Le Roux 6f8cb540eb Improved: Improve ObjectInputStream class
(OFBIZ-10837)

Fixes CVE-2019-0189

The white list was still not complete as reported by Wolfgang Rauchholz on user
ML 
This adds java.math.BigDecimal and "[B" (ie [B == byte[] and I don't understand
why in this case "byte[]" does not work)

It seems the warning in SafeObjectInputStream::resolveClass is not enough. 
Anyway I'll not change it.

Thanks: Ingo Wolfmayr at OFBIZ-10870

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856405 13f79535-47bb-0310-9956-ffa450edef68
2019-03-27 14:16:24 +00:00
Jacques Le Roux f886ce2474 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/trunk@1856212 13f79535-47bb-0310-9956-ffa450edef68
2019-03-25 17:47:52 +00:00
Mathieu Lirzin 6dfe4a460b Improved: Rewrite ‘getJarManifestClasspathForCurrentOs’ (OFBIZ-10872)
Simplify the code logic and rename it ‘getJarClasspath’.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856197 13f79535-47bb-0310-9956-ffa450edef68
2019-03-25 14:21:35 +00:00
Mathieu Lirzin 0c6f5308b8 Improved: Do not use deprecated Gradle dependency types (OFBIZ-10871)
The ‘compile’, ‘testCompile’ and ‘runtime’ dependency types has been
superseded by ‘implementation’, ‘testImplementation’ and ‘runtimeOnly’
in recent Gradle versions [1].

The ‘runtimeClasspath’ property from the configurations is now used to
define the classpath in the jar manifest.

[1] https://docs.gradle.org/current/userguide/java_plugin.html#sec:java_plugin_and_dependency_management


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856193 13f79535-47bb-0310-9956-ffa450edef68
2019-03-25 14:07:35 +00:00
Mathieu Lirzin 9fd02351a4 Improved: Add ‘:distTar’ and ‘:distZip’ gradle tasks (OFBIZ-10866)
Gradle provides some useful standard plugins for packaging
applications via the ‘distribution’ and ‘application’ plugins.

* The ‘distribution’ plugin [1] is providing a straightforward and
  easy way to distribute OFBiz with its dependencies which is
  convenient in a deployment context.  This is achieved by the new
  ‘distTar’ and ‘distZip’ tasks.

* The ‘application’ plugin [2] is complementing the ‘distribution’
  plugin by adding both a robust shell script and a batch script
  inside the distribution archives to allow launching OFBiz easily.

[1] https://docs.gradle.org/current/userguide/distribution_plugin.html
[2] https://docs.gradle.org/current/userguide/application_plugin.html

Thanks to Antoine Ouvrard for contributing to this work.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856179 13f79535-47bb-0310-9956-ffa450edef68
2019-03-25 11:30:08 +00:00
Nicolas Malin 2e1cacb2a8 Improved: Improve error message page to support Theming
(OFBIZ-10753)

When OFBiz raise an error, the framework use a jsp page to display it.
I improved the error page generation to support also ftl template rendering and by this way extend the theme engine to support to overide it

On controler.xml we can now use :
    <errorpage>/error/error.jsp</errorpage>
or 
    <errorpage>component://common/webcommon/error/Error.ftl</errorpage> (default configuration)

On your theme you can add your own error page :
    <template> 
      ...
      <template-file widget=menu location=component://common-theme/template/macro/HtmlMenuMacroLibrary.ftl/>
    + <template-file widget=error location=component://common-theme/template/ErrorPage.ftl/>
    </template>

The component://common/webcommon/error/Error.ftl contains the logic theming connection and to simplify source code, all framework old error page (error.jsp) have been removed to centralize all on this new page.

Thanks to Marine Desmarchelier for the error page design

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856175 13f79535-47bb-0310-9956-ffa450edef68
2019-03-25 09:31:02 +00:00
Jacques Le Roux ee75d89772 Improved: Browser Unresponsive when Loading Entity with Large Results
(OFBIZ-10716)

I came across a situation where an entity was taking too much of a time 
(browser asked me to either wait or kill) while loading/searching results in the 
Webtools application. The entity had close to 5M records, and I checked the 
server responded timely but the rendering of the screen was taking time.

When I explored the issue I came across a macro which renders the pagination on the screen, and it had a code block which was causing the screen rendering delay.

<#assign x=(listSize/viewSize)?ceiling>
  <#list 1..x as i>
    <#if i == (viewIndex+1)><option selected="selected" value="<#else><option value="</#if>${i-1}">${i}</option>
  </#list>

This code seems logical enough to me, and what I gather from this is that the 
list will render a select box with 250,000 options.

I like propose a change in this UI/UX from select box to an input text box so an 
user can navigate to any page, similar to a navigation input box in a PDF 
document reader application.

Thanks: Devanshu Vyas for the patch, Nicolas for discussion and Kumar Rahul for
testing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856145 13f79535-47bb-0310-9956-ffa450edef68
2019-03-24 13:12:12 +00:00
Swapnil Mane 29f2e071eb Improved: Moved the nodeType check after node.getTextContent() method call
(OFBIZ-10832)

Since most nodes will contain text then it will be more efficient to do a null check after retrieving nodeValue.

Thanks: Scott for your valuable inputs.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855898 13f79535-47bb-0310-9956-ffa450edef68
2019-03-20 12:15:59 +00:00
Mathieu Lirzin 280ae49452 Improved: Merge regexps inside ‘createOfbizCommandTask’
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855798 13f79535-47bb-0310-9956-ffa450edef68
2019-03-18 23:19:44 +00:00
Mathieu Lirzin 0b53c96b4b Improved: Do not guess the ‘:jar’ task output archive name
the ‘createOfbizCommandTask’ method now references the ‘outputs’
property of the ‘:jar’ task instead of hard-coding the jar file name.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855797 13f79535-47bb-0310-9956-ffa450edef68
2019-03-18 23:17:39 +00:00
Mathieu Lirzin 61e9292676 Improved: Do not pass debug mode to ‘createOfbizCommandTask’
The ‘isDebugMode’ argument of the ‘createofbizcommandtask’ method was
only set to ‘true’ inside the “ofbizDebug” rule-based task.  Given the
exceptionality of the case, this argument has been replaced with an
ad-hoc override of the ‘debug’ value after the fact.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855796 13f79535-47bb-0310-9956-ffa450edef68
2019-03-18 23:16:09 +00:00
Mathieu Lirzin 004785d729 Improved: Do not pass JVM arguments to ‘createOfbizCommandTask’
The ‘createOfbizCommandTask’ method was only called with the
‘jvmArguments’ global variable for defining the JVM arguments of
various execution tasks.  As a consequence it seems better to directly
use a reference to ‘jvmArguments’ inside the body of that method.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855795 13f79535-47bb-0310-9956-ffa450edef68
2019-03-18 23:14:21 +00:00
Mathieu Lirzin 8c4836bfb1 Improved: Provide multi-arguments to the ‘Exec#args’ method
Previously only one argument at a time was passed to the ‘Exec#args’
method.  Since it is possible to pass multiple arguments we can remove
some syntax redudancy.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855678 13f79535-47bb-0310-9956-ffa450edef68
2019-03-17 00:13:08 +00:00
Mathieu Lirzin 2b773977cb Improved: Compact the definition of the jar manifest attributes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855676 13f79535-47bb-0310-9956-ffa450edef68
2019-03-16 23:48:57 +00:00
Mathieu Lirzin 37806e8d4e Improved: Gather the javadoc options in a unique block
This is better for readability.  Additionnally we are now using single
quotes for basic strings.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855675 13f79535-47bb-0310-9956-ffa450edef68
2019-03-16 23:29:03 +00:00
Mathieu Lirzin d90431a3f5 Fixed: Adapt some javadoc to let the build succeed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855674 13f79535-47bb-0310-9956-ffa450edef68
2019-03-16 23:23:09 +00:00
Mathieu Lirzin 47d6f7a010 Improved: Assign ‘jvmArguments’ only once
Using less mutations and a more declarative style simplifies the build
script.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855669 13f79535-47bb-0310-9956-ffa450edef68
2019-03-16 20:17:18 +00:00
Deepak Dixit da188e9ef4 Improved: Added line separator while while generating svn/git info footer.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855501 13f79535-47bb-0310-9956-ffa450edef68
2019-03-14 09:33:15 +00:00
Deepak Dixit 3facb0a7ac Reverted: Changes done at r#1854306, Removed the extra space from CommonBranch uiLabel values
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855497 13f79535-47bb-0310-9956-ffa450edef68
2019-03-14 09:25:30 +00:00
Jacques Le Roux 458f2217b8 Improved: Improve ObjectInputStream class
(OFBIZ-10837)

Fixes CVE-2019-0189

The white list was still not complete as reported by Wolfgang Rauchholz on user
ML 
This adds java.util.Date

It seems the warning in SafeObjectInputStream::resolveClass is not enough. 
Anyway I'll not change it.

Thanks: Wolfgang Rauchholz

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855492 13f79535-47bb-0310-9956-ffa450edef68
2019-03-14 08:28:27 +00:00
Jacques Le Roux f94a5b94d0 Improved: Improve ObjectInputStream class
(OFBIZ-10837)

Fixes CVE-2019-0189

The white list was still not complete as reported by Wolfgang Rauchholz on user
ML 
This adds java.sql.Timestamp

It seems the warning in SafeObjectInputStream::resolveClass is not enough. 
Anyway I'll not change it.

Thanks: Wolfgang Rauchholz

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855488 13f79535-47bb-0310-9956-ffa450edef68
2019-03-14 07:42:17 +00:00
Swapnil Mane ff17b108c5 Fixed: simpleTypeConvert always returns Null for Document, Document Type and Notation Node
(OFBIZ-10832)

As per the code, getTextContent() method is used get text content of the node and its descendants but the node.getTextContent() always return Null for the following Node type
DOCUMENT_NODE, DOCUMENT_TYPE_NODE, NOTATION_NODE [1]

Since we can't get the text value of Document, Document Type and Notation Node, thus simply return the same object.

[1] https://docs.oracle.com/javase/7/docs/api/org/w3c/dom/Node.html#getTextContent()

Thanks: Deepak Dixit for reviewing the code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855403 13f79535-47bb-0310-9956-ffa450edef68
2019-03-13 12:27:13 +00:00
Rishi Solanki 8d1d113148 Implemented: Short Messaging Service(SMS) Gateway Integration. Added data model, configuration settings, data and services to support the sms services. For the specific service provider user of this implementaion needs to go for custom implementation. That means ticket contains the example of the integration how to use with sample plugin for message91 services.
(OFBIZ-10457)
Thanks to Pritam Kute for your contribution. 
Thanks to Pierre Smits and Michael Brohi for your review and inputs.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855389 13f79535-47bb-0310-9956-ffa450edef68
2019-03-13 10:02:15 +00:00