mhehle opened a new issue, #6008:
URL: https://github.com/apache/couchdb/issues/6008
### Version
3.3.3
### Describe the problem you're encountering
## Description
Documents containing integers larger than JavaScript
`Number.MAX_SAFE_INTEGER` are stored correctly by CouchDB itself.
However, when such a document is opened and saved through the Fauxton Web
UI, the integer is silently rounded/truncated due to JavaScript number
precision limits, corrupting the document.
### Expected Behaviour
The integer value should remain unchanged after editing/saving via Fauxton.
### Steps to Reproduce
1. Insert a document containing a large integer:
```json
{
"_id": "large-int-test",
"hugeNumber": 9223372036854775807
}
```
2. Open the document in Fauxton.
3. Save the document.
4. Fetch the document again.
## Actual Result
```json
{
"_id": "large-int-test",
"_rev": "1-242234d64bf45499ef1d622e1a0f8237",
"hugeNumber": 9223372036854776000
}
```
### Your Environment
_No response_
### Additional Context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]