-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public sharing does not work anymore with 10.2.0 when password is enforced #7245
Comments
@lexo-mfleuti So you're saying with server version 10.2.0 it starts failing? |
@ckamm Yes, we updated to 10.2.0 about 2-3 weeks ago and it's no longer working ever since. |
Yes, it looks like the server no longer auto-fills the expiration date if it's required. :( There was a similar issue with the password policy app that caused us to change how link share creation works (you can now edit attributes before creation). That will be available with the next 2.6.0 prerelease. Unfortunately there's another bug there I just discovered, so using the dailies doesn't work yet. Nevertheless, this change breaks share creation for older clients and we'll need to speak with the server team (@michaelstingl - but wait for me to double-check tomorrow) |
Glad you found the error that quickly. Thank you very much for looking into it! Though there must remain a very quick and simple way to share files with like 1 click. OwnClouds' primary purpose is sharing files. This needs to be extremely fast and easy. That's why I suggested this: |
@lexo-mfleuti Yes, the current quick link-share creation also assumes the server will fill in the expire date if it requires it, instead of erroring - that's why it's also broken by 10.2.0. I currently guess that there'll be a workaround for it in >=2.6.0, and the behavior may be reverted in future server releases to make older clients work again. |
Fixes the "Copy public link to clipboard" context menu action for newer servers. Previously the server would fill the expiration date for us, since version 10.2.0 it reports and error. To workaround that the action now always sends an expiration date if default expiration is enabled in the settings. For #7245
Fixes the "Copy public link to clipboard" context menu action for newer servers. Previously the server would fill the expiration date for us, since version 10.2.0 it reports an error. To workaround that the action now always sends an expiration date if default expiration is enabled in the settings. For #7245
QA: Check that the "Copy public link to clipboard" action works (creates share if necessary, sets it to clipboard) with and without the "Set default expiration date" and "Enforce expiration date" server sharing settings. Need to restart client after changing server settings. The option can't work yet if shares require a password. |
@ckamm |
It worked up until 10.2.0. Though - to be honest - I'm not quite certain what the version was before. I think 10.1.0 |
@patrickjahns I think I started on version 10.1.0 where it worked, and it started failing with 10.2.0. That makes some sense since owncloud/core#34971 was merged for 10.2.0. |
Fixes the "Copy public link to clipboard" context menu action for newer servers. Previously the server would fill the expiration date for us, since version 10.2.0 it reports an error. To workaround that the action now always sends an expiration date if default expiration is enabled in the settings. For #7245
6 scenarios were tested:
As this issue contains multiple bugs and some of them has been fixed, I'll close it and the remaining one will be tracked in the separate issue as mentioned above |
Tested with 2.6.0alpha2 (build 12097), Windows 10, server 10.2.1 (stable) |
Expected behaviour
When the option "Enforce expiration date" is enabled the Windows client should automatically set the latest expiration date and create a valid public share link. This worked up until 10.2.0.
Actual behaviour
Steps to reproduce
Server configuration
Operating system:
Ubuntu 19.04 (GNU/Linux 5.0.0-16-generic x86_64)
Web server:
Apache/2.4.38 (Ubuntu)
Database: mysql Ver 15.1 Distrib 10.3.13-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
PHP version:
PHP 7.2.19-0ubuntu0.19.04.1 (cli) (built: Jun 4 2019 14:44:42) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.19-0ubuntu0.19.04.1, Copyright (c) 1999-2018, by Zend Technologies
ownCloud version:
10.2.0
Storage backend (external storage):
Local
Client configuration
Client version:
I tried 2.5.4 and 2.6.0alpha1 from here: https://owncloud.org/download/
OS language:
English
Installation path of client:

C:\Program Files (x86)\ownCloud
The text was updated successfully, but these errors were encountered: