Commit Graph
27737 Commits
Author SHA1 Message Date
Deepak Dixit cec849f42e (OFBIZ-3074) Applied slightly modified patch from OFBIZ-3074
============================================================ HTML clean up for editShoppingList.ftl.
============================================================ 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721092 13f79535-47bb-0310-9956-ffa450edef68
2015-12-21 05:25:56 +00:00
Deepak Dixit 76742dc2bc (OFBIZ-2987) Applied slightly modified patch from OFBIZ-2987
============================================================ Html clean up of quick add page.
============================================================ 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721091 13f79535-47bb-0310-9956-ffa450edef68
2015-12-21 05:16:28 +00:00
Deepak Dixit f7a89e5cdd (OFBIZ-6525) Add confirmation message before deleting entity record from web-tools application.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721089 13f79535-47bb-0310-9956-ffa450edef68
2015-12-21 05:09:06 +00:00
Jacques Le Roux df4d1350ef Prevents a possible "NPE", found in trunk demo logs (it's a treasure I will continue to dig in...)
freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> lastContent.description  [in template "component://ecommerce/webapp/ecommerce/content/viewcontent.ftl" at line 38, column 38]



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721067 13f79535-47bb-0310-9956-ffa450edef68
2015-12-20 21:14:05 +00:00
Jacques Le Roux 5d9f3898c6 A slightly modified patch from Supachai Chaima-ngua for <<Upload product image does not work.>> https://issues.apache.org/jira/browse/OFBIZ-6769
Upload product image dose not working because "updateDataResource" require out parameter name 'dataResourceId' but the service doesn't return by using entity-auto engine and upload image function need delegator but do not sent to upload image function.

jleroux: this was due to recent r1716271 so no needs to backport. The changes in ImageManagementServices were not operationally needed (it worked as is) but indeed better for a method like scaleImageMangementInAllSize to rely on DispatchContext rather than service context when called from a service. Since it's not a service I changed the scaleImageMangementInAllSize method to private. I also removed the useless "ImageManagementServices." prefix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721066 13f79535-47bb-0310-9956-ffa450edef68
2015-12-20 21:07:27 +00:00
Mridul Pathak 258357bce6 [OFBIZ-6043] Change of ship-to address is not persisted when stepping forward and backward in a create order process. Applying patch from OFBIZ-6043. Thanks Pierre Smits for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720932 13f79535-47bb-0310-9956-ffa450edef68
2015-12-19 14:35:57 +00:00
Mridul Pathak 7d8f8bfc2e [OFBIZ-6185] Type-ahead regarding LookupInvoice in AP doesn't return result. Applying patch from OFBIZ-6185. Thanks Pierre Smits for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720920 13f79535-47bb-0310-9956-ffa450edef68
2015-12-19 13:38:46 +00:00
Mridul Pathak 0d6f156cf7 [OFBIZ-6226] Webpos F4-F11 label mismatch. Applying patch from OFBIZ-6226. Thanks Christian Carlow for reporting the issue and providing the initial patch. Thanks Suraj Khurana for providing the improved patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720910 13f79535-47bb-0310-9956-ffa450edef68
2015-12-19 13:01:44 +00:00
Ashish Vijaywargiya 77d8b29fdf Applied patch from OFBIZ-6777 - Product weight field enhancements
================================
There are three sets of dimensions in the Product entity.
(productHeight, shippingHeight), (productWidth, shippingWidth), (productDepth, shippingDepth) but in case of weight, there is another set of dimension field weight and productWeight which are inconsistent in nature.
Fix this thing and correct all instances of this in the framework.
=================================
Thanks Suraj for reporting the issue and providing the patch for the same. Thanks Jacopo and Pierre for discussing the issue with Suraj.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720900 13f79535-47bb-0310-9956-ffa450edef68
2015-12-19 11:32:08 +00:00
Julien Nicolas 305dfee0a4 JIRA-6706 - Correct the widget-style of the itemMenu inheritance for the contained hyperlink
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720891 13f79535-47bb-0310-9956-ffa450edef68
2015-12-19 09:07:28 +00:00
Deepak Dixit 6c778699cc (OFBIZ-2985) Html cleanup of advanced search page.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720887 13f79535-47bb-0310-9956-ffa450edef68
2015-12-19 07:20:23 +00:00
Deepak Dixit 8eccda1fbd (OFBIZ-6539) Changed the hovered menus color from #ffffff to #777777, as it was almost invisible in flat grey theme..
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720886 13f79535-47bb-0310-9956-ffa450edef68
2015-12-19 07:10:09 +00:00
Sharan Foga ca3a66c6ad OFBIZ-6733 Add setup for Service Product Invoice Lines
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720883 13f79535-47bb-0310-9956-ffa450edef68
2015-12-19 04:08:47 +00:00
Wei Zhang 3138e599d2 OFBIZ-6775 Duplicated to display jGrowl error message when open a popup dialog
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720728 13f79535-47bb-0310-9956-ffa450edef68
2015-12-18 08:19:03 +00:00
Jacopo Cappellato 85b2008053 OFBIZ-6760: Moved all entity definitions from the applications components into a new component named "datamodel".
This is a first step to refactor application components into independent parts that can be deployed when needed.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720413 13f79535-47bb-0310-9956-ffa450edef68
2015-12-16 18:37:22 +00:00
Jacopo Cappellato 9e4c2c5dd0 OFBIZ-6772 and OFBIZ-6773:
* added ability to specify comparison operators for promotions with conditions on quantity
* added ability to specify categories/products to filter the order sub-total amount eligible for a discount


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720312 13f79535-47bb-0310-9956-ffa450edef68
2015-12-16 10:04:25 +00:00
Jacques Le Roux 7297da68a9 5th step for "Secure HTTP headers" https://issues.apache.org/jira/browse/OFBIZ-6766
X-XSS-Protection

This header enables the Cross-site scripting (XSS) filter built into most recent web browsers.
It's usually enabled by default anyway, so the role of this header is to re-enable the filter for this particular website if it was disabled by the user.
This header is supported in IE 8+, and in Chrome (not sure which versions). The anti-XSS filter was added in Chrome 4. Its unknown if that version honored this header.
FireFox has still an open bug entry and "offers" only the noscript plugin.
https://wiki.mozilla.org/Security/Features/XSS_Filter
https://bugzilla.mozilla.org/show_bug.cgi?id=528661

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720213 13f79535-47bb-0310-9956-ffa450edef68
2015-12-15 18:12:05 +00:00
Jacques Le Roux e88a0b0343 Reverts r1720100 as explained at OFBIZ-6769
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720147 13f79535-47bb-0310-9956-ffa450edef68
2015-12-15 12:45:25 +00:00
Jacques Le Roux 72bfe39dee A patch from Supachai Chaima-ngua for <<The renderContentAsText method should configure text sanitizer by "sanitizer.permissive.policy" in owasp.properties.>> https://issues.apache.org/jira/browse/OFBIZ-6769
An error is displayed on Accounting reports for Cash transactions:The renderContentAsText method should configure text sanitizer by "sanitizer.permissive.policy" in owasp.properties. If electronic text contains javascript, the renderContentAsText method will remove some content.

jleroux: of course you would allow script in your permissive policy at your own risk...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720100 13f79535-47bb-0310-9956-ffa450edef68
2015-12-15 09:30:30 +00:00
Jacques Le Roux 95702618c5 Reapplies r1719762 because of OFBIZ-6655
This for 3 reasons:

1) Tomcat protects the cookies which it cares about (session and SSO cookies) but not all. Notably the OFBiz specific cookies, like visitorCookie. I guess also trackableCookie, billableCookie, siteIdCookie, updatedTimeStampCookie, guestShoppingListCookie, usernameCookieName and autoLoginCookie are not secured with The data in those cookies are less sensible than jsessionId but anyway it's safer to have them all secured.
2) I don't want to debug the ecommerce issue I reported in OFBIZ-6655. And if I don't use the sessionConifg_ecommerce.patch but rather reapply r1719762 then it's OK (if I also locally revert r1686574 done for OFBIz-6111, still waiting on this one...)
3) I see no reasons why someone would not want her cookies secured, as recommended by OWASP and others


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719939 13f79535-47bb-0310-9956-ffa450edef68
2015-12-14 15:28:54 +00:00
Jacques Le Roux c06e6f7f62 2 modified patches from Rahul Bhammarker for "Add session tracking mode and make cookie secure" https://issues.apache.org/jira/browse/OFBIZ-6655
Need to enhance security at web-app level. 
As per current implementation:
- The cookie containing the session identifier is not secure
- The session identifier is transmitted in the query string of the URL

To fix these issue we have to add following session config otpions in web.xml
{code}
<session-config>
	<cookie-config>
	    <http-only>true</http-only>
	    <secure>true</secure>
	</cookie-config>
	<tracking-mode>COOKIE</tracking-mode>
</session-config>
{code}

Also we need to update the web-app servlet specification from 2.3 to 3.0
{code}
<web-app version="3.0"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                            http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
{code}
https://tomcat.apache.org/whichversion.html

jleroux: these are only the framework+themes+applications patches, with 3 entries not applied


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719872 13f79535-47bb-0310-9956-ffa450edef68
2015-12-14 10:02:24 +00:00
Nicolas Malin fdb9235b5e Remove an over charge on js function getRequestData() use by layered-modal link call when two links are present on the same page. Related to OFBIZ-6768
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719868 13f79535-47bb-0310-9956-ffa450edef68
2015-12-14 09:19:37 +00:00
Jacques Le Roux 0cdcfb69ce A patch from Francis Douet for "Error on Accounting reports for Cash transactions." https://issues.apache.org/jira/browse/OFBIZ-6765
An error is displayed on Accounting reports for Cash transactions:
_Error running script at location component://accounting/webapp/accounting/WEB-INF/actions/reports/CashFlowStatement.groovy: java.lang.IllegalArgumentException: argument type mismatch_

How to reproduce: create a new cash transaction and go to the Cash Flow Statement report.
eg https://demo-trunk-ofbiz.apache.org/accounting/control/CashFlowStatement?organizationPartyId=Company

The attached patch addresses the issue. I believe this is related to OFBIZ-5781.

jleroux: thanks also to Pierre Smits who spotted an issue with initial Francis's patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719857 13f79535-47bb-0310-9956-ffa450edef68
2015-12-14 06:53:06 +00:00
Jacques Le Roux 5e0f7218dc Removes the "runtime" specialpurpose component, for https://issues.apache.org/jira/browse/OFBIZ-6767 in relation with https://issues.apache.org/jira/browse/OFBIZ-6610
Until proven necessary I remove this component. Anyway it's not the right place for it, so if it's somehow needed it should be well placed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719855 13f79535-47bb-0310-9956-ffa450edef68
2015-12-14 05:53:36 +00:00
Jacques Le Roux 4885f653af Reverts r1719762 because of OFBIZ-6655
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719764 13f79535-47bb-0310-9956-ffa450edef68
2015-12-13 05:47:33 +00:00
Jacques Le Roux 677b49015e 4th step for "Secure HTTP headers" https://issues.apache.org/jira/browse/OFBIZ-6766
The secure flag on cookies instructs the browser to only submit the cookie as part of requests over secure (HTTPS) connections. This prevents the cookie from being observed as plain text in transit over the network.
The HttpOnly flag instructs the browser that this cookie can only be accessed when sending an HTTP request. This prevents scripts running as part of a page from retrieving the value and is a defense against XSS attacks.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719762 13f79535-47bb-0310-9956-ffa450edef68
2015-12-13 05:07:47 +00:00
Jacques Le Roux 435f07e53e 3rd step for "Secure HTTP headers" https://issues.apache.org/jira/browse/OFBIZ-6766
It's recommended to not use the X-Powered-By header. 
Tomcat doc: The xpoweredBy attribute controls whether or not the X-Powered-By HTTP header is sent with each request. If sent, the value of the header contains the Servlet and JSP specification versions, the full Tomcat version (e.g. Apache Tomcat/7.0.0), the name of the JVM vendor and the version of the JVM. This header is disabled by default. This header can provide useful information to both legitimate clients and attackers. 

OFBiz users can decide to change this parameter if they want

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719684 13f79535-47bb-0310-9956-ffa450edef68
2015-12-12 13:21:16 +00:00
Jacques Le Roux 64da8f75f8 Of course one more time I forgot to save after fixing a typo :/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719683 13f79535-47bb-0310-9956-ffa450edef68
2015-12-12 13:01:55 +00:00
Jacques Le Roux fde61d402a 2nd step for "Secure HTTP headers" https://issues.apache.org/jira/browse/OFBIZ-6766
Adds X-Content-Type-Options. According to Wikipedia and Owasp, the only defined value, "nosniff", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type. This also applies to Google Chrome, when downloading extensions.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719682 13f79535-47bb-0310-9956-ffa450edef68
2015-12-12 12:58:18 +00:00
Jacques Le Roux 4c593a6d33 1st step for "Secure HTTP headers" https://issues.apache.org/jira/browse/OFBIZ-6766
Here are X-Frame-Options and Strict-Transport-Security, just a start...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719660 13f79535-47bb-0310-9956-ffa450edef68
2015-12-12 11:37:56 +00:00
Wei Zhang ef072df4e8 OFBIZ-6762 Show JGrowl alert when using ajax submit form
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719250 13f79535-47bb-0310-9956-ffa450edef68
2015-12-11 04:06:43 +00:00
Jacques Le Roux 627bfd42d3 A patch from Pierre Smits for "Wrong purchase invoice item type for product type IDs RAW_MATERIAL, GOOD" https://issues.apache.org/jira/browse/OFBIZ-6763
Reported by Michael Powacht
System incorrectly derives invoice item type INV_FPROD_ITEM (instead of  PINV_FPROD_ITEM, for example) in purchase invoices for purchase orders with products of type RAW_MATERIAL and GOOD. As a result, the GL account derivation is incorrect as well where a revenue GL account gets debited instead of GL "Uninvoiced Shipment Receipts". 
The incorrect accounting entry posted is:
DR Revenue (as a result of invoice item type INV_FPROD_ITEM)
CR A/P
The correct entry should be:
DR Uninvoiced Shipment Receipts (derived from PINV_FPROD_ITEM)
 CR A/P
