Commit Graph
21908 Commits
Author SHA1 Message Date
Michael Brohl cd6eedc2c3 Applied patch for OFBIZ-6632: Incorrect comparison in TemporalExpressionWorker.java
This patch introduces some constants for the expression types and corrects the wrong comparison.

Thanks Vyom Jain for spotting this issue and Martin Becker for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704043 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 14:27:54 +00:00
Michael Brohl ab33193186 Applied patch for OFBIZ-6515: partymgr/control/EditPartyRelationships add odd-row="alternate-row" for ListPartRelationships and remove navigation-form-name for containing screenlet for better UI.
Displays the relationship table with alternate colors for better visibility and uses the screenlet pagination controls at top/bottom of the list.

Thanks Christian Carlow for this improvement.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704036 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 14:11:25 +00:00
Michael Brohl 89313da8b9 Applied patch for OFBIZ-6633: Eclipse .classpath is missing the runtime libs for the solr component.
Added the missing libs so OFBiz can be started with the solr component out of Eclipse.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704027 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 13:38:38 +00:00
Michael Brohl abd6351c67 Applied patch for OFBIZ-6630: Update ShoppingCartItem locale if ShoppingCart locale is changed.
Introduces the setLocale methode for ShoppingCartItem and sets the locale for every item if the ShoppingCart setLocale method is called.

Thanks Martin Becker for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704018 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 13:16:53 +00:00
Arun Patidar 8a0af90c0f [OFBIZ-6212] Fixed the issue #1 of Accounting reports due to a minor typo and missing screen.Added a decorator screen for using with accounting report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704014 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 13:09:40 +00:00
Michael Brohl 52acfdedc9 Applied patch for OFBIZ-6526: ordermgr/control/searchorders findOrders service returns incorrect orderCount and therefore viewSize.
This patch replaces the HashSet with LinkedHashSet for fieldsToSelect because otherwise statusId was being added to the front of the set which was then passed to count distinct query causing incorrect counts. LinkedHashSet preserves the order in which items are added so orderId always appears at the front of the set for the count distinct query.

Thanks Christian Carlow for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704005 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 12:46:48 +00:00
Michael Brohl 00904e8b4a Applied patch for OFBIZ-6631: Optimize ShoppingCart.removeCartItem (skip price calc and inventory check).
Thanks Martin Becker for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704000 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 12:31:08 +00:00
Mridul Pathak 16516b6897 [OFBIZ-6091] Supplier preferred currency not considered for drop-ship order. Applying patch from OFBIZ-6091. Thanks Akash Jain for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703988 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 11:34:41 +00:00
Arun Patidar a4bff492a1 [OFBIZ-5970] Removed unused form as discussed on ticket. Thanks Pierre for reporting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703987 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 11:30:53 +00:00
Arun Patidar 832c5ec143 [OFBIZ-5927] Applied the changes as discussed on ticket. Thanks Jacques and Scott for concluding it and thanks to Prateek for reporting this bug.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703981 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 11:08:32 +00:00
Michael Brohl f0b8e2fc5a Applied patch for OFBIZ-6629: Duplicate calculation and typo in ShoppingCart.getGrandTotal().
This removes duplicate code, fixes a methode name typo and adds type safety to an iterator.

Thanks Martin Becker for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703977 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 10:45:13 +00:00
Arun Patidar abd8fbdd37 [OFBIZ-6348] Applied patch attached by Christian on the ticket. Reported issue of row alignment has been fixed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703976 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 10:30:02 +00:00
Arun Patidar 4a1aa950d2 [OFBIZ-6499] Added z-index value with dialog class to fix the issue of lookup in theme.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703971 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 10:08:47 +00:00
Divesh Dutta a35364bc07 [OFBIZ-6438] Fixed issue: PartyGeoLocation shows menus when accessed. Thanks Pravin for your patch and thanks Pierre for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703969 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 09:32:32 +00:00
Michael Brohl b9816d1d5d Applied patch for OFBIZ-6594: Wrong Documentation for Temporal Expressions.
The integer value representing the HOUR was wrong in the documentation.

Thanks Mirco Vogelsmeier for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703965 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 09:14:48 +00:00
Michael Brohl 82b7386e3d Applied patch for OFBIZ-6621: MapContext.entrySet() slows down when ByteBuffer objects are in the context.
Introduces a private inner class ListSet representing a Set backed by a List instead of the HashSet implementation.

Thanks Gareth Carter for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703954 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 08:43:40 +00:00
Arun Patidar 85ccf58a76 [OFBIZ-6460] Fixed the exception due to incorrect use of EntityQuery method. Fixed the Query statement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703945 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 06:28:20 +00:00
Jacques Le Roux f98543b1ff A patch from Gaudin Pierre for "error in isValidEan util" https://issues.apache.org/jira/browse/OFBIZ-6624
There is an error in isValidEan util. It should be 12 and not 13 in the methods charAt and calcChecksum  because they start at 0.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703586 13f79535-47bb-0310-9956-ffa450edef68
2015-09-17 12:05:19 +00:00
Jacques Le Roux 32b4877639 A patch from Gareth Carter for "PurgeJob.java does not delete RecurrenceRule because it is still referenced by RecurrenceInfo" https://issues.apache.org/jira/browse/OFBIZ-6619
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703121 13f79535-47bb-0310-9956-ffa450edef68
2015-09-15 08:34:41 +00:00
Jacques Le Roux 21cc20af6a No functional changes, since I put the 2 conditions in the error message at r1702704 no needs to put 2 <check-errors/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1702708 13f79535-47bb-0310-9956-ffa450edef68
2015-09-13 08:42:42 +00:00
Jacques Le Roux 8acd28ce46 A patch for "createQuoteRole, createContentRole, and createRequirementRole allow for adding Roles to a Party without permissions" https://issues.apache.org/jira/browse/OFBIZ-6605
Rerported by Forrest Rae:
The following functions automatically add a PartyRole entry if the PartyRole does not exist.  This is possible even when the userLogin doesn't have PARTYMGR_UPDATE or PARTYMGR_CREATE.

createQuoteRole
createContentRole
createRequirementRole

Repo:
1) Remove PARTYMGR_UPDATE or PARTYMGR_CREATE permissions from the ORDERENTRY group.
2) Login as DemoRepStore
3) Create a Quote
4) Add a QuoteRole with partyId of DemoRepStore and Role of your choosing.
5) View DemoRepStore roles.

This is a security problem for anyone building component that leverages Role based security.

jleroux: simple solution, check before creating the new role the user has  PARTYMGR_UPDATE or PARTYMGR_CREATE.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1702704 13f79535-47bb-0310-9956-ffa450edef68
2015-09-13 08:31:55 +00:00
Shi Jinghai 2caf617ca2 OFBIZ-6610 Upgrade Solr and Lucene librairies to version 5
Add runtime/indexes/index.properties to exclude in clean-search-indexes target.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1702703 13f79535-47bb-0310-9956-ffa450edef68
2015-09-13 08:20:23 +00:00
Jacques Le Roux d2ab653ea7 A patch from Wei Zhang for "The EntityListIterator must be closed in EntityQuery.query()" https://issues.apache.org/jira/browse/OFBIZ-6615
jleroux: The EntityListIterator at line 453 is now closed (dynamicViewEntity complete list retrieved once, eg: agreementServices.getCommissionForProduct())

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1702548 13f79535-47bb-0310-9956-ffa450edef68
2015-09-11 20:49:42 +00:00
Jacques Le Roux 242260b540 No functional changes, removes an useless assignation found by chance an fixes indentation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1702420 13f79535-47bb-0310-9956-ffa450edef68
2015-09-11 10:35:53 +00:00
Jacques Le Roux 169868bbc0 A patch from Pierre Smits for "Move PartyRelationshipAndPartyDetail entity to Party component" https://issues.apache.org/jira/browse/OFBIZ-5814
jleroux: actually it does a bit more than moving. It also adds 
        <member-entity entity-alias="PTYRELTP" entity-name="PartyRelationshipType"/>
and
        <alias entity-alias="PTYRELTP" name="relParentTypeId" field="parentTypeId"/>
+
        <view-link entity-alias="PTYREL" rel-entity-alias="PTYRELTP" rel-optional="true">
          <key-map field-name="partyRelationshipTypeId"/>
        </view-link>




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1702168 13f79535-47bb-0310-9956-ffa450edef68
2015-09-10 05:58:53 +00:00
Jacques Le Roux f0628b8ed8 A slightly modified patch from Pierre Smits for "Remove unused view-maps from SCRUM controller" https://issues.apache.org/jira/browse/OFBIZ-6478
jleroux: only EditSprintItem was still concerned





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1702005 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 13:38:04 +00:00
Jacques Le Roux fa053a2de3 A slightly modified patch from Pierre Smits for "Scrum productstatistics shows errors" https://issues.apache.org/jira/browse/OFBIZ-4863
Those were only rptdesign issues

jleroux: I put back the removed license headers



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1702002 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 13:26:58 +00:00
Jacques Le Roux b8f4007683 A slightly modified patch from Pierre Smits for "view sprint overview has errors" https://issues.apache.org/jira/browse/OFBIZ-4861
When viewing the sprint overview page errors are shown related to burndown chart and the sprint backlog list

Regarding the burndown chart:

The following items have errors:

Chart (id = 113):
+ A BIRT exception occurred. See next exception for more information.
Invalid javascript expression: row["sprintDay"] (Element ID:113) 

Regarding the sprint backlog list

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Error evaluating BeanShell use-when condition [showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS"] on the field custRequestId of form sprintBacklogListItems: Sourced file: inline evaluation of: ``showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS";'' : illegal use of null value or 'null' literal : at Line: 1 : in file: inline evaluation of: ``showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS";'' : ;
(Error evaluating BeanShell use-when condition [showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS"] on the field custRequestId of form sprintBacklogListItems: Sourced file: inline evaluation of: ``showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS";'' : illegal use of null value or 'null' literal : at Line: 1 : in file: inline evaluation of: ``showPosition1&&"RF_PROD_BACKLOG"=="RF_SCRUM_MEETINGS";'' : ;
)

jleroux: I did not see the sprint backlog list error. I put back the removed license header



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701936 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 07:52:41 +00:00
Jacques Le Roux c04f6e84c9 A completed patch from Oleg Andreyev for "Using official content type for json requests" https://issues.apache.org/jira/browse/OFBIZ-6608
I suggest using application/json instead of application/x-json as it is official content type. It seems x-json does not cause any problem for the time being but browsers will load json responses correctly without asking for download. It's handy in development time. It also matches JQuery Accept header.

jleroux: I also used it in Solr




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701915 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 07:16:18 +00:00
Jacques Le Roux fe0ac6454e No functional change: comments out "docs-all" ant target since it's now done automatically by Buildbot at the ASF
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701914 13f79535-47bb-0310-9956-ffa450edef68
2015-09-09 07:14:40 +00:00
Jacques Le Roux bd6543ddad A patch from Pierre Smits for "Some groovy files using Timestamp.valueOf are missing essential jar." https://issues.apache.org/jira/browse/OFBIZ-6606
"import java.sql.Timestamp;" was missing in CommissionReport.groovy, CommissionRun.groovy change is non functional (import ordering)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701825 13f79535-47bb-0310-9956-ffa450edef68
2015-09-08 15:50:10 +00:00
Jacques Le Roux 622a2a5c36 A patch from Pierre Smits for "Scrum total billing cause exception" https://issues.apache.org/jira/browse/OFBIZ-6600
"import java.sql.Timestamp;" was missing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701819 13f79535-47bb-0310-9956-ffa450edef68
2015-09-08 15:14:47 +00:00
Jacques Le Roux b78725c2f1 No functional changes, fixes typos
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701498 13f79535-47bb-0310-9956-ffa450edef68
2015-09-06 16:17:11 +00:00
Shi Jinghai ac5f79caa6 OFBIZ-5042 Apache Solr Implementation.
Add permission check on /update, /update/json, /update/csv and /update/extract requests. These requests are defined in an index's solrconfig.xml.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701495 13f79535-47bb-0310-9956-ffa450edef68
2015-09-06 15:46:45 +00:00
Shi Jinghai 47ea44596f OFBIZ-6601 example component causes exceptions
1. Add specialpurpose/webapp/exampleext/error/error.jsp to display error page.
2. Move specialpurpose/example/widget/exampleext to specialpurpose/exampleext/widget/example.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701441 13f79535-47bb-0310-9956-ffa450edef68
2015-09-06 04:34:16 +00:00
Shi Jinghai 63f99ed533 OFBIZ-6596 The Solr redirection does not work in trunk demo.
Removed https scheme check and demo-trunk-ofbiz.apache.org/solr/ can be displayed correctly now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701379 13f79535-47bb-0310-9956-ffa450edef68
2015-09-05 12:29:04 +00:00
Jacopo Cappellato 02415d77ea Upgraded Apache Tomcat to the latest bug fix release of the 7 series: 7.0.64
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701164 13f79535-47bb-0310-9956-ffa450edef68
2015-09-04 06:56:13 +00:00
Jacques Le Roux ee37bb0e42 Removes build-website and docs targets, copy-dtds is enough
I did not remove copy-apis and other doc (API) related targets because they are used by Buildbot.

I should modify the Buildbot conf to automatically use the copy-dtds target, but that's for another insomnia night...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701157 13f79535-47bb-0310-9956-ffa450edef68
2015-09-04 04:40:09 +00:00
Jacques Le Roux faed9fe69d A patch from Pierre Smits for "Update site-conf.xsd to prioritise Groovy over BSF" https://issues.apache.org/jira/browse/OFBIZ-6597
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1701150 13f79535-47bb-0310-9956-ffa450edef68
2015-09-04 03:51:55 +00:00
Shi Jinghai eb1334b028 OFBIZ-6596 The Solr redirection does not work in trunk demo.
Commented out https scheme check. Let see whether it would work.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700960 13f79535-47bb-0310-9956-ffa450edef68
2015-09-03 09:07:24 +00:00
Adrian Crum 6066e4e42f Make primitive initialization explicit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700864 13f79535-47bb-0310-9956-ffa450edef68
2015-09-02 18:43:41 +00:00
Shi Jinghai 3400c70146 OFBIZ-6596 The Solr redirection does not work in trunk demo.
1. Use response.sendRedirect to forward url to login page instead of the response.setHeader("location", url), this avoids the warning messages from EntityUtilProperties. Besides, when testing in similar config as demo-ofbiz-trunk is (port 80 -> 8080, port 443 -> 8443), this change can keep the url to 80 or 443.

2. Replace tabs to spaces in several java files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700739 13f79535-47bb-0310-9956-ffa450edef68
2015-09-02 09:09:45 +00:00
Shi Jinghai 8873bbf16a OFBIZ-5042 Apache Solr Implementation.
Add apache solr to secondary top menu and /solr/control/main request to accept the link from the menu.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700599 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 15:37:20 +00:00
Jacques Le Roux d0e3cc70a0 A patch from Pierre Smits for "Have hard coded links in admin screen open in new windows" https://issues.apache.org/jira/browse/OFBIZ-6593
Currently the various hard coded links at the bottom of the admin screen open in the same window. These should open in a new window to provide a better UX.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700555 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 14:05:04 +00:00
Shi Jinghai 824953686a OFBIZ-5042 Apache Solr Implementation.
Add all the jars under specialpurpose/solr/ into LICENSE.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700461 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 09:52:30 +00:00
Shi Jinghai d401c92c26 Add framework/base/lib/zxing-core-3.2.0.jar into LICENSE.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700460 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 09:51:18 +00:00
Shi Jinghai efb3d18372 OFBIZ-6591 ofbiz does not compile
Replaces tabs with spaces.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700448 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 09:38:15 +00:00
Shi Jinghai 78ffe38bd5 OFBIZ-6591 ofbiz does not compile
The reason behind is lack of jars in applications/content/build/lib and specialpurpose/lucene/lib.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700446 13f79535-47bb-0310-9956-ffa450edef68
2015-09-01 09:34:22 +00:00
Deepak Dixit 576b47d36c (OFBIZ-6589) Removed date picker localization data from theme file. GlobalActions decorator will generate this data and will be added in screens accordingly. Now date picker working fine.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700250 13f79535-47bb-0310-9956-ffa450edef68
2015-08-31 13:58:29 +00:00
Shi Jinghai efb589682b OFBIZ-5042 Apache Solr Implementation.
1. Put the patch into trunk.
2. Added access control to solr /admin/ pages.
3. Upgraded solr to 4.9.0 to match Lucene version in trunk.
4. Removed solr.solr.home, used 
SolrResourceLoader loader = new SolrResourceLoader("specialpurpose/solr/conf");
instead.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1700119 13f79535-47bb-0310-9956-ffa450edef68
2015-08-30 13:27:07 +00:00