Coder Social home page Coder Social logo

onedrive: Option to automatically rename folders instead of throwing 'invalidRequest: Name is reserved for list forms folder' error about rclone HOT 4 OPEN

chscott avatar chscott commented on June 27, 2024
onedrive: Option to automatically rename folders instead of throwing 'invalidRequest: Name is reserved for list forms folder' error

from rclone.

Comments (4)

ncw avatar ncw commented on June 27, 2024

Heads up @rclone/support - the "Support Contract" label was applied to this issue.

from rclone.

ncw avatar ncw commented on June 27, 2024

This came up on the forum

A bit more research from a onedrive API bug report indicates you should be able to create folders called Forms just not in the root.

So creating a folder called Forms fails in the root

$ rclone -vv --retries 1 mkdir onedriveb:Forms
2024/06/14 11:27:01 DEBUG : rclone: Version "v1.67.0-DEV" starting with parameters ["rclone" "-vv" "--retries" "1" "mkdir" "onedriveb:Forms"]
2024/06/14 11:27:01 DEBUG : Creating backend with remote "onedriveb:Forms"
2024/06/14 11:27:01 DEBUG : Using config file from "/home/ncw/.rclone.conf"
2024/06/14 11:27:02 DEBUG : OneDrive root 'Forms': Making directory
2024/06/14 11:27:03 ERROR : Attempt 1/1 failed with 1 errors and: failed to make directory: invalidRequest: Name is reserved for list forms folder.
2024/06/14 11:27:03 DEBUG : 6 go routines active
2024/06/14 11:27:03 Failed to mkdir: failed to make directory: invalidRequest: Name is reserved for list forms folder.

But succeeds in a sub directory

$ rclone -vv --retries 1 mkdir onedriveb:subdir/Forms
2024/06/14 11:27:13 DEBUG : rclone: Version "v1.67.0-DEV" starting with parameters ["rclone" "-vv" "--retries" "1" "mkdir" "onedriveb:subdir/Forms"]
2024/06/14 11:27:13 DEBUG : Creating backend with remote "onedriveb:subdir/Forms"
2024/06/14 11:27:13 DEBUG : Using config file from "/home/ncw/.rclone.conf"
2024/06/14 11:27:14 DEBUG : OneDrive root 'subdir/Forms': Making directory
2024/06/14 11:27:15 DEBUG : 6 go routines active

Does that help? Is it possible to not put the Forms directory in the root?

It would be possible for rclone to map the Forms directory to (say) Forms_ in the root. This means it would appear as Forms but actually be stored as Forms_ on sharepoint. This is similar to the way the file encoding works

from rclone.

chscott avatar chscott commented on June 27, 2024

I don't think that will help in our use case. We don't know what we're going to find in the source ahead of time and would need to coordinate with end users to ask them if we can selectively target such folders and map them to a different location in the target, at which point we'd probably just ask them to rename the folder in the source to avoid the problem. The option to map Forms to Forms_ should work for our case.

from rclone.

DipanshuHandoo avatar DipanshuHandoo commented on June 27, 2024

Can this not be fixed permanently? It is not possible every time to do this mapping.

from rclone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.