It seems the above is caused by missing entries in table invoice_item_type_map where 
INVOICE_ITEM_MAP_KEY should contain RAW_MATERIAL and GOOD and/or PRODUCT_ORDER_ITEM.
The above symptom does not affect the Goods Receipt Transactions, which gets correctly posted as:
DR Inventory
CR Uninvoiced Shipment Receipts

jleroux: Rupert Howell gave the missing data in a comment, Pierre the patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719094 13f79535-47bb-0310-9956-ffa450edef68
2015-12-10 15:17:02 +00:00
Wei Zhang 96432d976d OFBIZ-6761 The action of EditExampleBackgroundSubmit form is not correct when creating a example
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719024 13f79535-47bb-0310-9956-ffa450edef68
2015-12-10 08:20:29 +00:00
Nicolas Malin ce97afbf6b patch from Pierre Smits : Remove tooltip CommonNotModifRecreat from display fields (OFBIZ-6696), thanks for the screen clean Pierre
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1718970 13f79535-47bb-0310-9956-ffa450edef68
2015-12-09 21:24:44 +00:00
Jacques Le Roux 285d320a36 According to http://www.w3.org/International/questions/qa-http-and-lang Content-Language should not be used, moreover why only "en"?
This is part of a work for "Improves HTTP header" https://issues.apache.org/jira/browse/OFBIZ-6759

This is a 1st step. I will check if all the other http-equiv metas of bizznesstime/includes/header.ftl are still recommended/useful and move/refactor/enhance/improve them as a basis for a new header FTL template to create in framework/image and to include it "where needed" 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1718864 13f79535-47bb-0310-9956-ffa450edef68
2015-12-09 14:22:04 +00:00
Jacques Le Roux 5a7fd2624d More info about dependency-check command line option. Ref in wiki: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=61331040
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1718162 13f79535-47bb-0310-9956-ffa450edef68
2015-12-06 11:26:00 +00:00
Jacques Le Roux d0fc35e09c Updates to reflect the current state on the demo VM
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1718155 13f79535-47bb-0310-9956-ffa450edef68
2015-12-06 10:36:42 +00:00
Jacques Le Roux b3f2a59616 No functional changes: arranges imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1718153 13f79535-47bb-0310-9956-ffa450edef68
2015-12-06 09:06:48 +00:00
Jacques Le Roux ffde76d282 Removes useless and vulnerable hadoop-hdfs-2.2.0.jar - OFBIZ-6756
The hadoop-hdfs-2.2.0.jar lib has been introduced with the solr component but the hadoop-hdfs-2.6.0.jar is also there and if hadoop-hdfs-2.2.0.jar is removed OFBiz compiles w/o issues. Without hadoop-hdfs-2.2.0.jar the tests pass.

Note: https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3627

I also changed wrong entries in specialpurpose/LICENCE from 2.2.0 to 2.6.0

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1718127 13f79535-47bb-0310-9956-ffa450edef68
2015-12-05 22:04:39 +00:00
Jacques Le Roux 58cbed1366 Updates Spring Framework to 4.2.3, rename org.springframework.*-3.1.0.M2.jar to spring-*-4.2.3.jar as it's the name used by Spring. OFBIZ-6754
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1718109 13f79535-47bb-0310-9956-ffa450edef68
2015-12-05 17:39:44 +00:00
Jacques Le Roux bcf00752dd Upgrades Axis2 to 1.6.3, with its dependencies on Axiom 1.2.9 and Neethi 3.0.2 - OFBIZ-5801
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1718023 13f79535-47bb-0310-9956-ffa450edef68
2015-12-04 20:30:39 +00:00
Jacques Le Roux 13c114cee7 Updates Tomcat to 7.0.65 - OFBIZ-6752
Though disputed CVE-2013-2185 indicates a possible vulnerability with jasper.jar. Better safe than sorry: I will backport to all concerned branches (R14 and R13)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1717760 13f79535-47bb-0310-9956-ffa450edef68
2015-12-03 13:26:23 +00:00
Wei Zhang 60b776e46b OFBIZ-6736 The attribute paginate-style of form widget dose not work
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1717710 13f79535-47bb-0310-9956-ffa450edef68
2015-12-03 04:46:57 +00:00
Jacques Le Roux 5643f45dc8 Fixes "POI security fix" https://issues.apache.org/jira/browse/OFBIZ-6751
Updates POI from poi-3.10.1-20140818.jar to poi-3.13-20150929.jar

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1717682 13f79535-47bb-0310-9956-ffa450edef68
2015-12-02 21:24:35 +00:00
Gil Portenseigne 9a26099c85 Fix compilation error since OFBIZ-6748 improvements in TransactionUtil.java,
Testsuite entity-test successfull

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1717333 13f79535-47bb-0310-9956-ffa450edef68
2015-11-30 21:36:30 +00:00
Jacques Le Roux 3b84a03fab Updates commons collections from 3.2.2 to 4.1 - OFBIZ-6748
Even if we are covered from the Java Object possible deserialisation exploit by the 3.2.2 version, since it's easy to update, this issue to update the trunk to the last available release.

I updated the .classpath file by hand, but kept the tabs in it, so I could move misplaced entries to their right alphabetical places.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1717247 13f79535-47bb-0310-9956-ffa450edef68
2015-11-30 13:01:47 +00:00
Jacques Le Roux 8d14919821 Temporary workaround which should be used by anyone responsible for OFBiz security until OFBIZ-6568 is fixed. To get the contrast-rO0.jar see https://github.com/Contrast-Security-OSS/contrast-rO0
In r1717058 I missed to add start-batch-secure and both-secure

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1717180 13f79535-47bb-0310-9956-ffa450edef68
2015-11-30 05:23:29 +00:00
Jacques Le Roux a42222ad33 Temporary workaround which should be used by anyone responsible for OFBiz security until OFBIZ-6568 is fixed. To get the contrast-rO0.jar see https://github.com/Contrast-Security-OSS/contrast-rO0
Note that we are safe from an exploit using the commons collections see OFBIZ-6726. The demos will be using contrast-rO0.jar starting this night.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1717058 13f79535-47bb-0310-9956-ffa450edef68
2015-11-29 13:08:27 +00:00
Jacques Le Roux 0dd553ec96 A modified patch from Harsha Chadhar for "New feature to reclaim a user account - Using Security Questions" https://issues.apache.org/jira/browse/OFBIZ-4983
jleroux: the issue description is quite lengthy so I will summarise it here, please refer to the Jira issue for details.
"When a customer creates an account on eCommerce site, s/he will also need to answer a security question. This security question then can be used by the user to reclaim her/his account in case s/he forgets her/his password. If the user correctly answers the required security question while reclaiming her/his account, her/his password will be sent through email notification. This part would work in the same way as the existing functionality of email password (forget password)."

The description was actually more ambitious (several questions, possibility for users to create own questions) but AFAIK these parts have not been implemented.

Apart updating the patch which did not merge, I got 2 majors issues (and few others I will not report here) I bypassed with workarounds.

Unlike Harsha, and as I reported earlier in the issue, I never got the username (userLoginId) back when using hidden parameters in the request body (not in requestParameters, ie UtilHttp.getParameterMap(request)), nor actually any parameters. This is maybe due to my OS (Windows7 was XP before) or my email client (Outlook Express then, now Thunderbird) or even my SMTP configuration (I used my ISP SMTP server) but most probably because I did it all on my sole machine (localhost). I tried to understand what was happening to request body parameters with http://www.telerik.com/fiddler, but finally gave up because it's even more complicated when https is in the picture. So I decided to rather use parameters in the URL (Query string). It's a bit less safe, though the password is OFBiz encrypted, and should be replaced. But it's safe enough because only the user should receive this message and even if the message is sniffed during its journey it should be hard to decrypt the password!

Harsha used the SecurityExtUiLabels.xml (created by ashish at r1618415) in securityext component but there is already a SecurityextUiLabels.xml in common component. Since I use Windows OFBiz was unable to retrieve the labels from SecurityExtUiLabels.xml since I guess it looked into a SecurityextUiLabels.xml. So I renamed a SecurityExtUiLabels.xml to EmailPassword.xml.










git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1716915 13f79535-47bb-0310-9956-ffa450edef68
2015-11-27 20:37:15 +00:00
Nicolas Malin 37631cd9fa convert createContentRole from simple to entity-auto. It's already linked to ensurePartyRole service, relate issue OFBIZ-6745
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1716542 13f79535-47bb-0310-9956-ffa450edef68
2015-11-25 20:55:44 +00:00