Commit Graph
1959 Commits
Author SHA1 Message Date
Jacopo Cappellato 99b7f462f2 Refactoring of Visit/Visitor/ServerHit* (and related) entities in order to be able to maintain them in a database separate from the main transactional database:
1) removed foreign key relationship from/to this group of entities and the other entities of the OFBiz data model; the fields are still available but they are not enforced by a foreign key constraint
2) removed one view entitiy joining Visit with Party entities and refactored the code that was using it in order to provide the same behavior
3) added a new entity group ("org.ofbiz.stats") for the Visit/Visitor/ServerHit* (and related) entities; for now the group is not active so that the entities are still in the same database as before; however assigning them to a different database is now a matter of uncommenting the group file definition in framework/webapp/ofbiz-component.xml and provide the new datasource definition
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647271 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 09:19:33 +00:00
Ashish Vijaywargiya ed26dd4dc4 Applied patch from jira issue OFBIZ-4946 - Getting error when uploading a file after creating a data resource.
Thanks Ashish Ambulkar for creating the issue. Thanks Arun, Jacques for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646984 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 14:22:50 +00:00
Ashish Vijaywargiya 30b9b75df7 Applied patch from jira issue - OFBIZ-4360 - Content is getting public to web search engine no privacy.
Thanks Deepak for the contribution. Thanks patrick LE BLAN for creating the issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646934 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 09:26:21 +00:00
Ashish Vijaywargiya 682d5e14c8 Applied all the patch files from jira issue - OFBIZ-5893 - Use EntityQuery Builder methods in goovy files by replacing Entity Engine methods.
Thanks so much Arun for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646916 13f79535-47bb-0310-9956-ffa450edef68
2014-12-20 04:31:20 +00:00
Ashish Vijaywargiya f19b8bdfe7 Reverting r1646165. It seems that changes that we did for <property-to-field> are not needed. I will commit the new changes soon.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646191 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 10:49:41 +00:00
Ashish Vijaywargiya fa7cb8eb15 Applied recent patch from jira issue - OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue().
Thanks Arun for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1646165 13f79535-47bb-0310-9956-ffa450edef68
2014-12-17 07:57:56 +00:00
Ashish Vijaywargiya 9e044d163a Applied patch from jira issue - OFBIZ-5902 - Fetch configurable settings data driven by replacing UtilProperties.getPropertyValue() method with EntityUtilProperties.getPropertyValue(). Thanks so much Arun for this important contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1644015 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 10:09:22 +00:00
Jacopo Cappellato 0e421f293e OFBIZ-5894 When ContentWorker.renderContentAsText is used to render content that have electronicText with empty textData then it renders a string with the "null" value: this commit fix the issue. Thanks to Deepak Dixit for the bug report and fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1643088 13f79535-47bb-0310-9956-ffa450edef68
2014-12-03 10:51:52 +00:00
Jacopo Cappellato 3c128ad8b8 OFBIZ-5896 This commits fixes a regression I introduced with rev. 1635232 (this actually reverts that commit) and provides a different and better fix for the error affecting the "Did you know?" screenlet.
ContentServicesComplex.getAssocAndContentAndDataResourceCacheMethod was not using the passed contentId in condition list, and also was not using the ContentAssocDataResourceViewFrom/To view entity to get the result. Thanks to Deepak Dixit for the patch.
Misc minor cleanups (removed commented out code) and some small formatting fixes.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1643061 13f79535-47bb-0310-9956-ffa450edef68
2014-12-03 07:17:12 +00:00
Jacques Le Roux b48c6a16b6 At r1639887 I forgot to put the content of templateContext in the local tempTemplateContext. Thanks to Deepak for spotting it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640717 13f79535-47bb-0310-9956-ffa450edef68
2014-11-20 10:49:56 +00:00
Jacques Le Roux 6fd38f2cc0 OFBIZ-5822 - Uses a tempTemplateContext instead of templateContext which is used later in the method, thanks to Scott's post on dev ML
I will wait to commit the last changes for the Poodle vulnerability in release branches (for running tests with Java 1.7) before backporting, because I used the "new" diamond operator here (1st in OFBiz it seems)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639887 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:06:50 +00:00
Ashish Vijaywargiya b889daf058 Applied patch from jira issue - OFBIZ-4362 - MapKey for CMS content cannot be updated.
Thanks Manuela for reporting the bug, Thanks Deepak for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639867 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 12:19:44 +00:00
Jacques Le Roux 1e75493723 A patch from Pierre Gaudin for "use requestParameters for customMethod call" https://issues.apache.org/jira/browse/OFBIZ-5822
For a content, you can set a custom method that perform an action before content's rendering.
Unfortunately, in the customMethod call, the request Parameters can't be used because they are not set into the map that is used to create custom method IN parameters.
This patch solves this problem

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639606 13f79535-47bb-0310-9956-ffa450edef68
2014-11-14 11:15:54 +00:00
Jacques Le Roux 1fe3e6de9c Comments out some Chinese duplicated labels, fixes a NL labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635946 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 13:22:05 +00:00
Jacopo Cappellato 77e602dc99 Fixes for the "Did you know?" screenlet in ecommerce that was throwing errors after Scott's recent fix to a content related method (the fix has exposed the data issues).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635232 13f79535-47bb-0310-9956-ffa450edef68
2014-10-29 18:02:51 +00:00
Scott Gray 96cd99914e Remove unnecessary imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634027 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 08:28:47 +00:00
Scott Gray dab58e739b Convert content app's java file from Delegator usage to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634024 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 08:22:56 +00:00
Scott Gray 6b34697a86 Remove another duplicated Content record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633217 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 20:10:11 +00:00
Jacques Le Roux d1d0d3b61e A patch from Deepak Dixit for "The updation and deletion of content meta data tab is not working.Needs a change of entity ContentMetaData." https://issues.apache.org/jira/browse/OFBIZ-4927
MetaDataValue is changed from primary key to non primary key as the value can be updated.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633100 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 11:06:59 +00:00
Scott Gray cf7cffbb72 Remove duplicated or unused content seed data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632202 13f79535-47bb-0310-9956-ffa450edef68
2014-10-16 02:16:11 +00:00
Scott Gray f4dc1f9e5c Add missing generics markup and remove suppress warnings annotation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631962 13f79535-47bb-0310-9956-ffa450edef68
2014-10-15 07:35:19 +00:00
Jacques Le Roux d5507e2673 An enhanced patch from Josip Almasi for "Can't mount root web app" https://issues.apache.org/jira/browse/OFBIZ-5799
After mounting ecommerce as root web app, I got ScreenRenderException, caused by StringIndexOutOfBoundsException: String index out of range: -1 
at  org.ofbiz.product.category.CatalogUrlServlet.makeCatalogUrl(CatalogUrlServlet.java:186)

Categories and products cannot be rendered.

jleroux: I added 2 other cases to Josip's patch.
Note: you could mount the ecommerce as root web app between R9.04 and R11.04 (included)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1631203 13f79535-47bb-0310-9956-ffa450edef68
2014-10-12 16:28:31 +00:00
Nicolas Malin 7816745013 correct ClassCastException: java.lang.Integer cannot be cast to java.lang.Long reported by Deepak Dixit. Problem raise through http://demo-trunk-ofbiz.apache.org/content/control/stream?contentId= where content is associate to ElectronicText data resource
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628167 13f79535-47bb-0310-9956-ffa450edef68
2014-09-29 12:14:25 +00:00
Anil Patel cdd256649b [OFBIZ-3719] removing Debug statements I added, Sorry :)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628020 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 22:45:08 +00:00
Anil Patel 1ea2d0a765 [OFBIZ-3719] Reverting DOCTYPE hardcoding from cmsevents. Giving control back to the template.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1628014 13f79535-47bb-0310-9956-ffa450edef68
2014-09-27 22:37:46 +00:00
Jacopo Cappellato d428797b70 Some simplifications to the code introduced with my last commit: this will also simplify the backporting to release branches.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627776 13f79535-47bb-0310-9956-ffa450edef68
2014-09-26 13:12:07 +00:00
Jacopo Cappellato 8fc2c776eb The support for dynamic result names in field-to-result:
<field-to-result field="value" result-name="${key}"/>
is no more supported: converted minilang code that was still using this syntax and was broken by the refactoring.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1627763 13f79535-47bb-0310-9956-ffa450edef68
2014-09-26 12:52:38 +00:00
Anil Patel 20d5e4975f [OFBIZ-5675] Fix permission issues. Thanks Pierre Smits for bug report.
Thanks Deepak Dixit for fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626452 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 15:04:58 +00:00
Ashish Vijaywargiya 2a9b32bdab Based on Adrian's comment on dev mailing list, Providing better fix for the issue report at - OFBIZ-5739 - copyContentAndElectronicTextandAssoc service broken.
Thanks Deepak for the contribution.   

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626402 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 08:51:16 +00:00
Ashish Vijaywargiya 18e552c812 Applied patch from jira issue - OFBIZ-5739 - copyContentAndElectronicTextandAssoc service broken.
Thanks Deepak Dixit for the contribution.  

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626385 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 06:16:29 +00:00
Jacques Le Roux 5ebc58cc6a An excerpt of a patch from Nick Ho for "Add/Revise Traditional Chinese (zh-TW) translations" https://issues.apache.org/jira/browse/OFBIZ-5764
jleroux: some changes I spotted in Nick Ho's patch which sounded sound to me. Some groups of label internal ending white spaces would have been caught by HTML rendering, but anyway better like that.
I also fixed a number of wrong line returns. And found duplicates zh labels entries that I will report to Nick Ho to fix. And finally fixed some errors introduced by Nick Ho I spotted, I hope there are not too much left :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625893 13f79535-47bb-0310-9956-ffa450edef68
2014-09-18 05:54:04 +00:00
Jacques Le Roux 3b118d4842 An excerpt of a patch from Nick Ho for "Add/Revise Traditional Chinese (zh-TW) translations" https://issues.apache.org/jira/browse/OFBIZ-5764
added/revised zh-TW translations in the framework, applications and specialpurpose folders to have consistent, commonly-used meaningful terms in Traditional Chinese.

