[Bug]: After upgrade 27.0.x->27.1.0 public-type shares (web link) with self-generated password don't work
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
Hi all, I just upgraded to version 27.1.0 from the previous last version of 27.0.x and a problem came up (upgrade all ok). When I generate a public share (web link) having set up forced password usage a random password is (correctly) generated. Process that has always worked correctly on version 27.0.x. However, the automatic password appears to have expired a few seconds ago. If I set a password by typing it in, it works correctly.
PLEASE NOTE:
the problem occurs ONLY on links with automatically generated password on version 27.1.0. If the link was previously generated (27.0.x or 26.0.x) there is no problem. The same behavior has been verified on two different servers.
Steps to reproduce
1.I create a public share 2.An automatic password is assigned (because it is forced) 3.Sharing appears to have expired a few seconds ago
If I set a password manually (overwriting the automatic one) it works correctly.
Expected behavior
That the link is working properly
Installation method
Community Manual installation with Archive
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 22.1 to 22.2)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- [ ] Default user-backend (database)
- [X] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
cc @Fenn-CS @sorbaugh
Hi!
Thanks for reporting this issue and for providing detailed steps. We've attempted to reproduce the issue following your steps, but we're encountering some difficulty in replicating it on our end. Can you provide us some additional information that could help us further diagnose the problem? For example, are you getting any specific error messages (screenshots are awesome)? What Browser/Version are you using?
Hi!
Thanks for reporting this issue and for providing detailed steps. We've attempted to reproduce the issue following your steps, but we're encountering some difficulty in replicating it on our end. Can you provide us some additional information that could help us further diagnose the problem? For example, are you getting any specific error messages (screenshots are awesome)? What Browser/Version are you using?
Hi !
this is the screenshot with the error display. Sorry for the mixed language (ita/eng).
"scadenza password alcuni secondi fa " => "password expiration a few seconds ago "
Keep in mind that the problem was verified on both edge and chrome, on two different servers.
Hi!
Thanks for reporting this issue and for providing detailed steps. We've attempted to reproduce the issue following your steps, but we're encountering some difficulty in replicating it on our end. Can you provide us some additional information that could help us further diagnose the problem? For example, are you getting any specific error messages (screenshots are awesome)? What Browser/Version are you using?
A clarification: -) the problem occurs only during mail link sharing (during the generation of sharing with mail link sending) -) as shown in the screenshot above, going to the advanced options -) the automatically generated password turns out to be expired, so if you directly press the "proceed" button you will be notified that the random password you just created has expired -) If you edit by hand, everything works smoothly
Hi! Thanks for reporting this issue and for providing detailed steps. We've attempted to reproduce the issue following your steps, but we're encountering some difficulty in replicating it on our end. Can you provide us some additional information that could help us further diagnose the problem? For example, are you getting any specific error messages (screenshots are awesome)? What Browser/Version are you using?
A clarification: -) the problem occurs only during mail link sharing (during the generation of sharing with mail link sending) -) as shown in the screenshot above, going to the advanced options -) the automatically generated password turns out to be expired, so if you directly press the "proceed" button you will be notified that the random password you just created has expired -) If you edit by hand, everything works smoothly
I am having the exact same Issue as described in this post with the current version. Also like OP i am using another language than english
A clarification: -) the problem occurs only during mail link sharing (during the generation of sharing with mail link sending) -) as shown in the screenshot above, going to the advanced options -) the automatically generated password turns out to be expired, so if you directly press the "proceed" button you will be notified that the random password you just created has expired -) If you edit by hand, everything works smoothly
Thanks for the additional context. Looking at it.
A clarification: -) the problem occurs only during mail link sharing (during the generation of sharing with mail link sending) -) as shown in the screenshot above, going to the advanced options -) the automatically generated password turns out to be expired, so if you directly press the "proceed" button you will be notified that the random password you just created has expired -) If you edit by hand, everything works smoothly
Thanks for the additional context. Looking at it.
I understand that the problem has been identified and solved. How do I download the modified files (or diffs) to apply to version 27.1.0 in production ?
Very thanks
I understand that the problem has been identified and solved. How do I download the modified files (or diffs) to apply to version 27.1.0 in production ?
Very thanks
It would get released in 27.1.1 which should be available for download/update early next week, worst case. :)
I understand that the problem has been identified and solved. How do I download the modified files (or diffs) to apply to version 27.1.0 in production ? Very thanks
It would get released in 27.1.1 which should be available for download/update early next week, worst case. :)
OK, 27.1.1 now works but:
Show again ""password expired a few seconds ago "" but unlike before it works correctly without manually resetting the password.
Only the warning appears that the pre set random password + expired.
Only the warning appears that the pre set random password + expired.
While I would confirm this later, please @dea-75 clear you cache (if enabled) and report if anything changes.
Thanks for the follow up.
@dea-75, Right, would be sorted out.
Since this commit has already been back-ported this last been would be shipped in with https://github.com/nextcloud/server/issues/40438.
Since this commit has already been back-ported this last been would be shipped in with #40438.
I can confirm.
Browser chrome, reset cache, same problem on 27.1.1. There isn't problem and the password works but the alert persist... "password expired a few seconds ago "