-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
Incorrect href link for ONE_TO_ONE relation with OID as id type #279
Comments
@ujibang this looks like a regression, I've never noticed such an issue before. |
fixed in 6c397e7 |
We're going to release version 3.3 final this week, it will include this fix as well. |
@shaileshpandit yesterday we've released the fix in both RESTHeart 3.3.0 and 3.2.3. Beware that version 3.3 introduces some different behaviors for PUT and POST, so have a look at the release notes before jumping: https://github.com/SoftInstigate/restheart/releases |
Thanks, works as expected in 3.3.0 |
After creating a link to other document with OID as id type, the href in link is incorrect
Expected Behavior
href in owning document should be object id string instead of whole json object
"href": "/test/collother/5ae94eb4b634b2c96dc9f242"
Current Behavior
href in owning document is whole json object
"href": "/test/collother/{"$oid":"5ae94eb4b634b2c96dc9f242"}"
Context
was trying to simply link other document from one document
Environment
05:19:20.724 [main] INFO org.restheart.Bootstrapper - version 3.2.2
05:19:21.687 [main] INFO org.restheart.Bootstrapper - MongoDB version 3.6.4,
Steps to Reproduce
Possible Implementation
The text was updated successfully, but these errors were encountered: