You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Copying a file/folder at the same path should be supported #6546
Note: this brings up the discussion about how to auto-generate a new name. Add (2)(3) ... to the resource name. Call them my folder -copymy folder -copy - copy, or...
cs3org/reva#2510 has plenty of discussion, in that case for when the public uploads a resource where the name already exists in the public upload-only folder. In that case the server needs to handle and resolve the duplicate-name collision.
In the case of this issue, the "web" client can itself generate the new unique name.
In other situations of this type, maybe some client will be responsible to generate the resource name, or maybe there are other situations where the client won't realise/know about the name-collision in advance, and so the server will have to resolve it...
We could:
agree on a unique-name-generating algorithm, and then make sure to implement the agreed algorithm the same way in the server and each client; or
have the server "control" this - clients that need to generate a unique name could send a resource name to the server, and the server can do the work of generating the unique name (e.g. checking to see if there is already file (2)file (3)...) and send back a resourced name, like file (4). Then all clients would end up "implementing" the same scheme. And if someone wants, the server can be made to have a flexible way of choosing the naming scheme in its settings.
Activity
phil-davis commentedon Mar 8, 2022
Note: this brings up the discussion about how to auto-generate a new name. Add
(2)(3)... to the resource name. Call themmy folder -copymy folder -copy - copy, or...cs3org/reva#2510 has plenty of discussion, in that case for when the public uploads a resource where the name already exists in the public upload-only folder. In that case the server needs to handle and resolve the duplicate-name collision.
In the case of this issue, the "web" client can itself generate the new unique name.
In other situations of this type, maybe some client will be responsible to generate the resource name, or maybe there are other situations where the client won't realise/know about the name-collision in advance, and so the server will have to resolve it...
We could:
file (2)file (3)...) and send back a resourced name, likefile (4). Then all clients would end up "implementing" the same scheme. And if someone wants, the server can be made to have a flexible way of choosing the naming scheme in its settings.diocas commentedon Mar 8, 2022
Duplicate of #5761 #3751 ...