Skip to content
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

Cannot WebDAV upload file into shared folder as recipient with enc enabled #14169

Closed
PVince81 opened this issue Feb 12, 2015 · 7 comments
Closed

Comments

@PVince81
Copy link
Contributor

Steps to reproduce

  1. Enable encryption (note: I haven't tried without it yet)
  2. Log out and log in again as admin ("root")
  3. Create a user "user1"
  4. Login as "user1"
  5. Create folder "folder"
  6. Share "folder" with "root"
  7. With a WebDAV client (cadaver), login as "root"
  8. PUT a file into "folder"

Expected result

Upload works.

Actual result

{"reqId":"JhB52rcUn5cVvkFUgjdg","remoteAddr":"127.0.0.1","app":"PHP","message":"filemtime(): stat failed for \/srv\/www\/htdocs\/owncloud\/data\/user1\/files\/folder\/test.txt at \/srv\/www\/htdocs\/owncloud\/lib\/private\/files\/storage\/local.php#138","level":0,"time":"2015-02-12T17:41:16+00:00","method":"PUT","url":"\/owncloud\/remote.php\/webdav\/folder\/test.txt"}
{"reqId":"JhB52rcUn5cVvkFUgjdg","remoteAddr":"127.0.0.1","app":"PHP","message":"filesize(): stat failed for \/srv\/www\/htdocs\/owncloud\/data\/user1\/files\/folder\/test.txt at \/srv\/www\/htdocs\/owncloud\/lib\/private\/files\/storage\/local.php#121","level":0,"time":"2015-02-12T17:41:16+00:00","method":"PUT","url":"\/owncloud\/remote.php\/webdav\/folder\/test.txt"}
{"reqId":"JhB52rcUn5cVvkFUgjdg","remoteAddr":"127.0.0.1","app":"remote","message":"An exception occurred while executing 'INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `permissions`, `path_hash`, `path`, `parent`, `name`, `storage`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [\"8\", \"8\", false, false, \"54dce5bc58456\", false, 0, \"8b56397656221e042b8dc40fe87f9e5a\", \"files\\\/folder\\\/test.txt\", \"28\", \"test.txt\", \"3\"]:\n\nSQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column 'mtime' at row 1","level":4,"time":"2015-02-12T17:41:16+00:00","method":"PUT","url":"\/owncloud\/remote.php\/webdav\/folder\/test.txt"}

Versions

ownCloud 8.1 pre-alpha git master (8e8acad)

@schiesbn @icewind1991 I suspect it might be related to the "reuse file id" PR.

Going to bisect this now.

Edit: added missing "share" step

@PVince81
Copy link
Contributor Author

Only happens for newly created files (overwriting existing works)

This is the bad commit: 9df18ff, part of #10993

@icewind1991 please have a look. Thanks

@PVince81
Copy link
Contributor Author

Please also add a unit test to protect against such regressions.

@icewind1991
Copy link
Contributor

cant reproduce this...

Also I cant see any way that commit causes such a problem...

@PVince81
Copy link
Contributor Author

This was with mariadb-10.0.14-2.3.x86_64 in case that makes a difference.
Did you follow the exact same steps ?

@PVince81
Copy link
Contributor Author

Still happening on master (7325414)

I'll try with another DB to rule out mariadb.

@PVince81
Copy link
Contributor Author

Ah, it works with sqlite!

@PVince81
Copy link
Contributor Author

Cannot reproduce on master (a672e9d) with the new encryption. Closing.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants