Hi Nicolas,
OK, it's something completely different than what I thought :)
At this stage I'm not sure what we want to do.
For now UrlRegexpTransform is only for product/category so it fits in product component. I don't see any impact on ecomseo URLs. So Deepak's change
seems right to me.
Do you propose to apply your previous patch?
Or to revert Deepak's change and then why? Because I don't understand how Deepak's change has an impact on your work for OFBIZ-4361. How does it
relates with UrlRegexpTransform? Only if someone ask for a new password from product and facility webapp?
I have created OFBIZ-11229 to support Paul's idea. Even if I don't see me
working on that right now...
Thanks
Jacques
Le 02/10/2019 à 14:13, Nicolas Malin a écrit :
Hi Jacques,
I think my previous message wasn't clear.
With the previous patch that I sent, when you ask for forgotPassword, the email
contains :
* With OfbizUrlTransform :
* ask from ecommerce webapp : <a
href='https://localhost:8443/ecommerce/control/changePassword?....'>
* ask from partymgr webapp : <a
href='https://localhost:8443/partymgr/control/changePassword?....'>
* With UrlRegexpTransform :
* ask from ecommerce webapp : <a href='changePassword?....'>
* ask from partymgr webapp : <a href='changePassword?....'>
So with UrlRegexpTransform I loose the possibility offert by wesite to build a
correct dynamic link.
I'm sure UrlRegexpTransform have good reason to exists, and maybe we need to
improve it to replace completely OfbizUrlTransform
Nicolas
On 10/1/19 1:41 PM, Jacques Le Roux wrote:
Le 01/10/2019 à 13:33, Jacques Le Roux a écrit :
Le 01/10/2019 à 13:20, Jacques Le Roux a écrit :
Le 01/10/2019 à 12:46, Nicolas Malin a écrit :
To test, you can check with this patch
Actually it worked as is (trunk HEAD) locally w/o this patch. So what's the
problem?
It was from webtools.
It also works from ecommerce, apart that the email is in English there.
From product and party I get this error when clicking on the email link:
2019-10-01 13:28:36,704 |jsse-nio-8443-exec-1 |LoginWorker
|E| Current Password Decryption failed
org.apache.ofbiz.entity.EntityCryptoException: org.apache.ofbiz.entity.EntityCryptoException: key(login.secret_key_string) not found in database
(key(login.secret_key_string) not found in database)
Is that the pb you have? Ie it works only from webtools because of using
OfbizUrlTransform instead of UrlRegexpTransform ?
Hi Nicolas,
BTW, despite this message in log I'm still able to change the password
@All, I guess because anyway OOTB a real value for login.secret_key_string is
not needed, you can refer to[1] for more about that
[1]
https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk/framework/security/src/docs/asciidoc/_include/sy-password-and-JWT.adoc
HTH
Jacques