The gateway doesn't delete an object in unversioned bucket #255

Closed
opened 2025-12-28 17:36:44 +00:00 by sami · 1 comment
Owner

Originally created by @masterSplinter01 on GitHub (Jun 14, 2022).

Originally assigned to: @KirillovDenis on GitHub.

tree-service branch:

$ aws s3api create-bucket --bucket test --endpoint-url http://127.0.0.1:8084   

$ aws s3api put-object --key a --body ~/cat.txt  --bucket test --endpoint-url http://127.0.0.1:8084                                     
{
  "ETag": "93d30be4ee6dd625821e8b35f93af305f3f084aa595440a5e696d11dbbc6516a"
}

$ aws s3api get-object --key a --bucket test  --endpoint-url http://127.0.0.1:8084 a
{
  "LastModified": "2022-06-14T20:50:57+00:00",
  "ContentLength": 110,
  "ETag": "93d30be4ee6dd625821e8b35f93af305f3f084aa595440a5e696d11dbbc6516a",
  "VersionId": "32YzycJCqf3vjJy3UMk7ZjNMuzKHHpzHKqcjiEEHYB4n",
  "ContentType": "text/plain; charset=utf-8",
  "Metadata": {},
  "TagCount": 0
}


$ neofs-cli container list-objects --wallet ~/work/neofs-dev-env/wallets/wallet.json --rpc-endpoint 192.168.130.71:8080  --cid B2wvUWk6SPJu4PjVAZqTEXy8Z3ZxS2UNdEFiXfB1eW2F
Enter password > 
32YzycJCqf3vjJy3UMk7ZjNMuzKHHpzHKqcjiEEHYB4n

$ aws s3api delete-object --key a --bucket test  --endpoint-url http://127.0.0.1:8084  
{
  "DeleteMarker": true,
  "VersionId": "null"
}

$ neofs-cli container list-objects --wallet ~/work/neofs-dev-env/wallets/wallet.json --rpc-endpoint 192.168.130.71:8080  --cid B2wvUWk6SPJu4PjVAZqTEXy8Z3ZxS2UNdEFiXfB1eW2F
Enter password > 
32YzycJCqf3vjJy3UMk7ZjNMuzKHHpzHKqcjiEEHYB4n

$ neofs-cli object get --wallet ~/work/neofs-dev-env/wallets/wallet.json --rpc-endpoint 192.168.130.71:8080  --cid B2wvUWk6SPJu4PjVAZqTEXy8Z3ZxS2UNdEFiXfB1eW2F --oid 32YzycJCqf3vjJy3UMk7ZjNMuzKHHpzHKqcjiEEHYB4n
Enter password > 
   ^___^
 " o o "
 ===X===       _
  ' " '_     __\\
 /''''  \___/ __/
|           /
("|")__\   |
"" ""(_____/                                                  

Originally created by @masterSplinter01 on GitHub (Jun 14, 2022). Originally assigned to: @KirillovDenis on GitHub. `tree-service` branch: ``` $ aws s3api create-bucket --bucket test --endpoint-url http://127.0.0.1:8084 $ aws s3api put-object --key a --body ~/cat.txt --bucket test --endpoint-url http://127.0.0.1:8084 { "ETag": "93d30be4ee6dd625821e8b35f93af305f3f084aa595440a5e696d11dbbc6516a" } $ aws s3api get-object --key a --bucket test --endpoint-url http://127.0.0.1:8084 a { "LastModified": "2022-06-14T20:50:57+00:00", "ContentLength": 110, "ETag": "93d30be4ee6dd625821e8b35f93af305f3f084aa595440a5e696d11dbbc6516a", "VersionId": "32YzycJCqf3vjJy3UMk7ZjNMuzKHHpzHKqcjiEEHYB4n", "ContentType": "text/plain; charset=utf-8", "Metadata": {}, "TagCount": 0 } $ neofs-cli container list-objects --wallet ~/work/neofs-dev-env/wallets/wallet.json --rpc-endpoint 192.168.130.71:8080 --cid B2wvUWk6SPJu4PjVAZqTEXy8Z3ZxS2UNdEFiXfB1eW2F Enter password > 32YzycJCqf3vjJy3UMk7ZjNMuzKHHpzHKqcjiEEHYB4n $ aws s3api delete-object --key a --bucket test --endpoint-url http://127.0.0.1:8084 { "DeleteMarker": true, "VersionId": "null" } $ neofs-cli container list-objects --wallet ~/work/neofs-dev-env/wallets/wallet.json --rpc-endpoint 192.168.130.71:8080 --cid B2wvUWk6SPJu4PjVAZqTEXy8Z3ZxS2UNdEFiXfB1eW2F Enter password > 32YzycJCqf3vjJy3UMk7ZjNMuzKHHpzHKqcjiEEHYB4n $ neofs-cli object get --wallet ~/work/neofs-dev-env/wallets/wallet.json --rpc-endpoint 192.168.130.71:8080 --cid B2wvUWk6SPJu4PjVAZqTEXy8Z3ZxS2UNdEFiXfB1eW2F --oid 32YzycJCqf3vjJy3UMk7ZjNMuzKHHpzHKqcjiEEHYB4n Enter password > ^___^ " o o " ===X=== _ ' " '_ __\\ /'''' \___/ __/ | / ("|")__\ | "" ""(_____/ ```
sami 2025-12-28 17:36:44 +00:00
Author
Owner

@KirillovDenis commented on GitHub (Jun 16, 2022):

Done in #535

@KirillovDenis commented on GitHub (Jun 16, 2022): Done in #535
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
nspcc-dev/neofs-s3-gw#255
No description provided.