Skip to content

Upload into reshared folder fails #18034

Closed

Description

@PVince81

Steps

  1. Create three users "user1", "user2", "user3"
  2. Login as "user1"
  3. Create a folder "sh"
  4. Share "sh" with "user2"
  5. Login as "user2"
  6. Reshare "sh" with "user3"
  7. Enter "sh" (still as "user2")
  8. Upload a picture "test.jpg"

Expected result

Upload succeeds

Actual result

Internal server error appears after a delay. (even with files_locking disabled)
After refreshing the page, the files are there and seem to be downloadable.
If I unshare from "user3", uploading works without delay.

Versions

ownCloud 8.1.1RC1

Log

Nothing.

@schiesbn please have a look

Activity

  1. added this to the milestone on Aug 3, 2015
  2. PVince81 commented on Aug 3, 2015

    @PVince81
    ContributorAuthor

    Tried with 8.1.0 and it also happens there.

  3. schiessle commented on Aug 3, 2015

    @schiessle
    Contributor

    Not related to encryption, this also happens with encryption disabled.

    This are the error messages:

    [Mon Aug 03 16:45:40.645812 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP Fatal error:  Maximum function nesting level of '100' reached, aborting! in /home/src/owncloud/server/master/lib/private/db/connection.php on line 45, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.645885 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP Stack trace:, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.645976 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP   1. {main}() /home/src/owncloud/server/master/index.php:0, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.646097 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP   2. OC::handleRequest() /home/src/owncloud/server/master/index.php:40, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.646258 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP   3. OC\\Route\\Router->match() /home/src/owncloud/server/master/lib/base.php:873, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.646341 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP   4. call_user_func:{/home/src/owncloud/server/master/lib/private/route/router.php:274}() /home/src/owncloud/server/master/lib/private/route/router.php:274, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.646447 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP   5. __lambda_func() /home/src/owncloud/server/master/lib/private/route/router.php:274, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.646546 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP   6. require_once() /home/src/owncloud/server/master/lib/private/route/route.php(154) : runtime-created function:1, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.646687 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP   7. OC\\Files\\Filesystem::fromTmpFile() /home/src/owncloud/server/master/apps/files/ajax/upload.php:194, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.646796 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP   8. OC\\Files\\View->fromTmpFile() /home/src/owncloud/server/master/lib/private/files/filesystem.php:734, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.646964 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP   9. OC\\Files\\View->file_put_contents() /home/src/owncloud/server/master/lib/private/files/view.php:899, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.647072 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  10. OC\\Files\\Cache\\Updater->update() /home/src/owncloud/server/master/lib/private/files/view.php:563, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.647221 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  11. OC\\Files\\Cache\\ChangePropagator->propagateChanges() /home/src/owncloud/server/master/lib/private/files/cache/updater.php:117, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.647343 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  12. OC\\Hooks\\BasicEmitter->emit() /home/src/owncloud/server/master/lib/private/files/cache/changepropagator.php:80, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.647427 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  13. call_user_func_array:{/home/src/owncloud/server/master/lib/private/hooks/emittertrait.php:98}() /home/src/owncloud/server/master/lib/private/hooks/emittertrait.php:98, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.647570 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  14. OCA\\Files_Sharing\\Propagation\\RecipientPropagator->OCA\\Files_Sharing\\Propagation\\{closure}() /home/src/owncloud/server/master/lib/private/hooks/emittertrait.php:98, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.647716 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  15. OCA\\Files_Sharing\\Propagation\\RecipientPropagator->propagateById() /home/src/owncloud/server/master/apps/files_sharing/lib/propagation/recipientpropagator.php:125, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.647830 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  16. OCA\\Files_Sharing\\Propagation\\ChangeWatcher->writeHook() /home/src/owncloud/server/master/apps/files_sharing/lib/propagation/recipientpropagator.php:141, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.647939 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  17. OCA\\Files_Sharing\\Propagation\\RecipientPropagator->propagateById() /home/src/owncloud/server/master/apps/files_sharing/lib/propagation/changewatcher.php:67, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.648048 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  18. OCA\\Files_Sharing\\Propagation\\ChangeWatcher->writeHook() /home/src/owncloud/server/master/apps/files_sharing/lib/propagation/recipientpropagator.php:141, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.648157 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  19. OCA\\Files_Sharing\\Propagation\\RecipientPropagator->propagateById() /home/src/owncloud/server/master/apps/files_sharing/lib/propagation/changewatcher.php:67, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.648294 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  20. OCA\\Files_Sharing\\Propagation\\ChangeWatcher->writeHook() /home/src/owncloud/server/master/apps/files_sharing/lib/propagation/recipientpropagator.php:141, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.648405 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  21. OCA\\Files_Sharing\\Propagation\\RecipientPropagator->propagateById() /home/src/owncloud/server/master/apps/files_sharing/lib/propagation/changewatcher.php:67, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.648513 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  22. OCA\\Files_Sharing\\Propagation\\ChangeWatcher->writeHook() /home/src/owncloud/server/master/apps/files_sharing/lib/propagation/recipientpropagator.php:141, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.648620 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  23. OCA\\Files_Sharing\\Propagation\\RecipientPropagator->propagateById() /home/src/owncloud/server/master/apps/files_sharing/lib/propagation/changewatcher.php:67, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    [Mon Aug 03 16:45:40.648727 2015] [:error] [pid 16642] [client 127.0.0.1:35424] PHP  24. OCA\\Files_Sharing\\Propagation\\ChangeWatcher->writeHook() /home/src/owncloud/server/master/apps/files_sharing/lib/propagation/recipientpropagator.php:141, referer: http://localhost/master/index.php/apps/files/?dir=%2Ffolder
    ...
    

    @icewind1991 Looks like some issues with the etag propagation you developed for 8.1, can you have a look? Thanks!

  4. PVince81 commented on Aug 3, 2015

    @PVince81
    ContributorAuthor

    Bisect result: regression introduced by #17082

  5. changed the title [-]Upload into reshared folder fails with encryption[/-] [+]Upload into reshared folder fails[/+] on Aug 3, 2015
  6. PVince81 commented on Aug 3, 2015

    @PVince81
    ContributorAuthor

    @SergioBertolinSG can you check if this is in the test plan ? Thanks.

  7. icewind1991 commented on Aug 3, 2015

    @icewind1991
    Contributor

    Managed to reproduce it in a unit test

  8. locked as resolved and limited conversation to collaborators on Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions