Commit Graph
1959 Commits
Author SHA1 Message Date
Jacopo Cappellato e0f2b79d38 Added missing OFBTOOLS base-permission; thanks to Darrell (darrell73s <darrellofbiz@gmail.com>) for the bug report in the users mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576757 13f79535-47bb-0310-9956-ffa450edef68
2014-03-12 14:44:29 +00:00
Jacques Le Roux 4d9e447e11 Adds the conventional comment <!-- if this isn't there then with all fields empty no query will be done --> to "noConditionFind" fields. It's not quite obvious, so the more there are the better
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1576278 13f79535-47bb-0310-9956-ffa450edef68
2014-03-11 10:53:37 +00:00
Jacopo Cappellato 7d8d938a3b Performance optimization for UtilHttp.getFullRequestUrl method: instead of returning a StringBuffer object (synchronized) it now returns a String (immutable); internally it uses a StringBuilder (lighter because not synchronized) within a private context.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1570810 13f79535-47bb-0310-9956-ffa450edef68
2014-02-22 08:32:28 +00:00
Jacques Le Roux 513d684918 Closes https://issues.apache.org/jira/browse/OFBIZ-5521 as not a problem
It was my bad, I was simply stupid on this, reverts r1519245


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1562767 13f79535-47bb-0310-9956-ffa450edef68
2014-01-30 10:33:26 +00:00
Jacques Le Roux 0757ed8a24 A patch from Gareth Carter for "last index for paging is not calculated correctly" https://issues.apache.org/jira/browse/OFBIZ-5497
The last index (used on the last button) is not calculated correctly in ftl or the renderer classes. It currently users floor which works only for list sizes that are not multiples of the view size. When you have a list size which is a multiple of the view size, it does not subtract 1 for zero based index and therefore the last button goes to the last page + 1

Examples

listSize = 1
viewSize = 10
listSize / viewSize = 0.1
floor(0.1) = 0
This one produces the correct value

listSize = 20
viewSize = 10
listSize / viewSize = 2
floor(2) = 2
Last index should be 1 because of zero based index but never occurs

To reproduce, enter a view with a list and paging functionality, the list size must be a multiple of the view size


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560176 13f79535-47bb-0310-9956-ffa450edef68
2014-01-21 20:53:29 +00:00
Jacques Le Roux eb01bb126d Misc. cleaning in labels
Removes all empty ones
Removes some redundant/duplicates ones (please committers don't commit those again, I know it's not easy to catch, hopefully now we should have less of them)
Automatically replaces some tabs
Few French labels improvements
Removes 2 orphan entries ("ja" & "cs")
Fixes the schema header of WebtoolsUiLabels.xml


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1551594 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 16:00:50 +00:00
Jacques Le Roux 576a213948 No functional changes, code improvements
Fixes some dead code entries
Automatically adds some override annotations


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550429 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 14:53:38 +00:00
Jacopo Cappellato 68e5dfb959 Updated Apache POI to the latest version (3.9) and removed some unused (optional) POI jars.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541119 13f79535-47bb-0310-9956-ffa450edef68
2013-11-12 15:57:35 +00:00
Scott Gray 96eaab5b73 Remove null check (always yields false)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1540552 13f79535-47bb-0310-9956-ffa450edef68
2013-11-10 21:12:51 +00:00
Jacques Le Roux 9df4e6e492 Better French and English labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1537979 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 16:31:00 +00:00
Jacques Le Roux 7adfe90d71 Fixes <<Services allow arbitrary HTML for parameters with allow-html set to "safe">> https://issues.apache.org/jira/browse/OFBIZ-5254
After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any".

This
* Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default.
* Replaces in services definition all allow-html="safe" by allow-html="any"
* Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 12:12:43 +00:00
Hans Bakker 834c6ac2d8 revert of unwanted commit, sorry!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535287 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:42:34 +00:00
Hans Bakker 45011c0ed1 reorganizing of files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1535286 13f79535-47bb-0310-9956-ffa450edef68
2013-10-24 06:39:36 +00:00
Adrian Crum af23fe0b35 Refactored ConfigXMLReader.java - added exception handling. The class swallowed exceptions like controller.xml file is missing or invalid - making debugging difficult. This commit introduces a WebAppConfigurationException and it propagates that exception farther up the stack.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1534517 13f79535-47bb-0310-9956-ffa450edef68
2013-10-22 06:50:05 +00:00
Jacques Le Roux c8ce55ecc9 A patch from Anahita Goljahani for Fixed mispelling of "occurred" https://issues.apache.org/jira/browse/OFBIZ-5342
jleroux: this includes a safe change in jquery.validate.js and jquery.validate.min.js

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1530341 13f79535-47bb-0310-9956-ffa450edef68
2013-10-08 16:35:40 +00:00
Jacques Le Roux 9b0d9e1f00 Fixes "createCommContentDataResource service fails" https://issues.apache.org/jira/browse/OFBIZ-5338
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1529415 13f79535-47bb-0310-9956-ffa450edef68
2013-10-05 08:57:41 +00:00
Jacques Le Roux 53ccd2ceb7 Fixes "Overview of routings does not paginate" https://issues.apache.org/jira/browse/OFBIZ-5322 and more
Actually it does paginate but the value is not dependent on widget property widget.form.defaultViewSize which default value is 20. It uses a default value of 50 which is defined by

<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="3"/>

You can easily test it using https://localhost:8443/manufacturing/control/FindRouting?VIEW_SIZE=3

This is legacy from pre Apache era. I found 143 cases where a default-value is defined in screens for VIEW_SIZE.

I did not look into details for the 143 cases but I believe most are also legacy.
There are few default values: 10, 20, 30, 50, 500 and even an extreme case of 10000 for InventoryItemTotalsExport!
There is only one comment for LookupBulkAddProducts which is also legacy: <!-- 10 rows seems more appropriate given screen size, etc. -->

I suggest to OOTB replace all those by the widget.form.defaultViewSize value.
Things will then be consistent and easily changeable on a global scale using the widget property.
Or if really needed forcing the default-value as it's done now.

So this would be applied on the 143 cases (I checked, viewSizeDefaultValue does not exist in any screen)

<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526387 13f79535-47bb-0310-9956-ffa450edef68
2013-09-26 05:55:32 +00:00
Jacopo Cappellato 672dc55f1e Moved the docbook distribution from applications/content to specialpurpose/cmssite, the only component that requires it. The Docbook schemas are still in the content component because they are required to render the online help screens of the applications.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524112 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 16:11:00 +00:00
Jacopo Cappellato 233645aa89 Moved and renamed (from clean-lucene-index to clean-search-indexes) the ant target to clean runtime data for search indexes from the content build.xml to the main build.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520326 13f79535-47bb-0310-9956-ffa450edef68
2013-09-05 14:29:34 +00:00
Jacques Le Roux 06e7d2a646 The path /content/images/ was used in some places (only for contentForum.css it seems) but no mount point was associated, here is a fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1519245 13f79535-47bb-0310-9956-ffa450edef68
2013-09-01 08:18:47 +00:00
Jacopo Cappellato 6071e8d8e0 Extracted from the OFBiz content component the dependencies on Lucene and created a new specialpurpose/lucene component in order to simplify the integration of components based on Lucene/Solr and to simplify the management of conflicts caused by different versions of Solr/Lucene jars.
In this way it will be easier to compare the ootb Lucene integration with custom ones (based on Lucene/Solr/etc...) and to switch between them.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518925 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 09:45:33 +00:00
Jacopo Cappellato 96dfb91fbb Removed unused import statement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518219 13f79535-47bb-0310-9956-ffa450edef68
2013-08-28 14:36:13 +00:00
Jacopo Cappellato 2de26cf06d Moved the folder where search indexes are created from content/index to runtime/data/indexes because it is a good practice to avoid the creation of runtime data in the applications/framework.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518213 13f79535-47bb-0310-9956-ffa450edef68
2013-08-28 14:11:11 +00:00
Jacopo Cappellato a0db8942b1 Removed some old unused methods and fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518098 13f79535-47bb-0310-9956-ffa450edef68
2013-08-28 08:21:26 +00:00
Jacopo Cappellato ef1bf9c42c Removed a really old and never used class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1517848 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 15:28:31 +00:00
Jacopo Cappellato a89aaac7b5 No functional changes: removed a really old and commented out code block and expanded the wildcard notation for package inclusion for Lucene classes to better document the external classes being used in this class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1517846 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 15:26:21 +00:00
Jacopo Cappellato 0c2e79f4bd Removed some old/useless commented out debug statements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1517845 13f79535-47bb-0310-9956-ffa450edef68
2013-08-27 15:22:45 +00:00
Jacques Le Roux bbf2e95162 This is not needed anymore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1517132 13f79535-47bb-0310-9956-ffa450edef68
2013-08-24 14:29:51 +00:00
Jacques Le Roux 1956e731a3 No functional changes, only formatting.
While looking for other cases like r1459222 and r1509164 introduced by r1300812 and r1305309. I noticed there were a lot of wrong for loops formatting (miss a white space after for), this changes it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1511742 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 12:28:01 +00:00
Jacques Le Roux c85d363452 A patch from Leon for "make genericContentPermission service (called from within DataEvents.serveObjectData) locale enabled" https://issues.apache.org/jira/browse/OFBIZ-5260
Passes "locale" parameter when calling "genericContentPermission" service.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1502182 13f79535-47bb-0310-9956-ffa450edef68
2013-07-11 10:35:44 +00:00
Adrian Crum e12fd283bb Removed duplicate relationship.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481519 13f79535-47bb-0310-9956-ffa450edef68
2013-05-12 10:58:32 +00:00
Christian Geisert fa0080cd08 Improved/corrected German translation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1468127 13f79535-47bb-0310-9956-ffa450edef68
2013-04-15 15:45:32 +00:00
Jacques Le Roux 2ba61c9514 Replace a <value xml:lang="FR">, noted by Atul on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1466837 13f79535-47bb-0310-9956-ffa450edef68
2013-04-11 11:21:17 +00:00
Jacopo Cappellato 400d48ab4c OFBIZ-5167 Applied patch from Leon to fix a wrong array index that was causing the proliferation of subfolders in the runtime/uploads directory.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1463989 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 12:59:10 +00:00
Jacopo Cappellato 47cc76394c OFBIZ-4908 Added missing target attribute from form definition that was preventing the update to work: thanks to Harsha Chadhar for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1461551 13f79535-47bb-0310-9956-ffa450edef68
2013-03-27 12:48:45 +00:00
Jacques Le Roux 675a2794a0 A patch from Chatree Srichart for "The createDataResourceRole service does not check if partyId exists" https://issues.apache.org/jira/browse/OFBIZ-5133
The createDataResourceRole service has a partyId attribute as optional but its implementation method does not check if the partyId exists before creating a DataResourceRole value.
The ensurePartyRole service also has a partyId attribute as optional but its implementation method does not check if the partyId exists before creating a PartyRole value.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446876 13f79535-47bb-0310-9956-ffa450edef68
2013-02-16 11:54:50 +00:00
Jacques Le Roux 4c1969ffa4 Closes <<TYPO in service name "udpateWebSitePathAlias">> reported by Atul Vani https://issues.apache.org/jira/browse/OFBIZ-5101
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1422101 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 21:29:57 +00:00
Scott Gray 04df9cb162 Add a bunch of missing Override annotations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418651 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:06:40 +00:00
Scott Gray 5df3e3f70b Remove a bunch of unused imports, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1418646 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:03:52 +00:00
Jacques Le Roux 8f275867f9 I missed those in r1412997
A patch from Naofumi Fukue "Japanese patch" https://issues.apache.org/jira/browse/OFBIZ-5061
Complete Japanese translation



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1416360 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 07:16:35 +00:00
Erwan de Ferrieres 97d5a93b23 Upgrading to latest stable Apache lucene version
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1405428 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 21:50:23 +00:00
Jacques Le Roux a1bffbab94 Closes Upgrade PDFBox to 1.7.1 https://issues.apache.org/jira/browse/OFBIZ-5066
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1405325 13f79535-47bb-0310-9956-ffa450edef68
2012-11-03 12:43:30 +00:00
Jacques Le Roux b46c7a2c06 A patch from Naofumi Fukue "Japanese patch" https://issues.apache.org/jira/browse/OFBIZ-5061
Got an issue merging GeoData_JP.xml with Subclipse, using Toirtoise solved it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1403746 13f79535-47bb-0310-9956-ffa450edef68
2012-10-30 15:48:42 +00:00
Scott Gray a2a2857bef Replace more misc. webSiteId retrievals with calls to WebSiteWorker.getWebSiteId(request). Deprecated CatalogWorker.getWebSiteId(request) and CatalogWorker.getWebSite(request).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1400626 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 11:27:10 +00:00
Scott Gray 47abb49013 Replaced direct access to webSiteId from the servlet context attributes with calls to WebSiteWorker.getWebSiteId(request)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1400601 13f79535-47bb-0310-9956-ffa450edef68
2012-10-21 08:53:04 +00:00
Adrian Crum 8f23ccfa30 Fixed NPE in Content component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1400421 13f79535-47bb-0310-9956-ffa450edef68
2012-10-20 11:34:26 +00:00
Adrian Crum 877c21d864 Comment out non-existent web application.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1400385 13f79535-47bb-0310-9956-ffa450edef68
2012-10-20 08:05:13 +00:00
Jacques Le Roux a21d16e369 A patch from Tom Burns "BIRT interferes with Context Help" https://issues.apache.org/jira/browse/OFBIZ-5033
To reproduce:
In the Accounting,Facility, or Order component.
Click the Help icon
Expected:
Help window opens for the active component
Actual:
Help window opens for BIRT

