Commit bfca008d authored by Frank Bergmann's avatar Frank Bergmann

- REST Interface:

  Fixed issue that leads to crashes of AOLserver under Windows
parent a6e76c9c
......@@ -315,6 +315,8 @@ ad_proc -private im_rest_page {
}
set result [ad_parse_template -params $params $file]
# set result "{success:false, message: 'ad_parse_template -params $params $file'}"
switch $format {
json { set mime_type "application/json" }
default { set mime_type "text/html" }
......
@json;noquote@
\ No newline at end of file
......@@ -25,14 +25,8 @@ ns_log Notice "/intranet-rest/data-source/domain-proxy.tcl: url=$url"
# --------------------------------------------
# Fetch and return the page
#
if {[catch {
set json [ns_httpget $url]
} err_msg]} {
ad_return_complaint 1 "Domain-proxy: Error retreiving url:<br><pre>[ns_quotehtml $err_msg]</pre>"
ad_script_abort
set json "{'success': false, 'message': 'Error message: $err_msg'}"
}
doc_return 200 "application/json" $json
{success:true, message: 'Successfully performed action=$action'}
\ No newline at end of file
......@@ -50,8 +50,3 @@ if {[info exists json_hash(_array_)]} {
}
}
# ---------------------------------------------------------------
# Return a success JSON
# ---------------------------------------------------------------
doc_return 200 "text/plain" "\{success:true, message: 'Successfully performed action=$action'\}"
{'text':'.','children': [
@task_json@
}
......@@ -238,9 +238,3 @@ while {$level < $old_level} {
for {set i 0} {$i < $old_level} {incr i} { append indent "\t" }
}
doc_return 200 "text/plain" "{'text':'.','children': \[
$task_json
}
"
ad_script_abort
{'success': true, 'message': 'success'}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment