Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(storage): return service properties XML - #144

Merged
hectorvent merged 1 commit into
floci-io:mainfrom
aniketshukla1:fix/storage-service-properties
Jul 31, 2026
Merged

fix(storage): return service properties XML#144
hectorvent merged 1 commit into
floci-io:mainfrom
aniketshukla1:fix/storage-service-properties

Conversation

@aniketshukla1

@aniketshukla1 aniketshukla1 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Return real StorageServiceProperties XML for Blob and Queue storage instead of the XmlBuilder@... object identity string.
  • Route Table storage account-root ?restype=service&comp=properties requests to an Azure-compatible XML response.
  • Add regression tests for Blob, Queue, and Table service-properties responses.

Closes #131
Closes #132

Type of change

  • Bug fix (fix:)
  • New feature (feat:)
  • Breaking change (feat!: or fix!:)
  • Docs / chore

Azure Compatibility

Azure Storage clients expect StorageServiceProperties XML for account-root restype=service&comp=properties requests. Blob and Queue previously returned the builder object's identity string, while Table returned list-table JSON. This change returns the expected XML response shape for all three storage services.

Checklist

  • ./mvnw test passes locally on JDK 25
  • New or updated automated tests added
  • Commit messages follow Conventional Commits

@greptile-apps

greptile-apps Bot commented Jul 28, 2026

Copy link
Copy Markdown

Greptile Summary

Fixes Storage Service Properties responses so clients get real XML instead of an object identity string, and adds the same endpoint for Table storage.

  • Blob and Queue get*ServiceProperties now call XmlBuilder.build() instead of inherited Object.toString().
  • Table service routes account-root restype=service&comp=properties (GET/HEAD) to a new properties XML response aligned with blob/queue.
  • Adds RestAssured tests asserting XML body content and absence of the old XmlBuilder@ failure mode.

Confidence Score: 5/5

Safe to merge; the change correctly returns XmlBuilder XML for service properties and mirrors existing blob/queue behavior for table.

XmlBuilder has no toString override while build() returns the StringBuilder XML; blob/queue fixes and the new table endpoint match established routing and response patterns, with tests locking the contract.

Important Files Changed

Filename Overview
src/main/java/io/floci/az/services/blob/BlobServiceHandler.java Switches service-properties XML terminal call from toString() to build() so the response body is accumulated XML.
src/main/java/io/floci/az/services/queue/QueueServiceHandler.java Same XmlBuilder.build() fix for queue service properties.
src/main/java/io/floci/az/services/table/TableServiceHandler.java Adds account-root service-properties routing and XmlBuilder-based GET response consistent with blob/queue.
src/test/java/io/floci/az/services/BlobServiceTest.java Integration test for blob service properties XML and regression guard against XmlBuilder@.
src/test/java/io/floci/az/services/QueueServiceTest.java Integration test for queue service properties XML and regression guard against XmlBuilder@.
src/test/java/io/floci/az/services/TableServiceTest.java New Quarkus test covering table account service-properties GET returning StorageServiceProperties XML.

Reviews (1): Last reviewed commit: "fix(storage): return service properties ..." | Re-trigger Greptile

@hectorvent hectorvent added bug Something isn't working blob Azure Blob Storage queue Azure Queue Storage table Azure Table Storage labels Jul 30, 2026
@hectorvent
hectorvent merged commit aa3e378 into floci-io:main Jul 31, 2026
9 checks passed
hectorvent added a commit that referenced this pull request Jul 31, 2026
…#144 (#152)

PRs #133 and #144 both added getBlobServicePropertiesReturnsXml and
getQueueServicePropertiesReturnsXml; the merges were textually clean but
left duplicate methods, breaking test compilation on main since aa3e378.
Each pair is now one method carrying both copies' assertions (XML structure
from #144, the StaticWebsite element and XmlBuilder@ toString regression
guard from #133).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blob Azure Blob Storage bug Something isn't working queue Azure Queue Storage table Azure Table Storage

Projects

None yet

2 participants