Skip to content

[Bug]: Move or copy files and folders fails #42469

Closed
nextcloud-libraries/nextcloud-dialogs
#1207

Description

@gibelium

⚠️ This issue respects the following points: ⚠️

Bug description

The "move or copy" function in the WebInterface fails for files and folders as well.

  • No log entry is written
  • Error message "'Move or copy' action failed" is show in the info area at the upper right of the weg interface
  • Moving files/folders on a local client machine and syncing the changes via Nextcloud Desktop App works without issues

Steps to reproduce

  1. Create a file or folder in your privat home folder
  2. Create a folder "Test" in your home folder
  3. Open 3-dots menu for the file or folder created in step 1
  4. Select "move or copy" option and select the folder created in step 2
  5. Select "Copy to TEST" or "Move to TEST" (both will fail)
  6. See the error message "'Move or copy' action failed"
  7. Check the log reader and see that no error has been written ti the log file

Expected behavior

  1. "Copy or move" function actually moves or copies files and folders without error.
  2. If an error occurs a meaningful log entry is created

Installation method

Community VM appliance

Nextcloud Server version

28

Operating system

None

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • 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

Activity

  1. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Dec 23, 2023
  2. joshtrichards commented on Dec 24, 2023

    @joshtrichards
    Member

    This sounds like #41414, but that shouldn't exist in the general release due to #42057. Are you certain you're not running a Release Candidate build? [Providing the output of occ config:list system and running an integrity check would probably be the most reliable ways to try confirming that.]

  3. melianmiko commented on Dec 27, 2023

    @melianmiko

    Ran into same problem, Nextcloud 28.0.1 from docker image.

    occ config:list system and running an integrity check

    output.txt

    Upd. Full manual update via ZIP-file from website didn't resolves this bug.

  4. Tankudoraiba commented on Dec 31, 2023

    @Tankudoraiba

    The same story. On Nextcloud Windows Client, everything works. But it is apparently due to different approach to moving files.
    Web UI can't do this job and fails when you try to move files. Earlier this worked.

    image

  5. flysaber commented on Dec 31, 2023

    @flysaber

    I also encountered the same error, which occurred on the server side (I am not using the desktop version). I used the setup-nextcloud.php file for online installation and installed the latest version of nextcloud on Ubuntu 22.04, using Apache, PHP 8.1, and MySQL 8 environments.

  6. joshtrichards commented on Dec 31, 2023

    @joshtrichards
    Member

    I'm unable to reproduce this.

    1. Create a file or folder in your privat home folder
    2. Create a folder "Test" in your home folder

    Already have a test file (a simple document).
    I'm creating a folder /TestMove
    I'm selecting Move or Copy from the 3-dot menu next to my test file.
    I'm selecting /TestMove as the target.

    • What are your underlying filesystems/mount types?
    • Are either the source or destination shared or External Storage mounts in NC?
    • Is encryption and/or end_to_end_encryption in-use?
  7. OsirisDBA commented on Dec 31, 2023

    @OsirisDBA
  8. alboon commented on Jan 1, 2024

    @alboon

    Moving in the phone app works, website ui doesn't work, having the same issue, I have an unraid docker, just updated to "version": "28.0.1.1" using nginx as a proxy but never had issues before moving stuff in the web UI.

    {
        "app": "files",
        "uid": "user",
        "level": 2,
        "action": {
            "_action": {
                "id": "move-copy",
                "order": 15
            }
        },
        "e": {}
    }
    

    [ERROR] files: Error while executing action core-common.js?v=0ed4b617-0:2

    https://<URL>/dist/files-init.js?v=0ed4b617-0
    Error: Cancelled move or copy operation at https://<URL>/dist/files-init.js?v=0ed4b617-0:2:7556
    
  9. melianmiko commented on Jan 1, 2024

    @melianmiko

    Tried this browsers, it don't work:

    • Chromium (plain, ArchLinux build, 120.0.6099.129-1)
    • Firefox (ArchLinux build, 121.0-1)
    • Vivaldi (6.5.3206.48)
    • Microsoft Edge (version unknown, built-in to Win10)

    BUT, sometimes after 2-10 page refreshes it starts working. Found that in Vivaldi & Edge. idk why, disabling cache or clearing cookies don't matter.

    All browsers tested without any third-party extensions, of course. Wipe of cache/cookies don't help.

  10. 11 remaining items

  11. Vlad-Star commented on Jan 21, 2024

    @Vlad-Star

    I can confirm a problem with "Copy or Move" button in 28.0.1 attempted through the UI (getting "Move or copy" action failed message). Drag-n-drop move works just fine. No related errors in a log, even with 'debug' => true in the config.php

  12. TheDBP commented on Jan 23, 2024

    @TheDBP

    Same problem here, exactly as described by others.

  13. susnux commented on Jan 23, 2024

    @susnux
    Contributor

    Please do not spam the tickets if you do not have any additional information but just leave a 👍 reaction on the initial post.

    But please as soon as 28.0.2 is published, test and report back :)

  14. alboon commented on Jan 23, 2024

    @alboon

    Still broken in 28.0.2rc3

  15. khlschrnk commented on Jan 24, 2024

    @khlschrnk

    I ran into the same issues that moving files is not possible without further info. I found out that it happens if the destination folder starts (or maybe contains) with '#' (number sign). Happens with Firefox and Chrome.

    After renaming the destination folder to remove the number sign moving files works.

    Edit: I am using 28.0.1

  16. self-assigned this
    on Jan 25, 2024
  17. added and removed on Jan 25, 2024
  18. maaikez commented on Sep 25, 2024

    @maaikez

    I have the same issue. For one (of the two) user.

    So:

    • I make a new directory with files
    • I share the whole directory with another user
    • The other user tries to move the directory to another directory (so it's not in root anymore)
    • This fails.

    But if he makes a new directory with files and I do exactly the same, it passes.
    Drag and drop does also not work for him.

    Version:
    Nextcloud Hub 8 (29.0.5)

  19. StudioNirin commented on Oct 13, 2024

    @StudioNirin

    So 10 months later, and this is still an issue?
    Currently can't move any files. I can upload them and I can copy them inside the folders to make new copies... but I can't move files, and I can't delete files. They appear as moved/deleted briefly but when I refresh the page or window (depending on if I'm doing it via the browser gui or the windows app) they just reappear back where they were.

    Nothing in logs at all.

  20. joshtrichards commented on Oct 13, 2024

    @joshtrichards
    Member

    @maaikez & @nirurin: As you can see, this particular Issue has been addressed and closed (it was fixed within weeks of being reported). If you're experiencing anything remotely similar, it likely has a different underlying cause. Please open dedicated Issue(s) so that we have all the pertinent details about your situation in order to look into it.

  21. locked as resolved and limited conversation to collaborators on Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions