Skip to content

Tagging does not work on direct BZZ upload #5096

Open
@nugaon

Description

@nugaon

⚠️ Support requests in an issue-format will be closed immediately. For support, go to Swarm's Discord.

Context

Bee 2.5

Summary

When attempting to upload data to the /bzz endpoint using a pre-generated tag (via the Tag API), the tagging functionality does not work if the swarm-deferred-upload: false header is set (for direct uploads).

Expected behavior

The tag should track the upload progress and reflect the correct chunk counts as the upload proceeds and completes.

Actual behavior

The tag does not update the upload status when swarm-deferred-upload: false is set.

Steps to reproduce

  1. Generate a tag

curl -X POST http://localhost:1633/tags

Note the uid from the response.

  1. Attempt to upload a file with direct upload and tagging
curl -X POST \
  -H "swarm-deferred-upload: false" \
  -H "Content-Type: application/x-tar" \
  -H "swarm-postage-batch-id: <BATCH_ID>" \
  -H "swarm-tag: <TAG_ID>" \
  --data-binary @my_data.tar \
  http://localhost:1633/bzz
  1. Check the tag status

curl http://localhost:1633/tags/<TAG_ID>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions