Skip to content

the acl add doesn't work #569

Description

@khmereshop

the acl does not work. When I display the myFile, It does not object reference to myFile.acl.add

var myFile = bucket.file(filename);

console.log(myFile);

myFile.acl.update({
  scope: 'allUsers',
  permission: storage.acl.READER_ROLE
}, function(err, aclObject) {

  console.log('**** error ****');

  console.log(err);
  console.log(aclObject);
});

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    api: storageIssues related to the Cloud Storage API.
    on May 9, 2015
  2. ryanseys commented on May 12, 2015

    @ryanseys
    Contributor

    Hey @khmereshop sorry for the delay. I'm sorry but I don't really understand the issue here. Can you take a look at the system tests here where we are testing our acl.add method. That might help you make sense of what acl.add is meant to do. Your sample code given seems to also be using acl.update and not acl.add so if you could clarify why and what your code is supposed to show, that'd be great!

  3. stephenplusplus commented on Jun 4, 2015

    @stephenplusplus
    Contributor

    @khmereshop are you still having an issue?

  4. stephenplusplus commented on Jun 17, 2015

    @stephenplusplus
    Contributor

    Please re-open if you are still experiencing this :)

  5. 13 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions