This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
bootstrap broken with ML 8.0-6 #670
Comments
I will try to provide a PR this week - but here is a fix working for me: def execute_query(query, properties = {})
r = nil
if @server_version == 4
r = execute_query_4 query, properties
elsif @server_version == 5 || @server_version == 6
r = execute_query_5 query, properties
elsif @server_version == 7 # 7
r = execute_query_7 query, properties
else # 8
r = execute_query_8 query, properties
end
raise ExitException.new(r.body) unless r.code.to_i == 200
return r
end
# Use POST /LATEST/eval - https://docs.marklogic.com/8.0/REST/POST/v1/eval
def execute_query_8(query, properties = {})
params = {}
if properties[:db_name] != nil
params["database"] = properties[:db_name]
end
params["xquery"] = query
headers = {
"Content-type" => "application/x-www-form-urlencoded",
"Accept" => "multipart/mixed"
}
url = "#{@protocol}://#{@hostname}:#{@qconsole_port}/LATEST/eval"
go(url, "post", headers, params, nil)
end |
I believe this is working on the dev branch already. @rlouapre can you test that? Assuming that /v1/eval fix does work for 8.0-6, I think we need to do a new release as soon as possible. |
Yes it is working in dev branch. |
Since we have confirmation that this is not a new bug, but something already fixed in dev, I'm going to close. |
I am not sure the reason sometime |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I get the following error:
The text was updated successfully, but these errors were encountered: