Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Binary data can not be processed correctly #47

Open
arkocal opened this issue Sep 30, 2019 · 0 comments
Open

Binary data can not be processed correctly #47

arkocal opened this issue Sep 30, 2019 · 0 comments
Assignees
Labels

Comments

@arkocal
Copy link
Member

arkocal commented Sep 30, 2019

When I make the following request:
Headers:

{'User-Agent': 'python-requests/2.22.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/cbor', 'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJqdGkiOiJmNmQ5NWQ3Mi1jN2EyLTQwMGEtOGU0My01NjFmZDE3NzhiMjciLCJpc3MiOiJodHRwOi8vZW5hYmxlaW90LmNvbSIsInN1YiI6ImRldmljZV9pZCIsImV4cCI6MTg4NTIwMjc2NDY4NSwiYWNjb3VudHMiOlt7ImlkIjoiMzAxNWFkNzMtNWQwNS00ZTAzLTg0MTMtNTMwOWUwNzQwMDhkIiwicm9sZSI6ImRldmljZSJ9XSwidHlwZSI6ImRldmljZSJ9.mwsx-phzjfy7d4XwobQTYMZY0NabafTvnr7dejxZrbKWHAaJpRRNEzegKueAoLJ-SqxB5wTbxGLxOZahZntJJ3e79AMBRx1uJMNlI1ToXcAXEhvN10tjQIr7Cd1KoiDdANWE1f1JB3EkCBIkfkUH7_bNu4QQLhkVyLbgD2we1x1hfn5r0KwXmcjyumdpeDGlBsRDE2sbln6BaJiOarjhv7OHgGuOcz7yWEPvdHGOnIoSJ989UV4B4Bezhhg-9i4sj5_8BKWiOO16lbEx2Ok-PyDWultbejAhVFwBeD7qnNDAjGh2Q6UyLX7uD0Aii3WPiwU6OHWZ7QsYciEFhUiVxg', 'Content-Length': '115'}

body:

b'\xa3bon\x1b\x00\x00\x01m\x81\xeb\x9cKiaccountIdx$3015ad73-5d05-4e03-8413-5309e074008dddata\x81\xa3kcomponentIdicid_imageevalueF\x01\x02\x03\x04\x05\x06bon\x1b\x00\x00\x01m\x81\xeb\x9cK'

which is cbor for:

{'accountId': '3015ad73-5d05-4e03-8413-5309e074008d',
 'data': [{'componentId': 'cid_image',
           'on': 1569842764875,
           'value': b'\x01\x02\x03\x04\x05\x06'}],
 'on': 1569842764875}

the request is accepted by the frontend, but the backend fails, and returns 6506. (Internally there is a StringIndexOutOfBoundsException on the backend. The logs are attached.
oisp-logs_2019-09-30_13-46-19.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants