-
Notifications
You must be signed in to change notification settings - Fork 871
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
REST embeds edge into record #8762
Comments
Hi @luigidellaquila, I've found how to reproduce this. The problem happens after record update request, whether full or partial: First prepare some classes and records:
Then using REST (not URL encoded for making it readable):
Below are the screenshots from the REST client I used to test and final result in the Studio: |
Hi @andreyvk Thank you very much, it helps a lot. I'll look into it ASAP Thanks Luigi |
hi @luigidellaquila, Have you been able to reproduce this problem? |
Hi @andreyvk Sorry, not yet... Luigi |
Hi @luigidellaquila, Is this going to be checked on before the release of 3.0.16? |
Hi @luigidellaquila |
Hi @andreyvk I managed to reproduce the problem and I think I have a high level idea of what's going on. Thanks Luigi |
hi @luigidellaquila, Eagerly looking forward for the fix, because it's probably the only thing that's keeping us from moving to 3.0.x fully |
@luigidellaquila hi, Any luck with this issue? |
Hi @luigidellaquila |
Hi @luigidellaquila , Is there any chance this issue gets fixed at any point of time? I just remember our CEO had a chat with @lvca previously regarding Orient's PHP support for 3.0 version. Luca himself suggested moving to REST protocol, because it was supposed to be the key solution to all our problems with PhpOrient. However, if REST protocol doesnt work properly, then situation runs into a deadlock. Would you please suggest anything concrete on this problem, please? We are running out of time trying to keep our project running this database. |
Hi @andreyvk From our analysis, this issue is definitely not of easy solution. The problem here is that, in a schemaless db, it's hard to do inference on JSON documents and how a simple I cannot give you an ETA now, so my suggestion for the short term is (if you have a chance) to use SQL instead of PUT/POST Thanks Luigi |
Hi, Ok, that's fine with schemaless. But our db is schemaful. Why wouldnt the functionality work then? A. |
Hi @luigidellaquila |
OrientDB Version: 3.0.14
Java Version: 1.8
Hi,
There's a strange behavior in REST protocol.
The query issued looks like this:
create edge has_a from #84:169544 to #34:32951 content {"type":"Company","billing":true}
Problem doesnt happen always, but in many cases it looks like the edge is embedded in to "out_has_a" attribute like so (all irrelevant attributes are removed from document sample below):
Issue is not reproducable from Studio or console. I've spent hours trying to figure out what's causing it, but still couldnt figure out why. I've also tried not using
content
in the command and usedset type='Company', billing = true
instead, but the problem persists. Hopefully this information is enough to find the bug.I'll keep this thread updated when I find more.
The text was updated successfully, but these errors were encountered: