Open
Description
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
- Generate a tag
curl -X POST http://localhost:1633/tags
Note the uid
from the response.
- 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
- Check the tag status
curl http://localhost:1633/tags/<TAG_ID>