Fix an old TODO replacing streamDataResource with getDataResourceStream DataResourceWorker method, this fixing OTHER_OBJECT stream dataResource management.
Thanks Jacques for the feedback
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1739194 13f79535-47bb-0310-9956-ffa450edef68
Implements a PagedList object (stores list of data items, resultset size, viewSize, viewIndex, lowIndex (called startIndex) and highIndex (called endIndex), also a utils class that returns the PagedList object based on a EntityListIterator, viewSize and viewIndex.
And implements a queryPagedList method in EntityQuery, used as an example in findOrders service Java implementation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738900 13f79535-47bb-0310-9956-ffa450edef68
============================================================
relocate .ftl files in the accounting component
============================================================
Thanks Pierre Smits for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738754 13f79535-47bb-0310-9956-ffa450edef68
jleroux: I put back the cmseditor id for ELECTRONIC_TEXT in WebSiteCMSContent.ftl and added back the createEditor() call in callDocument function jQuerry Ajax Request
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738614 13f79535-47bb-0310-9956-ffa450edef68
We here at [Lusini|http://www.lusini.de/] did several improvements to the CMS backend to make it more usable for large CMS installations.
* Improved performance of CMS tree
** loading nodes dynamically using AJAX
*** Created ContentJsonEvents to handle the JSON calls
** use OFBiz entity caches
** removed duplicate execution of WebSitePublishPoint.groovy
*** removed reference from controller.xml as it is not used anywhere
* Moving nodes in CMS tree possible now using drag'n'drop
** ContentJsonEvents returns updated node attributes
** Adjusted WebSiteCMSNav.ftl to update the moved node with the data from the ajax request
** Needed to replace the jstree jQuery plugin by the current version available on the jstree website
* Made nodes deleteable
** added remove to context menu
** We did not want to delete the WebSitePathAlias entities right away, so we added a fromDate and thruDate to it.
*** extended WebSitePathAlias entity definition: added fromDate and thruDate
*** now checking for date range everywhere when accessing path aliases
*** This also allows users to publish or unpublish contents under a certain URL automatically at some time in the future.
** created event to "delete" a node
*** thruDate of all assocs pointing to this node are set to current timestamp
*** thruDate of WebSitePathAliases pointing to this content or any contents below are set to current timestamp
*** this way nothing is actually removed from the DB and a "undo" would be possible if necessary
** extracted context menu to variable so it can be reused for all trees
* fixed missing references to uiLabels in CMS menu bar
* Activated cookie plugin so the selected node is remembered
jleroux: I made few changes
* Use of UtilGenerics.cast() in new ContentJsonEvents.java rather than @SuppressWarnings("unchecked")
* Removal of the commented out block "Lusini: disable RTE". I see no reasons why we would not use elRTE. Notably in relation with adding errors where it's currently used in trunk demo
* I changed the line
var unmovableSubtrees = [false, "categoryChildren_LusiniBrowseRoot", "homeContentsRoot", "merchantContentsRoot"];
We have no such subtrees OOTB but it's good to keep the idea, I just renamed categoryChildren_LusiniBrowseRoot to categoryChildren and put an explaining comment
* I have roughly added the labels ContentWebSiteErrors, ContentWebSiteAddNewErrors and ContentWebSiteAddError, though I have a doubt about how this works. At least it's different than on trunk demo where it seems to works better (despite having uncommented out elRTE in this commit). ALso I don't remember how to add a menu worked (if it worked).
* I checked the version of jstree we use is the same than in the original patch from Christoph Neuroth. BTW at r1559769 I tried to update jstree to jstree 3 but gave up.
* I removed the jquery.cookie.js implemnentation and replaced link in WebSiteCMSNav.ftl. I already updted to jquery.cookie-1.4.0 at r1559769
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738588 13f79535-47bb-0310-9956-ffa450edef68
============================================================
relocate .ftl files in the framework/webtools component
============================================================
Thanks Pierre Smits for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738581 13f79535-47bb-0310-9956-ffa450edef68
Thanks Kulwant for reporting and providing patch for the issue. Thanks Deepak Dixit for reviewing the patch and providing improvement suggestions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738122 13f79535-47bb-0310-9956-ffa450edef68
============================================================
relocate .ftl files in the marketing component
============================================================
Thanks Pierre for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737969 13f79535-47bb-0310-9956-ffa450edef68
No functional change. Replaces deprecated code. I stumbled upon this by chance. I wanted to entertain myself and learn something, this was much fun (not really :/)
The new CloseableHttpClient is great but I was very surprise to have to put a catch block into a finally. I double-checked I see no other ways (but to throw a IOException and I wanted to log)
In SagePayUtil.java, I wondered if deprecated BasicHttpParams was useless or not. I checked the source, which extends AbstractHttpParams and HttpParams, the default constructor does not set anything. We can get rid of it, I guess it was forgotten there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737688 13f79535-47bb-0310-9956-ffa450edef68
Problem
=======
Go to https://localhost:8443/ecommerce/
Popup (tooltip) contains the same image as the target.
Pointless to repeat the same content in a popup (tooltip).
jleroux: I added the introduction of LARGE_IMAGE_URL and updated to reflect the productsummary.ftl location change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737627 13f79535-47bb-0310-9956-ffa450edef68
Currently there are few Groovy scripts not in components WEB-INF/actions sub-folders.
Before moving Groovy scripts as we decided in OFBIZ-6810 we should move the few Groovy scripts not in components WEB-INF/actions sub-folders to these WEB-INF/actions sub-folders. So we will not miss one and it will be a "straightforward" task to move then as we decided in OFBIZ-6810.
The 1st task here will be to fix a bug related with ShowProductionRun.groovy.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737603 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@1737557 13f79535-47bb-0310-9956-ffa450edef68
It partially reverts the changes done by
r1736867 for OFBIZ-6817 (manufacturing)
Partially because it only restores the deleted *.ftl files (and ShowProductionRun.groovy: its location was not handled right, from its creation in pre apache era)
I'll continue the work tomorrow, I'm now sure no history will be lost.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737531 13f79535-47bb-0310-9956-ffa450edef68
In ProductContentWrapper#getProductContentAsText and all similar content wrappers using a cache, the cacheKey does not include the new encoderType:
String cacheKey = productContentTypeId + SEPARATOR + locale + SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId");
This makes it possible for subsequent calls on the same wrapper using different encoderTypes to return content having the wrong encoding and create potential security flaws.
The key should include the encoderType:
String cacheKey = productContentTypeId + SEPARATOR + locale + SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId") + SEPARATOR + encoderType;
jleroux: I fixed all possible such occurrences (ie when encoderType is used)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737440 13f79535-47bb-0310-9956-ffa450edef68
In ProductContentWrapper#getProductContentAsText and all similar content wrappers using a cache, the cacheKey does not include the new encoderType:
String cacheKey = productContentTypeId + SEPARATOR + locale + SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId");
This makes it possible for subsequent calls on the same wrapper using different encoderTypes to return content having the wrong encoding and create potential security flaws.
The key should include the encoderType:
String cacheKey = productContentTypeId + SEPARATOR + locale + SEPARATOR + mimeTypeId + SEPARATOR + product.get("productId") + SEPARATOR + encoderType;
jleroux: I fixed all possible such occurrences (ie when encoderType is used)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737415 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@1737087 13f79535-47bb-0310-9956-ffa450edef68
Problem
=======
Go to http://localhost:8080/ecommerce/
Change the language dropdown from English to another language will revert back to English. I am using SVN revision 1735923
jleroux: This was due to OFBIZ-6879 ("Remove forceHttpSession feature"). Now as soon as you start with HTTPS instead of HTTP it works. I mean other links don't get back on HTTP, see OFBIZ-6966 for details... More to come with OFBIZ-6849, hopefully soon...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1737046 13f79535-47bb-0310-9956-ffa450edef68
Problem
========
Go to https://localhost:8443/ecommerce/gift-cards-GC-100-c
When the mouse hovers on a product image in a list view, the popup fades in and out non-stop.
Cause
=====
The list view has a narrower height than the grid (matrix) view. This causes the popup to overlay on the target and results in the cycling.
Quick Fix
==============
To illustrate the problem, we change the display to grid view, instead of list view, by append the following to the CatalogDetail.groovy file
{quote}
context.put("numCol", 3);
context.viewSize = 12;
{quote}
Better Solution
===============
Use tooltip from jQuery UI. Works correctly when the products are displayed in list view / grid view. A patch will be provided.
jleroux: I checked, there should not be other cases like this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736851 13f79535-47bb-0310-9956-ffa450edef68
Long ago I wanted to implement a VAT report. At r738452 I already committed "an unused taxAuthorityVATReport request/view-map in accounting controller (part of another task I slowly work on)".
Here the part I was working on. I did not change anything since but I prefer now to have this in repo. Maybe someone will complete it and maybe this will be me... later...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736737 13f79535-47bb-0310-9956-ffa450edef68
Currently many properties files in various components are named after the component, i.e. the bi component has bi.properties.
In order to have consistency from component to component the AccountingConfig.properties file must be renamed to accounting.properties and all references in other components should reflect the change.
jleroux: I also changed a bunch of accountingconfig names in comments/descriptions/etc. And of course as ever I forgot to update the view before committing (or to save sources) here are missing parts from previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736736 13f79535-47bb-0310-9956-ffa450edef68
Currently many properties files in various components are named after the component, i.e. the bi component has bi.properties.
In order to have consistency from component to component the AccountingConfig.properties file must be renamed to accounting.properties and all references in other components should reflect the change.
jleroux: I also changed a bunch of accountingconfig names in comments/descriptions/etc.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736734 13f79535-47bb-0310-9956-ffa450edef68
Thanks to James Young report!
jleroux: I moved
<value xml:lang="fr">Créer un référencement de categorie/produits</value>
<value xml:lang="en">Modifier le contenu de référencement pour la Categorie</value>
into their rights positions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736693 13f79535-47bb-0310-9956-ffa450edef68
Currently when a new production run is created, the workeffort purpose type id is set to WEPT_PRODUCTION_RUN. This setting should also be applied to the associate production run tasks.
However, this doesn't happen. Instead the workeffort purpose type id from the routing task is copied.
jleroux: I agree with Pierre after a short discussion. This patch will ensure that routing tasks will be visible in the CAL_MANUFACTURING calendar without losing any information since the association, be a routing task or a task for a production run, will remain in the WorkEffortAssoc entity with a workEffortAssocTypeId = “WORK_EFF_TEMPLATE”.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736621 13f79535-47bb-0310-9956-ffa450edef68
When inbound and outbound shipments are registered also WorkEffort records are persisted.
* This action doesn't set the workEffortPurposeTypeId for the created work efforts.
jleroux: 2nd and last part
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736606 13f79535-47bb-0310-9956-ffa450edef68
When inbound and outbound shipments are registered also WorkEffort records are persisted.
* This action doesn't set the workEffortPurposeTypeId for the created work efforts.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736409 13f79535-47bb-0310-9956-ffa450edef68
jleroux: I have no added the PostalAddress_FRA.ftl. There was only a simple one and it seems better to me. I also fixed some labels issues as reported in the Jira
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736248 13f79535-47bb-0310-9956-ffa450edef68