Commit Graph
716 Commits
Author SHA1 Message Date
Mridul Pathak 94a2e779eb [OFBIZ-6742] Last categories section in e-commerce pages is broken. Applying patch from OFBIZ-6742. Thanks Amardeep Singh Jhajj for reporting the issue and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1715536 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 15:02:30 +00:00
Mridul Pathak 7a4968ba03 [OFBIZ-6534] Same Billing Address generates an error. Continue button was generating error as well. Applying patch from OFBIZ-6534. Thanks Pierre Smits for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1715531 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 14:23:05 +00:00
Deepak Dixit 0ad816b159 (OFBIZ-6655) Applied patch from jira issue.
============================================================
- Added session cookies config for ecommerce,ecomseo and ecomclone web.xml. 
- Used web-app 3.0 version for web-app
- Re-arrange description and display-name attribute as per the web-app structure.

Thanks Rahul for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1715506 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 12:42:30 +00:00
Jacques Le Roux 5649e758dc No functional change, completes r1713985: removes superfluous .properties extension from UtilProperties requests (and yes I checked UspsServicesTests ;))
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1714652 13f79535-47bb-0310-9956-ffa450edef68
2015-11-16 19:02:25 +00:00
Jacques Le Roux 511915c661 No functional change, completes r1713985 ("Remove superfluous .properties extension from EntityUtilProperties requests" https://issues.apache.org/jira/browse/OFBIZ-6719) for groovy files (nothing left elsewhere)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1713989 13f79535-47bb-0310-9956-ffa450edef68
2015-11-12 09:32:13 +00:00
Jacques Le Roux b528ce3c3f Completes r1709882 for <<Possible static XSS issue with Content>> https://issues.apache.org/jira/browse/OFBIZ-6669
As explained in OFBIZ-6669 last comments, contrary to what I did in ContentWorker class, when I before did the work on *ContentWrapper classes I did not use the sanitizer but only an encoder (either HTML or URL).
Because I wrongly supposed that only plain text was used there and certainly my lazy mind thought it was easier because of the URL encoderType to also handle.

When the encoderType is HTML, we now use the sanitizer in *ContentWrapper classes, and ContentWorker.java has also been adapted. 
For that I enhanced the UtilCodec class. The sanitizer is only used when HTML is requested, else the sanitize() method simply calls the encode() method.

I removed the content.sanitize property in content.properties and added a sanitizer.permissive.policy property in the new owasp.properties (in base config) with some explanations. This allows for more configuration.

I changed the line 85 in productsummary.ftl to use an HTML content wrapper, same in minilastviewedcategories.ftl. 
To be totally complete, we should change *lines like* in productsummary.ftl line 85 to use an HTML content wrapper.
Not easy to spot but anyway those not done will simply not totally show well, without any security impacts.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1713634 13f79535-47bb-0310-9956-ffa450edef68
2015-11-10 13:40:22 +00:00
Jacques Le Roux 8c14d3744d Fixes "ecommerce screen exception" https://issues.apache.org/jira/browse/OFBIZ-6665 reported by Wai
I missed this hidden ProductConfigItemContentWrapper class while working on r1705329 and sequels. I checked there are no other *ContentWrapper classes left now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1707857 13f79535-47bb-0310-9956-ffa450edef68
2015-10-10 10:38:49 +00:00
Arun Patidar da04c7ce72 [OFBIZ-6171] Applied patch from Pierre Smits for replacing 'Open for Business' references with 'Apache OFBiz'.Thanks Pierre for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1706589 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:15:21 +00:00
Jacques Le Roux 33bfc71dfc Fixes a typo introduced with r1705329
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705532 13f79535-47bb-0310-9956-ffa450edef68
2015-09-27 12:22:51 +00:00
Jacques Le Roux e41af16e1a Still missed those ones in groovy after r1705329
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705427 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 12:03:26 +00:00
Jacques Le Roux 69766d44fd I spotted some misses in FTL templates after r1705329, this fixes them
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705417 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 11:52:31 +00:00
Jacques Le Roux e8862d0063 I just spotted cases like
categoryContentWrapper.DESCRIPTION; 
before committing r1705405. This fixes them

Thanks also for Deepak's report about it, it was obvious when you loaded the ecommerce apps


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705412 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 11:20:18 +00:00
Jacques Le Roux 480b42d2e9 I missed some cases, if ever you spot some others or typos please let me know
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705405 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 10:24:02 +00:00
Jacques Le Roux 596359c680 I found a possible XSS attack through ProductContentWrapper.java.getProductContentAsText() which is notably used in several FTL files. This exists also in others *ContentWrapper.java.
Note that in supported releases it's hard to exploit, it's a Stored XSS https://www.owasp.org/index.php/Types_of_Cross-Site_Scripting which means you need 1st to somehow inject exploiting code in the DB.

This fixes it by changing the ContentWrapper interface
from
    public interface ContentWrapper {
        public StringUtil.StringWrapper get(String contentTypeId);
    }
to
    public interface ContentWrapper {
        public StringUtil.StringWrapper get(String contentTypeId, String encoderType) {
    }

And changing the Category, Party, Product, ProductPromo and WorkEffort ContentWrapperS accordingly. This means to use 2 types of encoderTypes: "html" and "url".
The "html"  encoderType will be used for all ProductContentTypes but those who contain URL in their ContentTypeIdS (actually end with, "_URL") which will use "url" encoderType.
It concerns not only the get() method but also methods like getPartyContentAsText(), getProductContentAsText(), etc.

It seems a big change but it's straightforward. It's normally complete. 

There are some (unrelated) tabs replaced by spaces here and there, and few trailing spaces removed but nothing big

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1705329 13f79535-47bb-0310-9956-ffa450edef68
2015-09-25 16:27:12 +00:00
Jacques Le Roux 513c11fbaa Err goofy, I forgot to save (related with OFBIZ-6598) after reverting pending changes I did to test OFBIZ-6111 locally
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1704228 13f79535-47bb-0310-9956-ffa450edef68
2015-09-21 08:00:45 +00:00
Jacques Le Roux a237f624fd A patch from Pierre Smits for "Replace bsf event type and handler with groovy" https://issues.apache.org/jira/browse/OFBIZ-6598
jleroux: I did the same in order controller (was only in ecommerce) even if only a commented out example was used there

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1704227 13f79535-47bb-0310-9956-ffa450edef68
2015-09-21 07:54:13 +00:00
Deepak Dixit 9149040ac3 (OFBIZ-6362) Added missing code in header.ftl file to include component specific js file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1697574 13f79535-47bb-0310-9956-ffa450edef68
2015-08-25 06:40:54 +00:00
Shi Jinghai 63e589b26d OFBIZ-6570 Anonymous unsubscribe from contact list generates an error.
Add value="main" to "error" responses related to unsubscribe.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1696018 13f79535-47bb-0310-9956-ffa450edef68
2015-08-15 07:00:24 +00:00
Shi Jinghai 62767278d0 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/specialpurpose@1689400 13f79535-47bb-0310-9956-ffa450edef68
2015-07-06 13:51:44 +00:00
Shi Jinghai f2ff13fb59 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/specialpurpose@1688503 13f79535-47bb-0310-9956-ffa450edef68
2015-06-30 18:38:16 +00:00
Pranay Pandey 8c58b8ab65 Updating agreementTermId (<10000) for AgreementTerm in demo data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1687448 13f79535-47bb-0310-9956-ffa450edef68
2015-06-25 08:52:21 +00:00
Shi Jinghai e8fb02c303 Refs #6518.
Translated new labels in trunk version into zh locale (Simplified Chinese).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1686778 13f79535-47bb-0310-9956-ffa450edef68
2015-06-22 07:10:41 +00:00
Nicolas Malin 8995c4fd02 Cleaning forms code is needed after setting default-value in list-options and entity-options, patch related to OFBIZ-6524 and follows the resolution of OFBIZ-6490 and OFBIZ-6489. Thanks Gil Portenseigne for this effort
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1686674 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 21:58:05 +00:00
Arun Patidar 4909b2a0d3 [OFBIZ-6111] Applied patch from the task to fix after login redirects on ecommerce application. Now user redirects on its last view page like main page, products page or category page.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1686574 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 11:52:36 +00:00
Deepak Dixit 65d9619f79 OFBIZ-6207: Only formatting, No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1677770 13f79535-47bb-0310-9956-ffa450edef68
2015-05-05 10:18:22 +00:00
Deepak Dixit ddf8062e46 Applied patch manually from jira issue OFBIZ-6207 - Anyone can view any Request or Quote
Thanks  Forrest Rae for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1677769 13f79535-47bb-0310-9956-ffa450edef68
2015-05-05 10:17:12 +00:00
Adrian Crum 8f7b15e2c3 Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1674064 13f79535-47bb-0310-9956-ffa450edef68
2015-04-16 13:05:55 +00:00
Nicolas Malin 1e3600618d Convert javolution FastMap, FastSet and FastList by standard java.util.*
Related to OFBIZ-5781 Convert Javolution collections into Java collections
Thanks to Deepak Dixit and Adrian Crum for their help.

By defautl converted :
 * FastMap by HashMap
 * FastList by LinkedList
 * FastSet by HashSet

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1672752 13f79535-47bb-0310-9956-ffa450edef68
2015-04-10 20:22:54 +00:00
Adrian Crum d504b6ffde Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1669537 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 10:04:14 +00:00
Deepak Dixit 63aa9d7872 Applied patch from jira issue OFBIZ-5295 - Anonymous Quick Checkout: No Payment Method Information shown in Order Confirmation
Thanks  Sebastian Wachinger for reporting the issue and thanks Yashwant for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1668265 13f79535-47bb-0310-9956-ffa450edef68
2015-03-21 13:43:07 +00:00
Deepak Dixit 428281e9d0 Applied patch from jira issue OFBIZ-4020 - Sign up for a contact list always redirects to the main ecommerce page
Thanks  Eric for reporting the issue, thanks Eric and Arun Patidar for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1668246 13f79535-47bb-0310-9956-ffa450edef68
2015-03-21 11:52:23 +00:00
Jacques Le Roux 458033beb3 Better title for the ecomseo webapp
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1662938 13f79535-47bb-0310-9956-ffa450edef68
2015-02-28 13:35:02 +00:00
Jacques Le Roux 62d6ac58f9 Adds a README file in birt component, updates the ecomseo one
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1662930 13f79535-47bb-0310-9956-ffa450edef68
2015-02-28 13:11:08 +00:00
Jacques Le Roux 115b13691e Fixes "Incorrect Error Displayed when "Expiring" a Contact Mechanism" reported by Forrest Rae at https://issues.apache.org/jira/browse/OFBIZ-6112
When expiring a contact mechanism, an incorrect error is displayed.  This is mostly an error due to code reuse.  There is no reason to redirect back to editcontactmech, instead just redirect to viewprofile. 

"The contact information specified does not belong to you, you may not view or edit it."

Repro:
1) Login to http://demo-stable-ofbiz.apache.org/ecommerce/control/main as DemoCustomer.
2) Navigate to http://demo-stable-ofbiz.apache.org/ecommerce/control/viewprofile
3) Click Expire next to one of the Postal Addresses.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1662361 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 06:30:57 +00:00
Jacques Le Roux 9675ca8673 We have the same now in OrderQuoteDemoData.xml.
It would be better if we have most of the demo product data in product or maybe in order component. Because almost all what can be done concerning ordering in ecommerce can also be done in order manager from which anyway ecommerce depends on

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1662093 13f79535-47bb-0310-9956-ffa450edef68
2015-02-24 20:14:20 +00:00
Ashish Vijaywargiya 0bd7753f12 Applied patch from jira issue - OFBIZ-5419 - Ordering a License product sometimes (most often) gives a blank page.
Thanks Jacques for creating the issue and thanks Arun for providing the fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1661287 13f79535-47bb-0310-9956-ffa450edef68
2015-02-21 06:28:27 +00:00
Jacques Le Roux ba8ab20cd2 Fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1658623 13f79535-47bb-0310-9956-ffa450edef68
2015-02-10 06:17:56 +00:00
Jacques Le Roux 7384aaf3d4 This reapplies r1519245: 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/specialpurpose@1658621 13f79535-47bb-0310-9956-ffa450edef68
2015-02-10 06:04:39 +00:00
Jacques Le Roux e417547ab5 A README to give some information and references about and how to use the ecomseo webapp
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1658577 13f79535-47bb-0310-9956-ffa450edef68
2015-02-09 21:20:08 +00:00
Jacques Le Roux 4298b8ed5f This implements OFBIZ-5312 "Proposal: URL-Generation Changes (mostly for SEO reasons but not only)" by merging the "SEO branch" in trunk
After some efforts to take into consideration Anil's justified concerns (simply put: keep the current behaviour), the modifications are finally light, which is greater for reviews. Most important are:
* Product component
  ** I have moved the OfbizCatalogAltUrlTransform and OfbizCatalogUrlTransform classes to a ftl subdirectory with the new FTL macros implementation: CatalogAltUrlSeoTransform, CatalogUrlSeoFilter, CatalogAltUrlSeoTransform, CatalogUrlSeoTransform, SeoTransform, UrlRegexpTransform
  ** A bunch of new filters have been added CatalogUrlSeoFilter, controlServlet, SeoCatalogUrlServlet, SeoContentUrlFilter, SeoContextFilter, SeoControlServlet, UrlRegexpContextFilter
  ** 2 util classes: SeoConfigUtil, SeoUrlUtil
  ** By default ofbizCatalogAltUrl and ofbizCatalogUrl macros now use the new implementations by CatalogAltUrlSeoTransform and CatalogUrlSeoTransform. This can be changed back in freemarkerTransforms.properties
  ** A SeoConfig.xml file define some SEO parameters, the SeoConfig.xsd can be sued as documentation, globally please refer to OFBIZ-5312.
* Framework webapp component
  ** By default ofbizUrl macro now uses the new implementations by UrlRegexpTransform. This can be changed back in freemarkerTransforms.properties
* Ecommerce component
  ** A new ecomseo webapp clones the ecommerce webapp on the model of ecomclone. There is not much there: mostly a controller with a new JspViewHandler class (in ecommerce) and a web.xml file

With these changes we can have both worlds running side by side. So you can use eitherb http://localhost:8080/ecommerce/control/main as root or http://localhost:8080/ecomseo, but also if you want http://localhost:8080/ecommerce/. Then everything follows.

From my reviews and tests all is working as expected. I only found a trivial bug that I can also reproduce in current trunk see OFBIZ-5305 (sometimes not locally, weird).

Of course, all the tests passes. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1655803 13f79535-47bb-0310-9956-ffa450edef68
2015-01-29 19:06:49 +00:00
Jacques Le Roux fa056d44e0 Fixes "Gift card reload service not working OOTB" https://issues.apache.org/jira/browse/OFBIZ-5914
jleroux: this issue was only in ecommerce, order manager worked once you followed the FAQ about fin account and GC. It simply missed a test on product.requireAmount

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1653456 13f79535-47bb-0310-9956-ffa450edef68
2015-01-21 08:04:10 +00:00
Jacques Le Roux bf170f843a Reverts r1652814, it makes a number of tests to fail
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1652923 13f79535-47bb-0310-9956-ffa450edef68
2015-01-19 06:43:25 +00:00
Adrian Crum ae9103cf18 Reorganized the screen widget src folder so classes are more organized.
This commit might break some Groovy scripts. There seemed to be a lot of C&P widget import statements, but there were no widget classes being used in the script, so I removed them. I might have overlooked something though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1652852 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 21:03:40 +00:00
Jacques Le Roux 5cc43c7179 "Gift card reload service not working OOTB" https://issues.apache.org/jira/browse/OFBIZ-5914
Introduces inventory data for GC-002 to have the amount field showing at ecommerce/gift-card-reload-GC-002-p. This field depends on ProductFacility.lastInventoryCount column

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1652814 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 17:41:13 +00:00
Mridul Pathak 9937d25f28 [OFBIZ-3433] eCommerce main store front error returned when attempt is made to "Sign Up For Contact List" - as reported by Ruth. Not a service level bug but a UI issue. Email is a required input parameter in "signUpForContactList" service. Sign up form does have a field for email but has no label which is confusing to user, neither it is displayed as a required field. Applied patch from the issue to fix UI. Thanks Ruth for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1652627 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 15:46:01 +00:00
Mridul Pathak 74ed931924 [OFBIZ-4457] Checkout layout - in screens before payment screen, the fields are below the last div in right column. Fixed Markup as in other checkout pages. Thanks Jacques for reporting the issue, and Amardeep for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1652611 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 14:05:20 +00:00
Pranay Pandey 3598104491 Applied patch from jira issue - OFBIZ-5034. Contact us submit doesn't display a message on the page and doesn't send an email notification.
Thanks Eric de Maulde for reporting the issue and Amardeep Singh Jhajj for providing the patch.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1652610 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 14:04:14 +00:00
Jacques Le Roux cd2e289d78 Changes in all labels files: <value xml:lang="(.*)_(.*)"> to <value xml:lang="$1-$2">
Changes also listLocales.ftl to show dashes rather than underscores

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1650880 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 09:59:32 +00:00
Adrian Crum 8560800dcd Updated the UI label files so they reference a schema.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1649666 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:24:18 +00:00
Adrian Crum b025c43a8c Fix for rev 1649090. In that rev I removed the hard-coded Content default entity, but that broke trees that didn't specify Content as their default entity. This commit specifies the Content entity in the Content tree definitions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1649222 13f79535-47bb-0310-9956-ffa450edef68
2015-01-03 17:30:50 +00:00