You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trailing white spaces are not supported by Fauxton for document IDs.
Expected Behavior
A document with an id of " with spaces " or "\twith\t\tabs\t" should be accessible from Fauxton.
Current Behavior
The document is listed but clicking it yields a "Does not exist" error.
Possible Solution
Do not trim the trailing white spaces from a document id when building URLs.
Steps to Reproduce (for bugs)
Create 2 documents in a database. One with {"_id": " with space "} and one with {"_id": "\twith\ttabs\t"}.
Navigate with Fauxton to the database.
Notice the 2 documents are present, and hovering the "copy" shows the proper ids.
Click on their name / id to open documents.
"Not found" error is displayed.
Look a the web browser console's network to see that the trailing white spaces were trimmed, while the leading and middle ones were properly URL-encoded.
Context
No special context. Just improper support for some document ids (albeit they probably are seldom used.)
Your Environment
Version used: Fauxzton v2.3.1
Browser Name and version: Chrome 77.0
Operating System and version (desktop or mobile): Windows 10.
The text was updated successfully, but these errors were encountered:
Trailing white spaces are not supported by Fauxton for document IDs.
Expected Behavior
A document with an id of " with spaces " or "\twith\t\tabs\t" should be accessible from Fauxton.
Current Behavior
The document is listed but clicking it yields a "Does not exist" error.
Possible Solution
Do not trim the trailing white spaces from a document id when building URLs.
Steps to Reproduce (for bugs)
Context
No special context. Just improper support for some document ids (albeit they probably are seldom used.)
Your Environment
The text was updated successfully, but these errors were encountered: