Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 9e85e905ad Fixes the indent, thanks to Gil's reports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693864 13f79535-47bb-0310-9956-ffa450edef68
2015-08-03 08:55:56 +00:00
Jacques Le Roux 465a25f631 Based on recent Moqui addition, adds description and geoPointTypeEnumId to GeoPoint entity, see https://github.com/sssonline/moqui/commit/39a12eaedcc8e8d134457f6a38146737728bda24 for details
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693799 13f79535-47bb-0310-9956-ffa450edef68
2015-08-02 09:40:02 +00:00
Deepak Dixit aafe193fbd (OFBIZ-6561) Reverted r#1668267 and related changes done in r1674064, 1669537 to fix the cache issue,
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693701 13f79535-47bb-0310-9956-ffa450edef68
2015-08-01 10:12:39 +00:00
Jacques Le Roux c9bfd92ad0 A solution from Gareth Carter for "Wrong percent encoding in Webtool/SQL Processor" https://issues.apache.org/jira/browse/OFBIZ-6567
This was reported by Gareth Carter;

If for instance you use this SQL expression
    select * from Party_Role where role_Type_Id LIKE  '%CA%'
It will be interpreted (and returned to UI) as
   select * from Party_Role where role_Type_Id LIKE  'Ê%'
And no result will be returned when OOTB there is  6 <PartyRole partyId="***" roleTypeId="CARRIER"/> entities

The solution is to keep the SQL expression string from the context at the top of the EntitySQLProcessor.groovy script and put it back in context after the request call (at bottom)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693579 13f79535-47bb-0310-9956-ffa450edef68
2015-07-31 11:56:58 +00:00
Jacques Le Roux 81efb99235 At http://www.apache.org/dev/licensing-howto.html#mod-notice, it's adviced:
<<Copyright notifications which have been relocated from source files (rather than removed) must be preserved in NOTICE. However, elements such as the copyright notifications embedded within BSD and MIT licenses need not be duplicated in NOTICE -- it suffices to leave those notices in their original locations.

It is important to keep NOTICE as brief and simple as possible, as each addition places a burden on downstream consumers.

Do not add anything to NOTICE which is not legally required.>>

So this removes useless information already present in other legible files (not libs). Concerned projects are: PNG Behavior, Steven Levithan's date-time-format and Matthew Eernisse's timezone-js

I added the 2 last ones, PNG Behavior was added by David


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693422 13f79535-47bb-0310-9956-ffa450edef68
2015-07-30 13:44:35 +00:00
Shi Jinghai e173523638 Comment out
Debug.logInfo("======save last view: " + session.getAttribute("_LAST_VIEW_NAME_"));


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693417 13f79535-47bb-0310-9956-ffa450edef68
2015-07-30 12:33:05 +00:00
Jacques Le Roux 1310a182cc Document to makes the changes for OFBIZ-6504 more clear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693400 13f79535-47bb-0310-9956-ffa450edef68
2015-07-30 09:26:20 +00:00
Deepak Dixit cc7d7333c1 (OFBIZ-6562) Used getCombinedMap instead of getParameterMap while preparing param map for string-map-prefix. Now string-map-prefix will work fine in case of ajax call as well.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693393 13f79535-47bb-0310-9956-ffa450edef68
2015-07-30 08:07:20 +00:00
Shi Jinghai d9bb512b5f OFBIZ-6564. Change ProductProductJump zh label from 产品跃升 to 跳转到产品.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693386 13f79535-47bb-0310-9956-ffa450edef68
2015-07-30 04:23:04 +00:00
Jacques Le Roux 9f00d68173 Fixes an issue crossed while checking OFBIZ-6504 - how to Create PDF with password Protected in Ofbiz
There was still an issue in normal (not PDF) mode, I thought I had just to replace \' by void, but I got fooled, because \' already transformed in Unicode characters (&#x5c;&#x27;) at this stage. So I replaced "&#x5c;&#x27;" by "&#x27;"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693258 13f79535-47bb-0310-9956-ffa450edef68
2015-07-29 13:33:12 +00:00
Shi Jinghai 8f3c4a1bda OFBIZ-6504.
In ScreenFopViewHandler.java, removed a line:
            pdfEncryptionParams.setEncryptionLengthInBits(256);
it's redundant to the line
            pdfEncryptionParams.setEncryptionLengthInBits(encryptionLength);


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693243 13f79535-47bb-0310-9956-ffa450edef68
2015-07-29 11:58:48 +00:00
Jacques Le Roux 06a06feb14 Fixes an issue crossed while checking OFBIZ-6504 - how to Create PDF with password Protected in Ofbiz
When a description used in a drop-down comes from a localised label in CommonEntityLabels.xml and contains a single quote (') this single quote must be escaped to allow the rendering. Else it's a single quote inside 2 single quotes for the option like:
{'key':'EXST_CANCELLED','description':'Annuler l'exemple (En projet)'}
with he percent encoding there is no issue:
{'key':'EXST_CANCELLED','description':'Annuler l%27exemple (En projet)'}

We noted, with Jinghai, that using html entities does not work. I guess due to another encoding further in the chain. I also tried to percent encoding but was unable to find how to replace a % in Freemarker. Thanks to Gareth's suggestion I finally escaped the quote. Also to escape the quote with replaceAll() in Java you have to put 5 \,  small but weird issues ;) I hope nothing else somewhere already escape the quote, we will see anyway...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693242 13f79535-47bb-0310-9956-ffa450edef68
2015-07-29 11:50:41 +00:00
Shi Jinghai 89f0ba788b OFBIZ-6552 - Error when changing language after using the product jump from the left part of the main product screen
Add a check on whether viewName is empty to view-last branch. If it's empty, try to use the value in the response config if it exists.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693231 13f79535-47bb-0310-9956-ffa450edef68
2015-07-29 09:55:24 +00:00
Jacques Le Roux 11c4af1c2c OFBIZ-6545 - Replace webtools/control/EntitySQLProcessor FTL with widgets
Damned, forgot to save a change after undoing a try for an issue I will create soon. This was not in Gil's patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1692726 13f79535-47bb-0310-9956-ffa450edef68
2015-07-26 15:16:20 +00:00
Jacques Le Roux 7c79d1e6f3 A patch from Gil Portenseigne for OFBIZ-6545 - Replace webtools/control/EntitySQLProcessor FTL with widgets
And while at it set ofbiz.org as default selGroup when none exist. This will prevent the unobvious error message
  <<Unable to esablish a connection with the database. (Unable to acquire a new connection from the pool)>>
in most cases!

This patch replaces EntitySQLCommand ftl to widget. List screen couldn't be migrated to widget due to dynamic column rendering.
To get the default group, a little trick is used, constructing the list of map for drop-down list-option widget.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1692725 13f79535-47bb-0310-9956-ffa450edef68
2015-07-26 15:12:49 +00:00
Shi Jinghai de425564ad OFBIZ-5634 - "Error in pagination in createProductSubscriptionResource (Catalog)"
When you paginate, after creating a sufficient number of subscriptions for pagination to appear, you get an error

To reproduce this problem:
1. Import DataToReproduceOFBiz-5634.xml in webtools Entity Import.
2. Visit https://localhost:8443/catalog/control/EditProductSubscriptionResources?productId=GZ-NEWS-1MO
3. Add a new subscription resource.
4. Click next button, error message displayed.

Added paginate-target="EditProductSubscriptionResources" to ListProductSubscriptionResources form and resolved this problem in trunk.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1692604 13f79535-47bb-0310-9956-ffa450edef68
2015-07-25 06:32:13 +00:00
Shi Jinghai ea3de7491d OFBIZ-6547 - "Error in pagination in EditProdCatalogCategories (Catalog)"
When you paginate, after creating a sufficient number of Catalog Categories for pagination to appear, you get an error

To reproduce this problem:
1. Import DataToReproduceOFBiz-6547.xml in webtools Entity Import.
2. Visit https://localhost:8443/catalog/control/EditProdCatalogCategories?prodCatalogId=TestCatalog
3. Add a new Catalog Categories
4. Click next button, error message displayed.
 
Applied patch (add paginate-target="EditProdCatalogCategories" to "EditProdCatalogCategories" form) and resolved this problem



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1692600 13f79535-47bb-0310-9956-ffa450edef68
2015-07-25 04:15:33 +00:00
Shi Jinghai 75ed5abae9 OFBIZ-6555.
Removed issuedDateTime from OrderItemQuantityReportGroupByProduct view entity as it doesn't exist in ItemIssuanceQuantitySum.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1692458 13f79535-47bb-0310-9956-ffa450edef68
2015-07-24 04:46:30 +00:00
Jacques Le Roux 6f514d81fb The description attribute of the display-entity element is now escaped to prevent the risk of an XSS attack.
[CVE-2015-3268] Stored Cross-Site Scripting Vulnerability affecting the description attribute of the display-entity element because it was not escaped.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1692357 13f79535-47bb-0310-9956-ffa450edef68
2015-07-23 08:36:36 +00:00
Jacques Le Roux 942104b4d3 No functional changes: fixes typos
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1692356 13f79535-47bb-0310-9956-ffa450edef68
2015-07-23 08:08:13 +00:00
Nicolas Malin 1fa217304e Update LICENSE file with new jar version (pdfbox 1.8.5, jempbox 1.8.5, fontbox 1.8.5, xmlgraphics-commons 2.0.1, fop 2.0, batik-all 1.8) load by shijh to support pdf encryption (OFBIZ-6504)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1692051 13f79535-47bb-0310-9956-ffa450edef68
2015-07-21 06:41:27 +00:00
Shi Jinghai a575165ce4 OFBIZ-6504 - Create password protected PDF in OFBiz
1. Changed to use FOP 2.0 native encryption, jars are updated.

2. Now the Embeded options are request parameters supported in ScreenFopViewHandler.java, the options are:
http://xmlgraphics.apache.org/fop/2.0/pdfencryption.html#embedded
the default values of the options can be configured in framework/webapp/config/fop.properties.

3. The demo page is https://localhost:8443/example/control/ExampleReportPdfOptions?exampleId=EX01

4. Barcode is tested.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1691852 13f79535-47bb-0310-9956-ffa450edef68
2015-07-19 20:41:32 +00:00
Shi Jinghai 4b8e259073 OFBIZ-6374 - PartyContentWrapper.getPartyContentAsText use wrong signature
Put Sebastian Leitner's patch on PartyContentWrapper.java into trunk.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1690581 13f79535-47bb-0310-9956-ffa450edef68
2015-07-13 07:58:34 +00:00
Shi Jinghai ab266c2e1c OFBIZ-6504 - Create password protected PDF in OFBiz
Closed the PDF document.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1690531 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 20:51:17 +00:00
Shi Jinghai bf877c9732 OFBIZ-6504 - Create password protected PDF in OFBiz
1. Fixed two typos.

2. Replaced many tabs with 4 spaces.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1690528 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 20:44:47 +00:00
Shi Jinghai 80cfe20666 OFBIZ-6504 - Create PDF with password Protected in OFBiz
Add an example to protect a pdf generated by FOP with owner password and user password.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1690515 13f79535-47bb-0310-9956-ffa450edef68
2015-07-12 19:46:54 +00:00
Jacques Le Roux 1d9f55c71f A patch from Francis Douet for "streamContentToBrowser fails when the file name contains a comma, only with Chrome." https://issues.apache.org/jira/browse/OFBIZ-6554
streamContentToBrowser fails when the file name contains a comma, happens only with Google Chrome.
Can easily be reproduced for example by uploading the Logo Image URL of the default organization in the party manager, that includes a comma of course.
Fixed in my patch by wrapping the file name in quotes.
Error on the browser console:
GET https://localhost:8443/content/control/stream?contentId=10020 net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION

jleroux: at 1935.1 section of http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html I read this example << Content-Disposition: attachment; filename="fname.ext">> So Francis's solution is the right one

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1690086 13f79535-47bb-0310-9956-ffa450edef68
2015-07-09 12:30:22 +00:00
Shi Jinghai 157f569b2b OFBIZ-6553 - ant load-extseed cause exception
1. I changed passport enditymodel.xml to remove the 3 warnings on ThirdPartyLogin during OFBiz start.
2. Remove classpath of lib/* from ofbiz-component.xml as the path doesn't exist in the component.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1689990 13f79535-47bb-0310-9956-ffa450edef68
2015-07-09 05:52:01 +00:00
Shi Jinghai b1db6bc9b8 OFBIZ-6548. Change OAuth2GitHubSeedData.xml and OAuth2LinkedInSeedData.xml from seed to demo as the productStoreId 9000 is in a demo data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1689781 13f79535-47bb-0310-9956-ffa450edef68
2015-07-08 02:31:59 +00:00
Jacques Le Roux 871e045c99 Removes duplicated label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1689598 13f79535-47bb-0310-9956-ffa450edef68
2015-07-07 08:31:43 +00:00
Shi Jinghai d58eca2920 OFBIZ-6135 - Passport Component for OAuth2
1. Commented out the passport files include in ecomseo.
2. Add quick start steps in README.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1689400 13f79535-47bb-0310-9956-ffa450edef68
2015-07-06 13:51:44 +00:00
Shi Jinghai 7e30e504c8 OFBIZ-6542 as Gan Hong-Wai suggested, added EntityCondition.makeCondition("geoTypeId", "TERRITORY") in CommonWorkers.java of trunk.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1689266 13f79535-47bb-0310-9956-ffa450edef68
2015-07-05 17:20:46 +00:00
Jacques Le Roux 6ceb90c8fa Puts the focus on the 1st field of the scheduleForm in the setServiceParameterSync.ftl if it exists
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1688773 13f79535-47bb-0310-9956-ffa450edef68
2015-07-02 07:40:15 +00:00
Jacques Le Roux bc3d048a3f OFBIZ-6544 - The focus-field-name form widget feature is broken
This fixes it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1688772 13f79535-47bb-0310-9956-ffa450edef68
2015-07-02 07:38:02 +00:00
Shi Jinghai 8a9dfdb6c0 OFBIZ-6135 - Passport Component for OAuth2
Added /passport/build to svn:ignore.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1688507 13f79535-47bb-0310-9956-ffa450edef68
2015-06-30 18:50:40 +00:00
Shi Jinghai f1fb02e53d OFBIZ-6135 - Passport Component for OAuth2
The oauth2 login icons will appear in /ecomseo/checkLogin page if the seed data files are properly configured and imported into database.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1688503 13f79535-47bb-0310-9956-ffa450edef68
2015-06-30 18:38:16 +00:00
Jacques Le Roux 7fb125b874 OFBIZ-6536 - The "Create new" link under partymgr has disappeared
This patch removes CreateNewParty intermediate screen. This screen used to just include a menu. This menu is now into findParty screen, the security has been moved from screen to menu.
The CreateNewParty screen is not used elsewhere so can disappear, so is findparty.ftl, replaced by form widgets



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687851 13f79535-47bb-0310-9956-ffa450edef68
2015-06-26 21:12:46 +00:00
Michael Brohl 7853deb863 Added about 1800 missing or wrong German labels for the accounting component (OFBIZ-6521).
Corrected a few other labels, mainly typos or unnecessary spaces.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687775 13f79535-47bb-0310-9956-ffa450edef68
2015-06-26 14:17:30 +00:00
Nicolas Malin 07fdc51217 correct compilation error, missing delegatorBaseName parameter for function GenericDelegator.getEntityNamesByGroup. Issue OFBIZ-6533, thanks Wei Zhang for this alert
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687679 13f79535-47bb-0310-9956-ffa450edef68
2015-06-26 07:04:55 +00:00
Jacques Le Roux a41d4ac771 OFBIZ-6532 - Adding a new entity-group but no corresponding delegator/group-map is hard to debug
Adds an error message in log just before crash, so it's easy to debug

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687589 13f79535-47bb-0310-9956-ffa450edef68
2015-06-25 17:24:55 +00:00
Pranay Pandey 79bead02c7 Updating agreementTermId (<10000) for AgreementTerm in demo data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687448 13f79535-47bb-0310-9956-ffa450edef68
2015-06-25 08:52:21 +00:00
Deepak Dixit 43ed056525 OFBIZ-6530: Removed async=false from lookupDescriptionLoaded , getJSONuiLabels and getJSONuiLabel js method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687427 13f79535-47bb-0310-9956-ffa450edef68
2015-06-25 08:13:32 +00:00
Nicolas Malin 08e6171f3b show estimatedShipDate and estimatedDeliveryDate on OISG if they are present. Related issue OFBIZ-6198. Thanks Christian Carlow for this. Correct also two french labels that not corresponding
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687371 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 21:10:56 +00:00
Adrian Crum 4fc6618abe Removed DCL code from TreeFactory.java, small code cleanup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687348 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 19:18:16 +00:00
Jacques Le Roux b0ba66e6d7 Fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687299 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 14:37:03 +00:00
Jacques Le Roux 4d2a942aa4 A patch from Gil Portenseigne for "Add a mean to untie geo associations" https://issues.apache.org/jira/browse/OFBIZ-6528
In the Webtools we can asociate Geos but we have yet no means to untie them

This patch adds a new grid in EditGeoScreen to see/delete GeoAssoc and CommonEntityLabels default-resource-name on GeoAssocType for translation purpose.

jleroux: On Pierre's Smits suggestion Gil also added a clickable link to open the associated Geo and a column to show the geoTypeId of the associated Geo.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687259 13f79535-47bb-0310-9956-ffa450edef68
2015-06-24 13:10:00 +00:00
Adrian Crum 73e5b3af04 JavaDoc fixes, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687141 13f79535-47bb-0310-9956-ffa450edef68
2015-06-23 22:02:33 +00:00
Adrian Crum 6bd65c4b2f Fixed some C&P errors in ModelFieldVisitor.java. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687093 13f79535-47bb-0310-9956-ffa450edef68
2015-06-23 16:46:06 +00:00
Deepak Dixit 8bfcacf173 Fixed illegal argument exception bug in create order service, passed correct argument while performing getRelatedOne operation to get the ProductFacility records
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686970 13f79535-47bb-0310-9956-ffa450edef68
2015-06-23 05:46:21 +00:00
Shi Jinghai 85bed69778 Refs #6518.
Translated new labels in trunk version into zh locale (Simplified Chinese).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686778 13f79535-47bb-0310-9956-ffa450edef68
2015-06-22 07:10:41 +00:00