Git Product home page Git Product logo

Comments (9)

gcheng avatar gcheng commented on May 14, 2024

I think this should be fixed with unit test(s). root container is an important scenario to support.

from azure-sdk-for-java.

joostdenijs avatar joostdenijs commented on May 14, 2024

null value should go to root (same as empty string)

from azure-sdk-for-java.

gcheng avatar gcheng commented on May 14, 2024

It depends on the method, for create container, it doesn't make sense to send the create container request because the root container is already there.

from azure-sdk-for-java.

joostdenijs avatar joostdenijs commented on May 14, 2024

I think that null should be the root container everywhere, and in the case of create container, the request to create the root container will fail server side.

from azure-sdk-for-java.

gcheng avatar gcheng commented on May 14, 2024

also for delete container, if we do not curb the request on client side, an incorrect delete container may delete the whole account in future.

from azure-sdk-for-java.

gcheng avatar gcheng commented on May 14, 2024

fix ready.

from azure-sdk-for-java.

gcheng avatar gcheng commented on May 14, 2024

actually, no, it is more complicated than it looks like.

http://msdn.microsoft.com/en-us/library/windowsazure/ee395424.aspx

from azure-sdk-for-java.

gcheng avatar gcheng commented on May 14, 2024

To list the blobs in the root container:
GET http://myaccount.blob.core.windows.net/$root?restype=container&comp=list

To delete the root container:
DELETE http://myaccount.blob.core.windows.net/$root?restype=container

Missed from documentation, I guess creating a root container should be

PUT http://myaccount.blob.core.windows.net/$root?restype=container

from azure-sdk-for-java.

gcheng avatar gcheng commented on May 14, 2024

actually, if we always specify the root container as $root, the amount code change seems to be minimum.

from azure-sdk-for-java.

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.