Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Expanded. Click to collapseCollapsed. Click to showWiki
        • Hierarchy leaf2nd Level Support
You are here:
  • Forums
  • General discussion

Content

Nextcloud File links lost after moving folder

Added by Julia Braun 5 months ago

Hello,

we have Openproject run with Nextcloud integration and file links between work packages and nextcloud files.

We moved a folder on Nextcloud to a new directory, and now all links are lost.

Is there a way to restore the file links? I think that they are linked via an id, an not via the filepath. Moving back the folder does not restore the links, so  I think the ids are assigned newly.

Any idea how to fix this? 

Thank you a lot,

kind regards

Julia


Replies (8)

RE: Nextcloud File links lost after moving folder - Added by Adam Szabo 5 months ago

Hi, this seems to be a BUG, could you please report it at the following link?

https://community.openproject.org/projects/openproject/work_packages/create_new?type=1

RE: Nextcloud File links lost after moving folder - Added by Wieland Lindenthal 5 months ago

Hi Julia Braun,

I am Wieland and I am leading the OpenProject Nextcloud integration development team.

What you have described is really bad and should not happen. Could you please share with us what exactly happened? Hopefully we can then tell if it is expected behavior or a bug. 

Do you remember how you moved the folder?

As far as I know there is only one situation when same files or folder get new IDs in Nextcloud: When using the Nextcloud desktop integration or WebDAV you move a file or folder out of the Nextcloud scope to a different, non-Nextcloud folder on you local hard drive. That basically tells Nextcloud that you intend to remove those files from Nextcloud. And it will delete all IDs. If you then move everything back into the scope of Nextcloud then those files look new to Nextcloud and Nextcloud will create new IDs for the same files. If you had links from OpenProject work packages to the now moved files, then these links would now point to non existing IDs. Could it be that this is what has happened? Then I would not consider it a bug. This is simply how Nextcloud works.

In contrast, if you move the folder within(!) the Nextcloud scope, so from one folder within Nextcloud to another folder within the same Nextcloud then all IDs should be preserved and all links should continue working. If that is what happened then I would consider it a very important bug. 

Thank you!

Wieland

RE: Nextcloud File links lost after moving folder - Added by Julia Braun 5 months ago

Hello @Adam Szabo and @Wieland Lindenthal. Thank you for your reply. 
I think I know what may be the problem. I did not "move" the folder but I did the following:

I copied the folder to the new location. I deleted the old folder in the old location. 
In the past we had some large folders disappearing when they were moved instead of copy+delete, so we adopted this behaviour. 

So probably the old folder that I deleted contained the relevant ids and the new folder got new ids assigned ?

Regards,

Julia

RE: Nextcloud File links lost after moving folder - Added by Julia Braun 5 months ago

Fix: 
I restored the old deleted folder and the links are back.

Then I moved (not copied) the folder to its new location and everything is working fine. 

If the folder should be copied nevertheless, the solution would probably be (not tested): make a local copy, move (!) the original, delete the local copy. 

Thanks for your help!

RE: Nextcloud File links lost after moving folder - Added by Adam Szabo 5 months ago

Thank you Julia

I agree move (!) folder is a different workflow than copy folder

if you are concerned about data loss then a backup makes sense

just as a side information for me, as i am interested in that too, in which Nextcloud Version and which OS Version did you find moving folder to disappear? Also the underlying storage type and filesystem would be important to know here... If you cannot answer this it is okay for me too :)

RE: Nextcloud File links lost after moving folder - Added by Wieland Lindenthal 5 months ago

Hey Julia Braun, thank you for the clarifications. Then it all makes sense. I am glad it is not a bug.

Have a great weekend!

Wieland

RE: Nextcloud File links lost after moving folder - Added by Julia Braun 5 months ago

@Adam Szabo
Unfortunately we could never reconstruct what had happened so I cannot give you a clear recipe for how to make folders disappear :P
It was probably one of the Nextcloud 24 releases, Debian 11.5

I don´t know what you mean with "Storage type", if it is the storage backend as mentioned here https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/external_storage_configuration_gui.html then it would be "local".

 and filesystem ext4

Thanks @Wieland !

RE: Nextcloud File links lost after moving folder - Added by Adam Szabo 5 months ago

Hi Julia,

the storage and filesystem that is used on your Nextcloud (has nothing to do with OpenProject) is interesting but if you do not know it is all right

i think you found something on the Nextcloud server that is called local and ext4, i was looking for those expressions, thank you

Wish you a good week. Adam

  • (1 - 8/8)
Loading...