Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 354260caff In framework/base/lib/ updates Xalan from 2.7.1 to 2.7.2 because of CVE-2014-0107 (was fixed at XALANJ-2435) - https://issues.apache.org/jira/browse/OFBIZ-6905
This implies to update also Xerces from 2.9.1 to 2.11.0 and also xml-apis from 2.9.1 to 1.4.01 (2.9.1 was a wrong version number. It was actually part of the Xerces 2.9.1 package but I was unable to find the real version number then at https://xerces.apache.org/xerces2-j/releases.html)

Also updates Xalan from 27(?) to 2.7.2 in cmssite/template/docbook/extensions. I rendered https://localhost:8443/cmssite/cms/APACHE_OFBIZ_HTML w/o issues
	
Note: According to the DOM Level 3 specification and DOM Level 2 errata the createElementNS and createAttributeNS methods convert empty string namespaceURI to null. 

jleroux: though the tests pass I'm not sure all is covered...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730882 13f79535-47bb-0310-9956-ffa450edef68
2016-02-17 17:29:40 +00:00
Jacques Le Roux a92fa2278d Reverts r1730320 because tests don't pass and I need to have the tests clean to move ahead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730873 13f79535-47bb-0310-9956-ffa450edef68
2016-02-17 16:57:08 +00:00
Shi Jinghai 575b530f2f OFBIZ-6715 Solr rebuild problem.
Changes are:
1. Comment out solr eecas.xml as it's duplicated to ecas in eecas_product.xml.
2. Add default-value="solrdefault" to indexName of addToSolr service.
3. Replace some tabs with spaces.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730790 13f79535-47bb-0310-9956-ffa450edef68
2016-02-17 07:32:08 +00:00
Jacques Le Roux d5d7d732fb The empty.txt file is necessary but not the deserialize-trace.txt and is-deserialized.txt files
Those are only used when you want to create your own white-list

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730758 13f79535-47bb-0310-9956-ffa450edef68
2016-02-16 21:56:16 +00:00
Jacques Le Roux 834882ee59 No functional change, I forgot to replace the content of this README.txt file, copied from the dependency check folder, by the content for the notsoserial Java agent.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730747 13f79535-47bb-0310-9956-ffa450edef68
2016-02-16 20:43:14 +00:00
Jacques Le Roux df8aa5108e Reverts previous useless commit (not functional)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730740 13f79535-47bb-0310-9956-ffa450edef68
2016-02-16 19:41:56 +00:00
Jacques Le Roux a2e0f357fb No functional changes: modifies UTF8 encoding
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730739 13f79535-47bb-0310-9956-ffa450edef68
2016-02-16 19:40:06 +00:00
Jacques Le Roux 12bc097918 Because I had changes pending for "Use only HTTPS in OFBiz" - OFBIZ-6849, I forgot to commit changes done for the start*-secure ant targets and notsoserial in the main build.xml files in previous commit (r1730735)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730736 13f79535-47bb-0310-9956-ffa450edef68
2016-02-16 19:25:19 +00:00
Jacques Le Roux 55824f2f48 This commit replaces the contrast Java agent by the notsoserial Java agent which can be used to protect OFBiz instances from possible Java serialize vulnerabilities.
For that it modifies the *-secure targets (start-secure, start-batch-secure, start-pos-secure, start-both-secure) to use the notsoserial Java agent with its most secure setting. 
See https://cwiki.apache.org/confluence/display/OFBIZ/The+infamous+Java+serialize+vulnerability for more information 

The notsoserial Java agent is placed in the tools/security/notsoserial folder and a dependency-check folder created under the tools/security folder to move there the dependency-check files from the tools/security folder.

The demos will be using the notsoserial Java agent ASAP.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730735 13f79535-47bb-0310-9956-ffa450edef68
2016-02-16 19:07:51 +00:00
Jacques Le Roux 612d0f6cd7 DB2 example based on http://markmail.org/message/ez55yv5m36liliue - OFBIZ-1607
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730616 13f79535-47bb-0310-9956-ffa450edef68
2016-02-15 21:39:27 +00:00
Hans Bakker 8393ea1f37 https://issues.apache.org/jira/browse/OFBIZ-6845: On the balance sheet, it display incorrect value on the total of long-term asset.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730456 13f79535-47bb-0310-9956-ffa450edef68
2016-02-15 06:33:00 +00:00
Shi Jinghai d7b237e5c1 Refs OFBIZ-6715 Solr rebuild problem
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730323 13f79535-47bb-0310-9956-ffa450edef68
2016-02-14 12:13:29 +00:00
Shi Jinghai 2abe4b41e3 Refs OFBIZ-6715 Solr rebuild problem
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730320 13f79535-47bb-0310-9956-ffa450edef68
2016-02-14 11:59:59 +00:00
Jacques Le Roux f2d6d27b6a A patch from Oleg Andreyev for "Error during first attempt of the synchronisation" https://issues.apache.org/jira/browse/OFBIZ-6893
Trivial error due to incorrect parameters passed to EntityQuery.where()


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1730035 13f79535-47bb-0310-9956-ffa450edef68
2016-02-12 15:03:48 +00:00
Jacopo Cappellato f16d1f0717 OFBIZ-6568 With the implementation of @BaseScript annotations (introduced with Groovy 2.3.0) something was broken in the CompilerConfiguration.setScriptBaseClass method and an error is thrown when our scripts are executed; the workaround is to execute at startup a script containing the @BaseScript annotation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1729809 13f79535-47bb-0310-9956-ffa450edef68
2016-02-11 11:24:51 +00:00
Jacopo Cappellato b0bbe4d430 OFBIZ-6568: upgraded Groovy to the latest version (2.4.5).
[CVE-2016-2170] The infamous Java serialization vulnerability


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1729609 13f79535-47bb-0310-9956-ffa450edef68
2016-02-10 14:38:00 +00:00
Jacques Le Roux 806be00fc5 No functional change: I put a dot just before, so better with a Capital!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1729349 13f79535-47bb-0310-9956-ffa450edef68
2016-02-09 10:31:28 +00:00
Jacques Le Roux 9d58ec2a48 Implements "Hide sessionId in logs by default, show them using a properties" - https://issues.apache.org/jira/browse/OFBIZ-6886
There are few cases where we show the sessionId in logs (using UtilHttp.getSessionId()  in or HttpSessionEvent.getSession().getId()) in other places)
Despite we secured the log access at r1489461, I feel better using a properties to opt in, false by default.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1729348 13f79535-47bb-0310-9956-ffa450edef68
2016-02-09 10:26:26 +00:00
Jacques Le Roux cc3d67d2be A patch from Pierre Smits for "Extend the PostalAddress entity with additional elements" https://issues.apache.org/jira/browse/OFBIZ-6882
Various modern day 3rd party delivery solutions (e.g. PostNL in The Netherlands) require that elements are delivered separately, so that addresses can be checked more easily.

Current definition of the PostalAddress doesn't have separation of:
* street name
* house number
* house number addition or extension


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1729198 13f79535-47bb-0310-9956-ffa450edef68
2016-02-08 16:00:51 +00:00
Jacques Le Roux 327fb83021 A patch from Tomas Pytelka for "Czech translation" https://issues.apache.org/jira/browse/OFBIZ-6885
jleroux: this was git patch, I'm now used to change them to apply, but I will explain how to generate svn patch from it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1729078 13f79535-47bb-0310-9956-ffa450edef68
2016-02-08 07:56:23 +00:00
Jacques Le Roux cdd350b7aa Fixes a typo: xml != xlm
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1729005 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 18:38:19 +00:00
Jacques Le Roux 5aaea30d20 To be consistent with r1729002, removes also one of the ".properties" part which was left in ecommerce/login.ftl
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1729004 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 18:33:13 +00:00
Jacques Le Roux adb90faef8 A modified patch from Pierre Smits for "Replace Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue in .ftl files with EntityUtilProperties variant" https://issues.apache.org/jira/browse/OFBIZ-6884
Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue is used in several .ftl files. 

Replaces with EnittyUtilProperties variant where appropriate. 

jleroux: In this is the 2nd commit from the 3rd patch (the 2nd had issues) I fixed 2 "typos" I spotted while reviewing in
  ecommerce/customer/editcontactmech.ftl
  ecommerce/customer/newcustomer.ftl
where "UtilProperties" was not replaced



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1729002 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 18:23:49 +00:00
Jacques Le Roux c19af8a60b Reverts r1728959 because of misc. issues with the patch, see my comment at https://issues.apache.org/jira/browse/OFBIZ-6884
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728961 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 13:59:41 +00:00
Jacques Le Roux 3a5cc393cf A patch from Pierre Smits for "Replace Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue in .ftl files with EntityUtilProperties variant" https://issues.apache.org/jira/browse/OFBIZ-6884
Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue is used in several .ftl files. 

