Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't obtain info on blob with space in name #166

Closed
asm0dey opened this issue Mar 6, 2020 · 4 comments
Closed

Can't obtain info on blob with space in name #166

asm0dey opened this issue Mar 6, 2020 · 4 comments
Assignees
Labels
api: storage Issues related to the googleapis/java-storage API. type: question Request for information or clarification. Not an issue.

Comments

@asm0dey
Copy link

asm0dey commented Mar 6, 2020

Thanks for stopping by to let us know something could be better!

Environment details

  1. Manjaro 19.0.2
  2. Java version: Java 11
  3. datastore version(s): 1.102.3

Steps to reproduce

  1. Create blob with whitespace in it's name: some/another/white space.txt
  2. Obtain info about it with storage.get(bucketName, "some/another/white space.txt")
  3. Obtain length from there: NPE occures

While debugging we can find followin error:

{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "No such object: test-52565030-4e60-11ea-90d4-b3cfcebcc4ca/some/another/white+space.txt",
    "reason" : "notFound"
  } ],
  "message" : "No such object: test-52565030-4e60-11ea-90d4-b3cfcebcc4ca/some/another/white+space.txt"
}

Thanks!

@asm0dey asm0dey changed the title Datastore: Can't obtainfo info on blob with space in name Datastore: Can't obtain info on blob with space in name Mar 6, 2020
@crwilcox crwilcox assigned BenWhitehead and unassigned BenWhitehead Mar 6, 2020
@crwilcox crwilcox transferred this issue from googleapis/java-datastore Mar 6, 2020
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/java-storage API. label Mar 6, 2020
@crwilcox
Copy link

crwilcox commented Mar 6, 2020

Hi @asm0dey I think this is the storage api.

@crwilcox crwilcox added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Mar 6, 2020
@crwilcox crwilcox changed the title Datastore: Can't obtain info on blob with space in name Can't obtain info on blob with space in name Mar 6, 2020
@frankyn
Copy link
Member

frankyn commented Mar 6, 2020

Hello @asm0dey,

Thanks for filing an issue.

Could you bump your version to at least 1.104.0. The issue was resolved starting at this version and was tracked here: #121 (comment)

Please let me know if you have any issues!

Relabeling as a question.

@frankyn frankyn added type: question Request for information or clarification. Not an issue. and removed type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Mar 6, 2020
@asm0dey
Copy link
Author

asm0dey commented Mar 7, 2020

Oh, thank you! Didn't see that version is updated. Bump to 105.0 fixed the problem.
Please, fix documentation on Google Cloud site, I took my version number there. Thank you!

@asm0dey asm0dey closed this as completed Mar 7, 2020
@frankyn
Copy link
Member

frankyn commented Mar 7, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

4 participants