GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Requester Pays on NIO · Issue #3221 · googleapis/google-cloud-java

Requester Pays on NIO #3221

New issue
Copy link
New issue
Copy link
Closed
Closed
Requester Pays on NIO#3221
Copy link
Assignees
yihanzhen
Labels
api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@Horneth
Horneth
opened on May 1, 2018
Issue body actions

There is an option on BlobSourceOption and BlobWriteOption to specify the billing project to use when accessing a requester pays bucket, but there doesn't seem to be a way to wire that through NIO.
Am I missing it ? And if not is this something that could be considered ?

Activity

  1. Horneth commented on May 15, 2018

    @Horneth
    Horneth
    on May 15, 2018
    Author
    More actions

    A more specific suggestion would be to add the relevant options for userProject: BlobSourceOption, BlobGetOption, BlobWriteOption
    to all calls to the Storage object such that the billing project is always explicitly set. Would there be any objection to that ? I'm happy to make a PR.
    I'm thinking here, and where necessary in CloudStorageFileSystemProvider.

    This is problematic for us because it prevents using of any requester pays enabled buckets through NIO.

    @jean-philippe-martin any thoughts ? :)

  2. jean-philippe-martin commented on May 24, 2018

    @jean-philippe-martin
    jean-philippe-martin
    on May 24, 2018
    More actions

    That's a good idea, I would welcome a PR yes. Make sure to mention me in it so I can find it easily!

  3. droazen commented on Jun 5, 2018

    @droazen
    droazen
    on Jun 5, 2018
    More actions

    @Horneth Do you have a PR for this feature ready to go, or could you easily make one?

  4. JustinBeckwith
    added
    triage meI really want to be triaged.
    🚨 criticalP0 critical issue. Requires immediate fix
    on Jun 8, 2018
  5. yihanzhen
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: storageIssues related to the Cloud Storage API.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    and removed
    triage meI really want to be triaged.
    on Jun 11, 2018
  6. JustinBeckwith
    removed
    🚨 criticalP0 critical issue. Requires immediate fix
    on Jun 11, 2018
  7. jean-philippe-martin commented on Jul 9, 2018

    @jean-philippe-martin
    jean-philippe-martin
    on Jul 9, 2018
    More actions

    Code is now in, the feature should be available. Let me know how it goes, and mention me in a new bug if you run into any difficulty!

  8. jean-philippe-martin commented on Jul 10, 2018

    @jean-philippe-martin
    jean-philippe-martin
    on Jul 10, 2018
    More actions

    @hzyi-google, would you mind please closing this issue? I am not able to do it myself.

  9. yihanzhen commented on Jul 10, 2018

    @yihanzhen
    yihanzhen
    on Jul 10, 2018
    Contributor
    More actions

    Sure. Thanks for contributing!

  10. yihanzhen
    closed this as completedon Jul 10, 2018
  11. jean-philippe-martin commented on Jul 10, 2018

    @jean-philippe-martin
    jean-philippe-martin
    on Jul 10, 2018
    More actions

    Thank you, @hzyi-google !

  12. yihanzhen
    reopened this on Jul 11, 2018
  13. yihanzhen commented on Jul 11, 2018

    @yihanzhen
    yihanzhen
    on Jul 11, 2018
    Contributor
    More actions

    @jean-philippe-martin There are integration tests failing. Can you double check?

  14. jean-philippe-martin commented on Jul 11, 2018

    @jean-philippe-martin
    jean-philippe-martin
    on Jul 11, 2018
    More actions

    Yes I can look into it @hzyi-google . Do you have something a bit more specific? Do you mean the ITStorageTest test suite?

  15. yihanzhen commented on Jul 11, 2018

    @yihanzhen
    yihanzhen
    on Jul 11, 2018
    Contributor
    More actions

    From my side, testCantCreateWithoutUserProject, testCantReadWithoutUserProject, testCantCopyWithoutUserProject and testFileExistsRequesterPaysNoUserProject are failing (the last one is an error).

  16. jean-philippe-martin commented on Jul 11, 2018

    @jean-philippe-martin
    jean-philippe-martin
    on Jul 11, 2018
    More actions

    Odd, I synced to head and those all work for me. These tests require GOOGLE_APPLICATION_CREDENTIALS to be set, but if that's it then I'd expect the failure to happen early, in the beforeClass method.

    I wonder if it's something special about the test machine configuration, or the chosen project.
    Requester-pays buckets require either the billing project to be set, or the project to have the resourcemanager.projects.createBillingAssignment permission. Could it be that this permission is enabled? Then the accesses would pass, causing the test to fail.

    Can you share the error for the last test (either here or via email if you prefer)? Perhaps that'll give me a hint about how to reproduce the issue.

  17. yihanzhen commented on Jul 11, 2018

    @yihanzhen
    yihanzhen
    on Jul 11, 2018
    Contributor
    More actions

    @jean-philippe-martin Yes you are right. Our testing project do have the permission to the method in resourcemanager api. And the test with errors is for the same reason. I'll create a separate github issue for this and ignore the tests for now. Thanks for the clarification :)

  18. yihanzhen
    closed this as completedon Jul 11, 2018
  19. jean-philippe-martin commented on Jul 11, 2018

    @jean-philippe-martin
    jean-philippe-martin
    on Jul 11, 2018
    More actions

    @hzyi-google great, I'm glad the mystery is solved!

    Hopefully there is some way you can use a project without these permissions, so you can restore the tests on your side. Or split the integration tests into two parts, one with that permission and one without.

  20. JustinBeckwith
    assigned
    yihanzhen
    on Feb 1, 2021
  21. chingor13
    added 4 commits that reference this issue on Mar 24, 2026

    deps: update google auth library dependencies to v1.27.0 (#3221)

    ea8c6b9

    chore(main): release 2.46.0 (#3187)

    acc44b7

    feat(spanner): add samples for instance partitions (#3221)

    6a74f27

    chore: merge train for nonblocking-appendable/** branches (#3231)

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

Metadata

Metadata

Assignees

  • @yihanzhen
    yihanzhen

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.