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
<<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
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 (\') at this stage. So I replaced "\'" by "'"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693258 13f79535-47bb-0310-9956-ffa450edef68
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
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
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
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
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
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
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
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
[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
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
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
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
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
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