The following, added in Rev. 1361130 to BIRT ofbiz-component.xml, appears to be causing the problem. The problem goes away if BIRT is not loaded.

<webapp name="accounting"
title="Accounting"
server="default-server"
location="webapp/accounting"
base-permission="OFBTOOLS,ACCOUNTING"
mount-point="/accounting"/>
<webapp name="facility"
title="Facility"
description="FacilityComponentDescription"
server="default-server"
location="webapp/facility"
base-permission="OFBTOOLS,FACILITY"
mount-point="/facility"/>
<webapp name="order"
title="Order"
description="OrderComponentDescription"
server="default-server"
location="webapp/ordermgr"
base-permission="OFBTOOLS,ORDERMGR"
mount-point="/ordermgr"/>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1396105 13f79535-47bb-0310-9956-ffa450edef68
2012-10-09 16:53:07 +00:00
Jacques Le Roux 962091598a As a 1st step of "Proposal for a new help system" https://issues.apache.org/jira/browse/OFBIZ-4941, update docbook to version 1.77.1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1395307 13f79535-47bb-0310-9956-ffa450edef68
2012-10-07 14:02:53 +00:00
Jacques Le Roux 1996cda067 Looks like somehow I missed a bunch of files at r1395296. To be sure I will remove all before re-adding all again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1395300 13f79535-47bb-0310-9956-ffa450edef68
2012-10-07 13:42:48 +00:00