Re: [I] [Password Reset Email Template Ignores {{domainUrl}} Variable in CloudStack 4.22] [cloudstack]
DaanHoogland commented on issue #12050: URL: https://github.com/apache/cloudstack/issues/12050#issuecomment-3810838563 fixed in #12078 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] [Password Reset Email Template Ignores {{domainUrl}} Variable in CloudStack 4.22] [cloudstack]
DaanHoogland closed issue #12050: [Password Reset Email Template Ignores
{{domainUrl}} Variable in CloudStack 4.22]
URL: https://github.com/apache/cloudstack/issues/12050
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Re: [I] [Password Reset Email Template Ignores {{domainUrl}} Variable in CloudStack 4.22] [cloudstack]
juanjmendozamm commented on issue #12050:
URL: https://github.com/apache/cloudstack/issues/12050#issuecomment-3800449241
Hello @nimbustech-lab, Can you help me by sharing the settings you've set up
for sending password recovery emails? I've followed the instructions in the
link
https://docs.cloudstack.apache.org/en/latest/adminguide/accounts.html#password-recovery-for-users-forgot-password,
but the emails aren't arriving. I see these messages in the log.
2026-01-26 09:25:01,187 ERROR [o.a.c.u.m.SMTPMailSender]
(qtp2038105753-25:[ctx-35708c73]) (logid:d8f90156) Unable to send mail
[Password Reset Request] to the recipcients
[[{"mailAddress":"X"}]]. javax.mail.MessagingException: Could
not connect to SMTP host: smtp.office365.com, port: 587;
nested exception is:
javax.net.ssl.SSLHandshakeException: No appropriate protocol
(protocol is disabled or cipher suites are inappropriate)
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961)
at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
at javax.mail.Service.connect(Service.java:295)
at javax.mail.Service.connect(Service.java:176)
at javax.mail.Service.connect(Service.java:125)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Re: [I] [Password Reset Email Template Ignores {{domainUrl}} Variable in CloudStack 4.22] [cloudstack]
juanjmendozamm commented on issue #12050:
URL: https://github.com/apache/cloudstack/issues/12050#issuecomment-3800407015
> ### problem
> When configuring password reset email templates in CloudStack 4.22, the
variable _{{domainUrl}}_ or _{{{domainUrl}}}_ is ignored during email
generation. The reset link in the email only contains a relative path (e.g.,
_/client/#/user/resetPassword?..._) instead of a complete URL
(_https://cloudstack.example.com/client/#/user/resetPassword?..._).
>
> This causes broken links when users click “Reset Password” from the email,
as the base domain is missing.
>
> ### versions
> General Information:
>
> * CloudStack version: 4.22.0 (upgraded from 4.21.0)
> * Operating System: Ubuntu Server 24.04 LTS
> * Java version: OpenJDK 17.0.16
>
> Deployment Setup:
>
> * Number of Management Server(s): 2 (1 Active + 1 Stopped)
> * CloudStack DB Server(s): 2 MySQL DB (1 Primary + 1 Replica)
> * Hypervisor: VMware ESXi (version 7.0 Update 3)
> * vCenter Version: vSphere Client version 7.0.3.0
> * ESXi Hosts: 2
> * SMTP Server: Microsoft Office 365 (smtp.office365.com, port 587)
>
> ### The steps to reproduce the bug
> 1. Find the global configuration called "User password reset mail domain
url" and put in the relevant domain name.
> 2. Find another global configuration called "User password reset mail
template" and you can choose to either edit or use the default email template
to test SMTP.
> 3. Once configured both, you need to wait for 30 seconds then try to
request a password reset on the landing / login page.
> 4. Once the email comes in, it will show the message you've written with
the broken password reset link. It will not have the {{{domainUrl}}} called
into the email / message template. Only resetLink, token will be called
succesfully into the email / message.
>...
>
> ### What to do about it?
> The variable _{{{domainUrl}}}_ defined in **Global Settings →
user.password.reset.mail.domain.url** should be properly parsed and included in
the email body when rendering the reset link.
>
> Currently, the email template engine ignores the {{{domainUrl}}}
placeholder entirely, resulting in an incomplete reset link that starts only
from _client/#/user/resetPassword?_
>
> To fix this:
>
> 1. Ensure that the _domainUrl_ variable is fetched and passed correctly to
the email rendering context (e.g., in _UserPasswordResetManagerImpl.java_).
> 2. Verify that both _domainUrl_ and _resetLink_ variables are available to
the Mustache template at render time.
> 3. Consider adding a validation check to confirm that _domainUrl_ is not
null or empty before sending the email.
> 4. (Optional) Update the documentation to clarify how
_user.password.reset.mail.domain.url_ interacts with the reset link template
variables.
>
> This would ensure the password reset email renders correctly as:
`https://cloudstack.example.com/client/#/user/resetPassword?username=user&token=`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Re: [I] [Password Reset Email Template Ignores {{domainUrl}} Variable in CloudStack 4.22] [cloudstack]
kiranchavala commented on issue #12050: URL: https://github.com/apache/cloudstack/issues/12050#issuecomment-3526733088 @nimbustech-lab Did you set any value for the global setting "user.password.reset.mail.domain.url" Update issue still exists even if there is a value setup for "user.password.reset.mail.domain.url" -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] [Password Reset Email Template Ignores {{domainUrl}} Variable in CloudStack 4.22] [cloudstack]
DaanHoogland commented on issue #12050: URL: https://github.com/apache/cloudstack/issues/12050#issuecomment-3522136373 > [@DaanHoogland](https://github.com/DaanHoogland) > > Could this pr caused the issue > > [#11379](https://github.com/apache/cloudstack/pull/11379) yes, it could, but I don’t see how yet. cc @daviftorres , any opinion? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] [Password Reset Email Template Ignores {{domainUrl}} Variable in CloudStack 4.22] [cloudstack]
kiranchavala commented on issue #12050: URL: https://github.com/apache/cloudstack/issues/12050#issuecomment-3521923756 @DaanHoogland Could this pr caused the issue https://github.com/apache/cloudstack/pull/11379 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
Re: [I] [Password Reset Email Template Ignores {{domainUrl}} Variable in CloudStack 4.22] [cloudstack]
kiranchavala commented on issue #12050: URL: https://github.com/apache/cloudstack/issues/12050#issuecomment-3521917860 Thanks @nimbustech-lab Able to reproduce the issue on 4.22 ``` Hello test! You have requested to reset your password. Please click the following link to reset your password: /client/#/user/resetPassword?username=test&token=6fc1e0be-fcb8-409f-b912-dc9a7721c44b If you did not request a password reset, please ignore this email. ``` cc @DaanHoogland -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
