-
Notifications
You must be signed in to change notification settings - Fork 66
Bootstrapping is broken in ML8 EA1 #241
Comments
Looks like we need to start noticing "server-version=8". We'll need to do more before the final ML8, so we should view this as an interim fix. |
For what it's worth, I got this to work in ML8, but not by changing Roxy. If you go to evaler.xqy in the qconsole endpoint, you can change line 129 to guard against an empty $query with something simple like
This protects it from that () value, and the whole thing works. I don't know how to change this on the Roxy side; it is a remote call to the server through this page, so the Ruby code (as far as I can tell) doesn't have a lot of say about how it will be encoded. |
dallemang, thanks for posting the work-around. We've discussed this with Engineering and there's a change coming that will let us fix it, possibly in EA2 but more likely in EA3. |
The issue is raised by this piece of code, unfortunately on server-side, at line 80 and further of MarkLogic/Apps/qconsole/endpoints/evaler.xqy:
The way we call the evaler, we need the code to enter the if-part, otherwise the POST'ed query won't get executed. Faking a qid won't work, as this code is preceded by checks whether qid is valid. I kind of guess it should have actually been:
I am afraid we depend on a fix in ML8 if we want to keep using the current bootstrap approach.. |
Engineering is going to provide new eval endpoints that should be possible to use instead, but that is still work in progress, and I'd rather provide a working solution now. I'm going to build in an evaler REST extension that can be deployed on the fly, to make bootstrap and adhoc execute_query calls work on EA2 as well.. |
Note, the roxy-evaler also works against MarkLogic 7, maybe even against MarkLogic 6.. |
I just pushed a fix to make this work on ML 8 |
Nice work Paxton, less intrusive than my solution. Don't throw out my work yet though, might come in handy.. ;-) |
…with exteval REST extension that replaces QConsole evaler endpoint, triggered with server-version=8ea
Hi. I know Roxy is an external project. However, in this thread, it was stated that the likely final solution for Roxy that included changes by the Engineering team. See - specifically post of 7 June and 27 August. The question: The reason: I need to give a client information related to Roxy and MarkLogic 8 and do not want to do so if the current solution for Roxy is based on workarounds and not a final solution. I have posted a similiar question in the ML8 EA forums as well and referred to this thread. Kind Regards, |
I believe the current solution is the official one and that no changes from Engineering were needed. @paxtonhare can you confirm? |
To put it short: we found ways around, that didn't require Engineering to revert or change anything. Works fine with all ea's of ml 8, and equally well with ml 7.. Sent from Samsung Mobile -------- Oorspronkelijk bericht -------- I believe the current solution is the official one and that no changes from Engineering were needed. @paxtonhare can you confirm? — |
Thanks for the reply. I've also updated my EA forum post with the same information. Kind Regards, |
Bootstrap against ML8 EA1:
I hear from engineering that the request interface did not change, but some of the responses may have. The error above is probably from parsing the response.
The text was updated successfully, but these errors were encountered: