Giter Site home page Giter Site logo

Comments (3)

drakkan avatar drakkan commented on June 26, 2024

Updated release notes, thanks for noticing. See #1349

I think it should work if you return an existing virtual folder by name.

from sftpgo.

Mathieu-COSYNS avatar Mathieu-COSYNS commented on June 26, 2024

Hi, thank you for the quick reply. I didn't knew about #1349. I was hopping to still be able to create virtual folders on the fly when returning user configuration. It's a bit annoying but I will adapt my approach for my external auth hook.

I think it should work if you return an existing virtual folder by name.

As I was explaining above, it does work for the Web UI but not for SSH (and FTP, WebDAV) for those you need the virtual folder id. This behavior should be consistent.

Error with error creating root directory "/virtual_path" for user "test": mkdir : no such file or directory when listing the virtual folder via SSH, if a virtual folder with the same name exist

One approach could be to change the user/group create/update API virtual_folders to take only virtual folders virtual_path, quota_size, quota_files, folder_id instead of full virtual folders configuration since setting other fields will/should not have any impact.

Should we continue this in another issue or reopen this one ?

from sftpgo.

drakkan avatar drakkan commented on June 26, 2024

I did a quick test to confirm, returning an existing folder name is enough, the id is not required.

The OpenAPI document should be updated in several places to clarify the fields required for adding/updating and the fields returned in GETs.
If you want to help us and feel comfortable with our CLA feel free to send a PR. The PR should be complete and working to be accepted, we have currently no time for reviewing and iterating or pushing back on PRs (this is often more work than doing the change ourself). Thanks for understanding and for using SFTPGo

from sftpgo.

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.