Skip to content

Error getting Document by key with punctuation characters #97

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

Closed
amtemkin opened this issue Feb 1, 2017 · 3 comments
Closed

Error getting Document by key with punctuation characters #97

amtemkin opened this issue Feb 1, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@amtemkin
Copy link

amtemkin commented Feb 1, 2017

Hi.

When getting Document with the value contains punctuation characters is thrown ArangoDBException.

For example
ArangoDatabase db...
db.getDocument("MyCollection/myKey+", MyClass.class);

Result
com.arangodb.ArangoDBException: Response: 404, Error: 1202 - document not found
at com.arangodb.internal.velocystream.Communication.checkError(Communication.java:104)
at com.arangodb.internal.velocystream.CommunicationSync.execute(CommunicationSync.java:120)
at com.arangodb.internal.velocystream.CommunicationSync.execute(CommunicationSync.java:40)
at com.arangodb.internal.ArangoExecutorSync.execute(ArangoExecutorSync.java:58)
at com.arangodb.internal.ArangoExecutorSync.execute(ArangoExecutorSync.java:47)
at com.arangodb.ArangoCollection.getDocument(ArangoCollection.java:210)
at com.arangodb.ArangoDatabase.getDocument(ArangoDatabase.java:598)
....

Some logs
17:46:27.377 [main] DEBUG com.arangodb.internal.velocystream.CommunicationSync - Send Message (id=5, head=[1,1,"xxx",1,"/_api/document/MyCollection/myKey+",{},{}], body={})
17:46:27.377 [main] DEBUG com.arangodb.internal.velocystream.Connection - Send chunk 1:1 from message 5
17:46:27.378 [main] DEBUG com.arangodb.internal.velocystream.Connection - Received chunk 1:1 from message 5
17:46:27.379 [main] DEBUG com.arangodb.internal.velocystream.ConnectionSync - Received Message (id=5, head=[1,2,404], body={"error":true,"errorMessage":"document not found","code":404,"errorNum":1202})
17:46:27.386 [main] DEBUG com.arangodb.ArangoCollection - Response: 404, Error: 1202 - document not found

I am using the java driver v4.1.7, and ArangoDB v.3.1.4

Best
Aleksander

mvollmary pushed a commit that referenced this issue Feb 2, 2017
@mvollmary
Copy link

Hi Aleksander,
thanks for reporting this bug. I fixed it. You can test it with current snapshot version 4.1.8-SNAPSHOT. I will release a new version (4.1.8) within this week.

Thanks & Best
Mark

@mvollmary mvollmary added this to the 4.1.8 milestone Feb 2, 2017
@mvollmary mvollmary added the bug label Feb 2, 2017
@mvollmary mvollmary self-assigned this Feb 2, 2017
@amtemkin
Copy link
Author

amtemkin commented Feb 2, 2017

Hi,
Thank you so much.

Best
Aleksander

mvollmary pushed a commit that referenced this issue Feb 3, 2017
@mvollmary
Copy link

fixed in version 4.1.8

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

No branches or pull requests

2 participants