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 — Inconsistent behavior between LocalStorageHelper and real google storage · Issue #4152 · googleapis/google-cloud-java

Inconsistent behavior between LocalStorageHelper and real google storage #4152

New issue
Copy link
New issue
Copy link
Closed
Closed
Inconsistent behavior between LocalStorageHelper and real google storage#4152
Copy link
Assignees
JesseLovelace
Labels
api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@Qi77Qi
Qi77Qi
opened on Nov 30, 2018
Issue body actions

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

Please include as much information as possible:

Environment details

  • OS: Mac
  • Java version: 8
  • google-cloud-java version(s):
    val googleStorageNew: ModuleID = "com.google.cloud" % "google-cloud-storage" % "1.53.0"
    val googleStorageLocal: ModuleID = "com.google.cloud" % "google-cloud-nio" % "0.71.0-alpha" % "test"

Steps to reproduce

Code is in scala

val page = db.list(bucketName.value, BlobListOption.prefix(objectNamePrefix), BlobListOption.pageSize(1), BlobListOption.currentDirectory())

if db is LocalStorageHelper, page.iterateAll() only gives me one page of object; if db is com.google.cloud.storage.Storage, then page.iterateAll will indeed give me multiple pages as documented.

Stacktrace

Any relevant stacktrace here.

Code snippet

Any relevant code snippet to help reproduce the issue.

External references such as API reference guides used

  • ?

Any additional information below

Following these steps will guarantee the quickest resolution possible.

Thanks!

Activity

  1. JustinBeckwith
    added
    triage meI really want to be triaged.
    on Dec 1, 2018
  2. chingor13
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    api: storageIssues related to the Cloud Storage API.
    on Dec 4, 2018
  3. JustinBeckwith
    removed
    triage meI really want to be triaged.
    on Dec 4, 2018
  4. andrey-qlogic commented on Dec 11, 2018

    @andrey-qlogic
    andrey-qlogic
    on Dec 11, 2018
    More actions

    @Qi77Qi Would you please add a code snippet with LocalStorageHelper class.

  5. Qi77Qi commented on Dec 13, 2018

    @Qi77Qi
    Qi77Qi
    on Dec 13, 2018
    Author
    More actions

    Hi @andrewsg , I have a unit test looks like this

      it should "retrieve multiple pages" in ioAssertion {
        val bucketName = genGcsBucketName.sample.get
        val prefix = Gen.uuid.sample.get.toString
        val blobNameWithPrefix = Gen.listOfN(4, genGcsBlobName).sample.get.map(x => GcsBlobName(s"$prefix${x.value}"))
        val objectBody = genGcsObjectBody.sample.get
        for {
          _ <- blobNameWithPrefix.parTraverse(obj => localStorage.storeObject(bucketName, obj, objectBody, objectType))
          allObjectsWithPrefix <- localStorage.unsafeListObjectsWithPrefix(bucketName, prefix, 1)
        } yield {
          allObjectsWithPrefix.map(_.value) should contain theSameElementsAs (blobNameWithPrefix.map(_.value))
        }
      }
    

    There might be too much scala details, but I hope conceptually this makes sense. here is link to github repo if it helps

  6. JesseLovelace
    closed this as completedin #4303on Jan 9, 2019
  7. Qi77Qi commented on Jan 12, 2019

    @Qi77Qi
    Qi77Qi
    on Jan 12, 2019
    Author
    More actions

    Hi @andrey-qlogic , thanks for fixing this. Do you know when the fix will be in a release?

  8. JustinBeckwith
    assigned
    JesseLovelace
    on Feb 1, 2021
  9. chingor13
    added a commit that references this issue on Mar 24, 2026

    chore(main): release 6.102.1-SNAPSHOT (#4152)

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

Metadata

Metadata

Assignees

  • @JesseLovelace
    JesseLovelace

Labels

api: storageIssues related to the Cloud Storage API.priority: p2Moderately-important priority. Fix may not be included in next release.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

    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.