I will double-check all screens changes kept in r1737557 (ie initially committed for subtasks 25 to 32 of OFBIZ-6810)
From 1st investigation I believe there are no others (at least dependency in specialpurpose from applications, I did not check specialpurpose interdependencies yet...)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1737608 13f79535-47bb-0310-9956-ffa450edef68
r1736866 for OFBIZ-6816 (humanres)
r1736867 for OFBIZ-6817 (manufacturing)
r1736868 for OFBIZ-6819 (order)
r1736869 for OFBIZ-6837 (webpos)
r1736870 for OFBIZ-6860 (myportal)
r1736876 for OFBIZ-6812 (project)
Partially because I did not revert the changes in screens files and I already restored the *.ftl files (+ ShowProductionRun.groovy) deleted in r1736867 in their initial locations.
I noticed there is another groovy file: OrderReportPrepare.groovy. It's not used OOTB (events in relation with JasperReport commented out in order controller)
Both groovy files will need to be moved to a right location before we move groovy files also.
They might not be the only ones in this case (wrong initial locations)...
Actually I did not review these patches enough when I committed them.
Apart r1736867 (manufacturing), the ftl files were not moved but simply copied from their initial locations to the templates components sub-folders.
In r1736867 the files were not moved but deleted and copied (this maybe a patch effect, not sure we can move files using patches, I'll try)
images
So this simply deletes the templates components sub-folders and their contents
I'll soon properly move the file, in the meantime the trunk will be in an inconsistent state (because of the the changes in screens files not reverted).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1737557 13f79535-47bb-0310-9956-ffa450edef68
Also renames simple-methods-v2.xsd in simple-methods.xsd and replaces simple-methods-v2.xsd references by simple-methods.xsd references everywhere it's needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1737087 13f79535-47bb-0310-9956-ffa450edef68
Adding widgest (screens, forms, etc) so that an end-user can execute a search against the data indexed would enhance the applicability of the application.
This patch is the first increment to address the issue. Please feel free to test drive and provide feedback
Currently it includes the following aspects:
SolrMenus.xml - providing the application menu, items:
main - opening the start screen of the app
admin - opening the Solr admin page in a new target
newquery - opening the query screen
SolrScreens.xml - defining Solr specific screen widgets
CommonScreens.xml - defining the common screens for Solr specific screen widgets
SolrUiLabels.xml - defining Solr app specific labels
SolrForms.xml - defining Solr specific form widgets
controller.xml - (re)defining request-map and view-map re widgets
This file also includes a modification to web.xml of the Solr component, changing the mainDecoratorLocation
This patch currently doesn't include functionality to execute a query through widgets and show the result.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1736878 13f79535-47bb-0310-9956-ffa450edef68
Did not notice I got that
delete --force C:/projectASF-Mars/ofbiz/specialpurpose/myportal/widget/RegisterPerson.ftl
SQLite error
svn: sqlite[S10]: disk I/O error
svn: Additional errors:
svn: sqlite[S10]: disk I/O error
Deleting again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1736872 13f79535-47bb-0310-9956-ffa450edef68
Fixes "Comment out RMI related code because of the Java deserialization issue" - https://issues.apache.org/jira/browse/OFBIZ-6942
We decided to comment out as less as possible because once, in the start and both properties; the rmi part is off and the related test services are off there is no RMI related danger left (test services are not a danger but would fail during tests run).
It's then easier for users who need RMI in their projects to have only to uncomment those and not digg everywhere.
[CVE-2016-2170] The infamous Java serialization vulnerability
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1736083 13f79535-47bb-0310-9956-ffa450edef68
============================================================
ProductSearch generates an errorr
============================================================
Thanks Pierre for reporting issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1735753 13f79535-47bb-0310-9956-ffa450edef68
============================================================
Cannot find linkToProduct from createCommunicationEvent SECA
============================================================
Thanks Jacques for reporting issue and Rehan Khan for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1735750 13f79535-47bb-0310-9956-ffa450edef68
Replacing Axis2 1.6.3 by 1.7.1 version is easy as long as you don't try to replace the commons-httpclient-3.1 lib. The only noticeable change is this warning shown in log
|http-bio-8443-exec-1 |AxisConfigBuilder |W| Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer; see debug logs for more details|
It has no effects on the SOAP test services, both works.
But the main goal of this issue is a security update because commons-httpclient-3.1 lib is deprecated, no longer maintained and vulnerable and must be replaced.
This commit also concerns OFBIZ-6755 but to not mix things OFBIZ-6755 will be completed later. So to not block this issue, the commons-httpclient-3.1 lib is moved from framework/service/lib to specialpurpose/passport/lib/ where it's still required.
Normally, as explained at https://axis.apache.org/axis2/java/core/release-notes/1.7.0.html, Axis2 1.7.1 requires "HttpClient 4.2.x and should work with 4.3.x and 4.4.x, but is incompatible with 4.5.x". I did not replace commons-httpclient-3.1 by HttpClient 4.2.1, which is bundled with Axis2 1.7.1, because we have already HttpClient/Core 4.4.1 in base/lib and it works well as is (HttpClient/Core 4.4.1 is in the classpath).
To use HttpClient/Core 4.4.1 you need to change the axis2.xml files as specified in the 1.7.0 release note. But where to place this file in OFBiz is not obvious!
I decided the best way was to use Axis2 ConfigurationContextFactory.createConfigurationContextFromFileSystem() method to let know Axis2 we want the new httpclient instead of the default one (I really don't understand why the Axis2 team still prefers commons-httpclient-3.1 as default). I had to pass both locations to avoid hardcoding the repository location in the axis2.xml file.
I have also decided the best place for the "Axis2 repository" (as they call it) was in framework/service/axis2. So following Axis2 convention http://wso2.com/library/tutorials/axis2-repository/ I put the axis2.xml file in framework/service/axis2/conf.
Note: the Axis2 repository could be used to put [Apache Rampart|https://axis.apache.org/axis2/java/rampart/] as a module to secure web services...
After this change, there are a number of warnings thrown by Axis2 but they are actually interesting as they provide guidance for future use of modules and such (notably Apache Rampart)
|ttp-bio-8443-exec-10 |Utils |W| [JAXWS] - unable to load org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher
|ttp-bio-8443-exec-10 |Utils |W| [JAXWS] - unable to load org.apache.axis2.jaxws.dispatchers.MustUnderstandValidationDispatcher
|ttp-bio-8443-exec-10 |Utils |W| [JAXWS] - unable to load org.apache.axis2.jaxws.dispatchers.MustUnderstandChecker
|ttp-bio-8443-exec-10 |Utils |W| [JAXWS] - unable to load org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher
|ttp-bio-8443-exec-10 |Utils |W| [JAXWS] - unable to load org.apache.axis2.jaxws.dispatchers.MustUnderstandValidationDispatcher
|ttp-bio-8443-exec-10 |AxisConfigBuilder |W| Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer; see debug logs for more details
|ttp-bio-8443-exec-10 |AxisConfigBuilder |W| Unable to instantiate deployer org.apache.axis2.jaxws.framework.JAXWSDeployer; see debug logs for more details
While at it I replaced StAXOMBuilder (deprecated) by OMXMLBuilderFactory
I will backport the changes in the supported releases branches but R12.04 which use a too old version of HttpClient/Core. Others all use versions older than 4.2.1. I'm aware I will have to handle several conflicts by hand, some are easy others "harder". We have the passport component only in R15.12, it will be easy to neglect in older releases. I expect more work with the LICENSE file and even more with the .classpath file. Since R15.12 we use tabs in it (Adrian rightly told us to use Eclipse internal tools to edit this file, though I noted it does not respect the alphabetical order) but older releases still use spaces (and this is often a pain now, but a bright future ahead ;))
Crossing fingers with this commit, I have other changes pending in this instance (notably for OFBIZ-6849) and it got quite complicated...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1733956 13f79535-47bb-0310-9956-ffa450edef68
It's a security update. It also concerns OFBIZ-6755 but to not mix things it will be done later. So to not block this issue, the commons-httpclient-3.1 lib is moved from framework/service/lib to specialpurpose/passport/lib/ where it's still required (no code change in this commit, only libs update)
It's a test because I began this work on Windows and there the NTML Auth is expected https://axis.apache.org/axis2/java/core/docs/http-transport.html#preemptive_auth. So, on my machine, I get this error with testSOAPSimpleService and testSOAPService:
TestRunContainer |W| [JUNIT (error)] - testSOAPSimpleService : org.ofbiz.service.GenericServiceException: Service [testSoapSimple] Failed (org/apache/commons/httpclient/NTCredentials)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/NTCredentials
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.createHTTPSender(CommonsHTTPTransportSender.java:414) ~[axis2-transport-http-1.7.0.jar:1.7.0]
Since I don't want to introduce more complexity at this stage I hope the basic Auth will be used in BuildBot and the tests will all pass. Else I will revert and do more work...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1732631 13f79535-47bb-0310-9956-ffa450edef68
Pierre Smits: When loading data into OFBiz without the manufacturing component the process ends unsuccessful.
Deepak: Entity related error should be fixed under OFBIZ-6760, apart from it there are dependency of ecommerce demo data on manufacturing demo data.
jleroux: Duplicating those data (present in Manufacturing) into ecommerce is indeed a smart solution. If they are already loaded (like OOTB) they will not be loaded twice. If they are not there they will be loaded.
Conclusion: sometimes duplication is smart (especially with OFBiz data) and this is a good way to introduce independency between components...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1731665 13f79535-47bb-0310-9956-ffa450edef68
Log:
==========================================================
- Make use of ResourceLoader.readXmlRootElement, which is
non-caching; this fixes a deprecation warning.
- Use ResourceLoader.readXmlRootElement, which is a
non-caching version. This fixes a deprecation warning.
- Provide method variants (readXml{Document,RootElement}) that contain the body of the deprecated methods (getXml{Document,RootElement}).
==========================================================
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1731399 13f79535-47bb-0310-9956-ffa450edef68
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/specialpurpose@1730882 13f79535-47bb-0310-9956-ffa450edef68
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/specialpurpose@1730790 13f79535-47bb-0310-9956-ffa450edef68