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
Sharing by link file/dir shared to group #17867
Comments
@nazar-pc could you also fill in the missing stuff from the issue template https://raw.githubusercontent.com/owncloud/core/master/issue_template.md |
Server configurationOperating system: Web server: Nginx (separate docker container) Database: MariaDB (separate docker container) PHP version: 5.6 (separate docker container) ownCloud version: 8.1.0 (stable) Updated from an older ownCloud or fresh install: fresh installation using https://github.com/nazar-pc/docker-webserver-apps/tree/master/owncloud List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: local Are you using encryption: no |
@MorrisJobke is your PR #17489 related to this issue ? |
It seems so, but anyway |
@nazar-pc Can you test my PR and check if it fixes the failures. The sharing code is awaiting a overhaul nevertheless, but this should be a short-term solution that is also backportable. Thanks :) |
@MorrisJobke, it works, kind of, because it produces weird pre-filled date, namely |
Yes. Weird stuff, but this is how the sharing code nowadays want to have the date 🙈 🙉 🙊 cc @schiesbn |
It is because it is stored in the database as a DATETIME |
Issue is back in 8.1.3, 8.1.1 worked fine |
not sure what happened... |
With the new sharing code this should be fixed |
@PVince81 @cmonteroluque moving to 8.2.3 since this bug lives in the old sharing code. |
#17867 (comment) @rperezb @SergioBertolinSG @davitol can you please test with 9.0? @rullzer ok with the move otherwise |
Tested in 9.0 and I could not reproduce it. |
@davitol what about 8.2.2 and 8.1.5 ? It was reported to be broken again in 8.1.3 while 8.1.1 worked: #17867 (comment) |
I can reproduce the error with version 8.1.2 and 8.1.3 with fresh installation With v 8.1.5 and v 8.2.2 I can not reproduce it with fresh installation |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
ownCloud 8.1 stable release.
Configured to require expiration to be set, defaults to 7 days.
Issue results in the same error as #17069 (where was initially reported in comments starting from #17069 (comment)), but seems to have different origin.
How it happens:
As result infinite spinner, 500 error and log:
However, re-sharing to other users and groups works fine.
It doesn't happen with fresh installation, still don't know how to make it reproducible yet.
For whatever reason
$value
has string2015-07-28 00:00:00
in it instead of\DateTime
instance.Here is backtrace from error place:
2015-07-28
is anyway a weird date, which is less than 4 days from todays2015-07-24
and I have required expiration time set to 7 days be default.I found that expiration date format becomes incorrect here: https://github.com/owncloud/core/blob/master/lib/private/share/share.php#L2162
While
$expirationDate
is a correct\DateTime
instance,$checkReshare['expiration']
is string with weird2015-07-28 00:00:00
value.The text was updated successfully, but these errors were encountered: