Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway responds with two JSONs in case of error #265

Open
roman-khimov opened this issue Jan 20, 2025 · 0 comments
Open

Gateway responds with two JSONs in case of error #265

roman-khimov opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working I4 No visible changes S4 Routine U2 Seriously planned
Milestone

Comments

@roman-khimov
Copy link
Member

Current Behavior

Object put reply:

{"code":2048,"message":"writer close: status: code = 2048 message = access to object operation denied","type":"API"}
{"container_id":"754iyTDY8xUtZJZfheSYLUn7jvCkxr79RcbjMt81QykC","object_id":"11111111111111111111111111111111"}

Expected Behavior

A single JSON struct with error (it fails at the NeoFS level), second JSON is misleading and can make applications think the operation is successful where it's not.

Possible Solution

Drop the second output line.

Steps to Reproduce

Upload to a container without appropriate rights via REST.

Context

Affects send.fs.neo.org.

Regression

Unknown, maybe.

Your Environment

  • Version of the product used: 0.11.1
  • Server setup and configuration files used: testnet
  • Operating System and version (uname -a): Debian stable
@roman-khimov roman-khimov added bug Something isn't working I4 No visible changes S4 Routine U2 Seriously planned labels Jan 20, 2025
@roman-khimov roman-khimov added this to the v0.12.0 milestone Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working I4 No visible changes S4 Routine U2 Seriously planned
Projects
None yet
Development

No branches or pull requests

1 participant