jleroux: from Nick Ho's patch I have extracted only the Chinese changes, w/o the proposed  dash to underscore changes
This contains notably this 14 "zh" (not "sh-TW") changes:
<value xml:lang="zh">人将由电子邮件接受一个临时密码。</value><!-- was 客户将通过电子邮件收到一个临时密码。 -->
<value xml:lang="zh">合计属于公司: </value>
<value xml:lang="zh"> 完整文本:${fullText}</value>
<value xml:lang="zh">供货商佣金百分比</value>
<value xml:lang="zh">文本大小</value>
<value xml:lang="zh">值</value>
<value xml:lang="zh">算子</value>
<value xml:lang="zh">不能转移已序列化的库存。</value>
<value xml:lang="zh">货运收据</value>
<value xml:lang="zh">获取标识为 ${productStoreShipMethId} 的产品店铺送货方法(ProductStoreShipmentMeth)时出错:${errorString}</value>
<value xml:lang="zh">中国人民币元</value>
<value xml:lang="zh">如果选择"specify other",下拉框旁边会出现文本框。参考form的drop-down元素的other-field-size属性说明</value>
<value xml:lang="zh">文本消息</value>
<value xml:lang="zh">能够收到和解析XML消息,但是BSR->NOUN(买卖关系->名词) ${bsrNoun} 和/或 BSR->VERB(买卖关系->动词) ${bsrVerb} 是空的</value>
I have no competency to judge these changes, but from previous Shi Jinghai's feedback I believe there are OK

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1625816 13f79535-47bb-0310-9956-ffa450edef68
2014-09-17 20:44:07 +00:00
Jacques Le Roux 8f8a5ce868 Updates from poi-3.9-20121203.jar to poi-3.10.1-20140818.jar for security reasons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1623370 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 12:27:35 +00:00
Jacopo Cappellato c907d4dbe2 Removed old, not maintained and never really used integration with the Apache Velocity template engine.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622980 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 06:57:19 +00:00
Jacopo Cappellato 75fe5a9107 Removed the old UtilJ2eeCompat util class that was probably created for compatibility with some old application servers.
UtilJ2eeCompat was used to figure out, by checking the servlet container implementation, if the response should be sent using a Writer or a OutputStream; a Writer was used for Tomcat, Websphere, Jetty, Orion, Jrun, Tradecity and an OutputStream was used for all the other servlet containers.

However accordingly to the Servlet api:

ServletResponse.getWriter():
         Returns a PrintWriter object that can send character text to the client.
ServletResponse.getOutputStream():
         Returns a ServletOutputStream suitable for writing binary data in the response.

Based on this getWriter() should always be used (for html pages) in all the containers, not just Tomcat, Websphere, Jetty, Orion, Jrun, Tradecity.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622976 13f79535-47bb-0310-9956-ffa450edef68
2014-09-07 06:32:25 +00:00
Jacopo Cappellato 1830aee2c7 Removed old code for JPublish
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1622010 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 14:18:17 +00:00
Jacopo Cappellato 5dc38e6d35 Misc cleanups to some groovy scripts (no functional changes).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621956 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 10:20:21 +00:00
Jacopo Cappellato 2a6a8e7347 Misc cleanups to the SimpleContentViewHandler class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1621950 13f79535-47bb-0310-9956-ffa450edef68
2014-09-02 09:30:23 +00:00
Anil Patel db58c60d0c [OFBIZ-5456] Reading Logo SystemProperty from database. Tested for working in Multi tenant deployment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618395 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 18:32:50 +00:00
Anil Patel 495dab207d [OFBIZ-5515] Thanks Christian Carlow for reporting the issue and ofbiz.us team for the fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618365 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 14:21:28 +00:00
Ashish Vijaywargiya d0566c2968 Applied the patch OFBIZ-4902_application.patch from OFBIZ-4902 - Replace in Freemarker templates the deprecated built-ins: default, exists, if_exists.
Thanks http://ofbiz.us team for providing the patch work.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1618336 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 11:34:57 +00:00
Jacopo Cappellato ac30f4f09e Fixed the event of an eca definition from in-validate to invoke; this fixes a service validation exception. Part of OFBIZ-4363
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614025 13f79535-47bb-0310-9956-ffa450edef68
2014-07-28 13:18:40 +00:00
Jacopo Cappellato 76ad4975fa Fix for bug reported in OFBIZ-5338: prevent the risk of adding fields to the response map that are not part of the OUT attributes of the service definition.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1610692 13f79535-47bb-0310-9956-ffa450edef68
2014-07-15 13:35:56 +00:00
Jacopo Cappellato b86c3bbdaa Applied fix contributed by Leon in OFBIZ-4363: In the definition of service "CreateDataResource", there's a (optional) OUT attribute "dataResource" which is used by method "persistDataResourceAndDataMethod" of org.ofbiz.content.ContentManagementServices; the field was never returned by the service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1610685 13f79535-47bb-0310-9956-ffa450edef68
2014-07-15 13:30:07 +00:00
Jacques Le Roux 3aa0eabfd5 A patch from Pierre Smits for "user in securityPermissionGroup "CONTENT_USER" can't access content application" https://issues.apache.org/jira/browse/OFBIZ-5673
When assigning a user to securityPermissionGroup 'CONTENT_USER' this user can't log into the content application.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1609889 13f79535-47bb-0310-9956-ffa450edef68
2014-07-12 07:23:18 +00:00
Jacques Le Roux ef9582c387 A patch from Pierre Smits for "User with update permission can't access screens in content application" https://issues.apache.org/jira/browse/OFBIZ-5676
When a user has security permission 'CONTENTMGR_UPDATE' he should be able to access various screens in the content application, but he can't.

This applies to screens associated to menu-items:
Content
DataSource
Content Setup
DataResource Setup
Template
CMS

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1609885 13f79535-47bb-0310-9956-ffa450edef68
2014-07-12 07:13:49 +00:00
Jacopo Cappellato 72836f89b4 Fix by Michael Brohl from OFBIZ-5605: Duplicate FileExtension entry for jpg in MimeTypeData.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589606 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 06:46:55 +00:00
Jacopo Cappellato 3928521b52 Applied fix by Deepak Dixit (OFBIZ-4493) to fix a class cast exception (after commit 1553890).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589601 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 06:29:37 +00:00
Jacques Le Roux b81b183404 A patch from Rong Nguyen amended by Nicolas Malin for "Approvals function doesn't work for first time" https://issues.apache.org/jira/browse/OFBIZ-5555
Scenario:
1. Go to content webapp
2. Go to CompDoc
3. Find all record
4. Edit any record
5. Click Approvals tab

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1581997 13f79535-47bb-0310-9956-ffa450edef68
2014-03-26 18:38:25 +00:00
Jacques Le Roux bd6c3c7dad A slightly modified patch from Rong Nguyen for "Render multiMenu problem when linktype="hidden-form"" https://issues.apache.org/jira/browse/OFBIZ-5557
Scenario:
1. Go to Content webapp
2. Go to CompDoc menuitem
3. Search
4. Go to 'Tree' view
5. We can not use 'Up' and 'Down' function

When menu with linktype="hidden-form" was render for each menu, they has the same name for form element, so it cause error.
My solution is add extra attribute(extra-index) for Menu, and then in menu definition we provide this attribute and the forms with different name will be rendered.
My implement was tested in this bug for Content webapp

jleroux: I have simply amended the up and down labels to have them more legible. I'd have preferred to not have all uppercased, but ran out of time for such a trivial change


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576891 13f79535-47bb-0310-9956-ffa450edef68
2014-03-12 20:37:56 +00:00