Replaces with EnittyUtilProperties variant where appropriate.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728959 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 13:18:50 +00:00
Jacques Le Roux f9928cbc55 Since
r1727987: Removes the forceManualJsessionid feature - OFBIZ-6867 
and
r1728121: Gets rid of the session-cookie-accepted feature - OFBIZ-6871
are done we can remove the now useless cookies variables, this does it


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728660 13f79535-47bb-0310-9956-ffa450edef68
2016-02-05 13:18:44 +00:00
Hans Bakker 9d39583bcf be able to set accounting company in the header, so other companent can change it too. https://issues.apache.org/jira/browse/OFBIZ-6802
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728584 13f79535-47bb-0310-9956-ffa450edef68
2016-02-05 01:45:50 +00:00
Julien Nicolas 117acbcbb6 Fix rainbowstone theme personnal avatar image - JIRA6881
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728562 13f79535-47bb-0310-9956-ffa450edef68
2016-02-04 22:40:33 +00:00
Nicolas Malin 179106169f correct typo, no functional change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728560 13f79535-47bb-0310-9956-ffa450edef68
2016-02-04 22:07:55 +00:00
Julien Nicolas 584508c51c JIRA6843 - Fix issue on avatar.ftl for rainbowstone theme
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728425 13f79535-47bb-0310-9956-ffa450edef68
2016-02-04 08:56:02 +00:00
Taher A. Alkhateeb 907726c1ff fix the classpath file for updated tomcat libraries
The tomcat libraries that were updated in the framework
changed their names slightly. This commit updates the
names for the IDE to work correctly


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728411 13f79535-47bb-0310-9956-ffa450edef68
2016-02-04 06:57:52 +00:00
Hans Bakker 047ee1e342 update of accounting NL labels: https://issues.apache.org/jira/browse/OFBIZ-6875
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728398 13f79535-47bb-0310-9956-ffa450edef68
2016-02-04 01:28:39 +00:00
Julien Nicolas 324bc0af74 Add new theme rainbowstone JIRA6843
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728388 13f79535-47bb-0310-9956-ffa450edef68
2016-02-03 22:51:33 +00:00
Jacques Le Roux 82cecfdfcc Removes forceHttpSession feature - https://issues.apache.org/jira/browse/OFBIZ-6879
We should always use HTTPS as explained at OFBIZ-6849

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728381 13f79535-47bb-0310-9956-ffa450edef68
2016-02-03 22:07:10 +00:00
Jacques Le Roux 7840fa5d02 Not sure it's a real issue but stumbled upon while doing automated tests: webSiteId was null
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728376 13f79535-47bb-0310-9956-ffa450edef68
2016-02-03 21:24:28 +00:00
Jacques Le Roux fffc684891 Removes all sessionsIds put in URLs - https://issues.apache.org/jira/browse/OFBIZ-6872
We should always use sessionIds in cookies and newer have sessionsIds in URLs. So I will remove all sessionsIds in URLs. There are 2 cases:

* the part related to spiders in RequestHandler
* HtmlFormRenderer.appendExternalLoginKey() (there is also an appendExternalLoginKey method in MacroFormRenderer class but it's not used OOTB)

I also removed some old commented out code in RequestHandler class

There are also many cases where we show the sessionId in logs (using UtilHttp.getSessionId()) I wonder if we should not keep those commented out or change the debug info level. Also HttpSessionEvent.getSession().getId() is directly used in some places for the same purpose (log)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728375 13f79535-47bb-0310-9956-ffa450edef68
2016-02-03 21:09:28 +00:00
Gil Portenseigne 63e01c97f7 OFBIZ-6869 : Add properties in widget.properties, for easy customization of JGrowl alert. Thanks Jacques for the idea
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728351 13f79535-47bb-0310-9956-ffa450edef68
2016-02-03 19:18:35 +00:00
Nicolas Malin 5e9bc5a1d1 convert simple crud service to entity-auto for the follow entities :
ProductPaymentMethodType, SupplierProduct, CommunicationEventProduct, ProductCategoryMember, ProductFeatureDataResource, ProductConfig, ProductConfigItem, ProductConfigOption, ProductConfigProduct, ProductPriceRule, ProductPriceCond, ProductPriceAction, PhysicalInventory, ProductFacilityLocation, Facility, FacilityLocation, FacilityGroupMember, FacilityGroupRollup, FacilityParty, FacilityContent, InventoryItemLabelType, InventoryItemLabelAppl, InventoryItemLabel, ProductPromo, ProductPromoCode, ProductPromoCategory, ProductPromoCodeEmail, ProductPromoCodeParty, ProductPromoProduct, ProductPromoRule
Added a new service productPriceGenericPermission for acces control to related price service. Issue OFBIZ-6873

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728261 13f79535-47bb-0310-9956-ffa450edef68
2016-02-03 07:27:21 +00:00
Jacques Le Roux e4a0586ff2 Gets rid of the session-cookie-accepted feature - https://issues.apache.org/jira/browse/OFBIZ-6871
Since OFBIZ-6867 is now done, it will no longer be used OOTB and anyway should not be needed because we should preferably always use sessionIds in cookies and newer have sessionsIds in URLs.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728121 13f79535-47bb-0310-9956-ffa450edef68
2016-02-02 14:10:08 +00:00
Gil Portenseigne f3dd6cbadc OFBIZ-6869 : Jgrowl enhancement for internationalization, center and speed up display, with some format/typo fixes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728029 13f79535-47bb-0310-9956-ffa450edef68
2016-02-02 00:38:51 +00:00
Nicolas Malin 40d44a3513 Add new template location : VT_LOGIN_TMPLT_LOC for the login
VT_CHPWD_TMPLT_LOC for the changePassword
VT_FGPWD_TMPLT_LOC for the forgetPassword
VT_GSQUE_TMPLT_LOC for the getSecurityQuestion
Related issue OFBIZ-6868. The origin requirement came from issue OFBIZ-6843 with proposition to adding new theme with dedicate template for these previous element

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728026 13f79535-47bb-0310-9956-ffa450edef68
2016-02-02 00:08:55 +00:00
Jacques Le Roux 0e7c4d0a5c Removes the forceManualJsessionid feature - https://issues.apache.org/jira/browse/OFBIZ-6867
This follows Scott's comment at https://issues.apache.org/jira/browse/OFBIZ-6111?focusedCommentId=15076677

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1727987 13f79535-47bb-0310-9956-ffa450edef68
2016-02-01 18:30:43 +00:00
Jacques Le Roux e012e37b59 A patch from Pierre Smits for "Have the ability to add terms to invoices" https://issues.apache.org/jira/browse/OFBIZ-6865
Currently in UI there is no way that terms can be added to an invoice.

jleroux: Works well, links to edit/delete a Term, for instance from the list at "createInvoiceTerm" request would be welcome...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1727894 13f79535-47bb-0310-9956-ffa450edef68
2016-02-01 07:18:35 +00:00
Jacques Le Roux 3b3420c1f6 Reverts r1727643 for "Load JDBC drivers when creating tenant on PostgreSQL or mySQL" https://issues.apache.org/jira/browse/OFBIZ-6863
As Pierre commented: this is opening up a potential risk in the way that when establishing a new tenant the integrated download task could be downloading a different driver than has been done for older tenants. Resulting in having multiple drivers accessible by the classloader and unexpected results...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1727708 13f79535-47bb-0310-9956-ffa450edef68
2016-01-30 15:04:46 +00:00
Jacques Le Roux 9a814915b8 Implements "Load JDBC drivers when creating tenant on PostgreSQL or mySQL" https://issues.apache.org/jira/browse/OFBIZ-6863
It's only a matter of calling respectively ant targets *download-PG-JDBC* and *download-mySQL-JDBC* when chaining *create-tenant-on-MySQL* or *create-tenant-on-PostgreSQL* from *create-tenant* main target

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1727643 13f79535-47bb-0310-9956-ffa450edef68
2016-01-29 21:47:53 +00:00
Nicolas Malin 0c5de17f41 Add the possibility to set a blackout period for job manager service. During this time all async and scheduled service are put on hold.
This improvement add a entity JobManagerLock, a new screen to add/edit job manager lock and an information for end user on FindJob and ScheduleJob screen.
See more information on issue OFBIZ-6790. Thanks to Jacques for sharing on this improvement.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1727570 13f79535-47bb-0310-9956-ffa450edef68
2016-01-29 12:52:34 +00:00
Julien Nicolas ccc37aea88 JIRA OFBIZ-6856 - Contact Mech Translation in Facility Application
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1727207 13f79535-47bb-0310-9956-ffa450edef68
2016-01-27 22:28:09 +00:00
Jacques Le Roux 96402ff1c5 A patch from Pierre Smits for "Add wiki documentation regarding the solr component" https://issues.apache.org/jira/browse/OFBIZ-6592
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1727001 13f79535-47bb-0310-9956-ffa450edef68
2016-01-27 11:29:18 +00:00
Nicolas Malin 63c0ab956e Add service crud for AgreementItemAttribute, related issue OFBIZ-6857
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1726951 13f79535-47bb-0310-9956-ffa450edef68
2016-01-27 08:16:07 +00:00
Jacques Le Roux 2dff326b4b Fixes a typo, I missed a NOT in a comment - OFBIZ-6792
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1726910 13f79535-47bb-0310-9956-ffa450edef68
2016-01-26 21:29:57 +00:00