[GH-ISSUE #1943] SelfLink field not present in response when creating a bucket #229

Closed
opened 2026-03-03 12:09:18 +03:00 by kerem · 0 comments
Owner

Originally created by @mdedetrich on GitHub (Mar 30, 2025).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1943

In https://github.com/fsouza/fake-gcs-server/pull/1524 selfLink was added to various responses to improve compatibility with clients however there are still issues with specific requests, namely creating a bucket.

When I try to use pekko streams google cloud storage client to create a bucket using the latest fake-gcs-server I receive the following response

{
    "kind": "storage#bucket",
    "id": "test",
    "defaultEventBasedHold": false,
    "name": "test",
    "versioning": {
        "enabled": false
    },
    "timeCreated": "2025-03-30T11:41:02.376014Z",
    "updated": "2025-03-30T11:41:02.376014Z",
    "location": "europe-west1",
    "storageClass": "STANDARD",
    "projectNumber": "0",
    "metageneration": "1",
    "etag": "RVRhZw==",
    "locationType": "region"
}

which as you can see is missing the selfLink field. The fields which the pekko-streams client needs can be seen here github.com/apache/pekko-connectors@c207c292ee/google-cloud-storage/src/main/scala/org/apache/pekko/stream/connectors/googlecloud/storage/Bucket.scala (L16-L32)

Originally created by @mdedetrich on GitHub (Mar 30, 2025). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/1943 In https://github.com/fsouza/fake-gcs-server/pull/1524 `selfLink` was added to various responses to improve compatibility with clients however there are still issues with specific requests, namely creating a bucket. When I try to use pekko streams google cloud storage client to create a bucket using the latest fake-gcs-server I receive the following response ```json { "kind": "storage#bucket", "id": "test", "defaultEventBasedHold": false, "name": "test", "versioning": { "enabled": false }, "timeCreated": "2025-03-30T11:41:02.376014Z", "updated": "2025-03-30T11:41:02.376014Z", "location": "europe-west1", "storageClass": "STANDARD", "projectNumber": "0", "metageneration": "1", "etag": "RVRhZw==", "locationType": "region" } ``` which as you can see is missing the `selfLink` field. The fields which the pekko-streams client needs can be seen here https://github.com/apache/pekko-connectors/blob/c207c292ee9fecec2444637c84d63b9127280422/google-cloud-storage/src/main/scala/org/apache/pekko/stream/connectors/googlecloud/storage/Bucket.scala#L16-L32
kerem closed this issue 2026-03-03 12:09:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#229
No description provided.