#5 — [NTUA Model] Some operations with models not working as expected
State | Unconfirmed |
---|---|
Area | Process |
Issue type | Bug |
Severity | Low |
Submitted by | Jeliazkov Vedrin |
Submitted on | Nov 30, 2009 |
Responsible | Jeliazkov Vedrin |
Last modified on
Nov 30, 2009
by
Jeliazkov Vedrin
The following curl requests, listed at http://opentox.ntua.gr/index.php?p=guide, produce unexpected results:
1) Get an XML listing all available models (both classification and regression)
curl -H "Accept:text/xml" http://opentox.ntua.gr:3000/model
2) Get a URI-list of all available classification models
curl -H "Accept:text/xml" http://opentox.ntua.gr:3000[…]rchAlgorithm=classification
3) Get a URI-list of all available MLR models
curl -H "Accept:text/xml" http://opentox.ntua.gr:3000/model?searchAlgorithm=mlr
In all cases the returned response (HTTP code 406) is:
<html>
<head>
<title>Status page</title>
</head>
<body>
<h3>The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request</h3><p>You can get technical details <a href="http://www.w3.org/[…]/a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>
1) Get an XML listing all available models (both classification and regression)
curl -H "Accept:text/xml" http://opentox.ntua.gr:3000/model
2) Get a URI-list of all available classification models
curl -H "Accept:text/xml" http://opentox.ntua.gr:3000[…]rchAlgorithm=classification
3) Get a URI-list of all available MLR models
curl -H "Accept:text/xml" http://opentox.ntua.gr:3000/model?searchAlgorithm=mlr
In all cases the returned response (HTTP code 406) is:
<html>
<head>
<title>Status page</title>
</head>
<body>
<h3>The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request</h3><p>You can get technical details <a href="http://www.w3.org/[…]/a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>
- Steps to reproduce:
- 1) Execute the following curl requests:
curl -H "Accept:text/xml" http://opentox.ntua.gr:3000/model
curl -H "Accept:text/xml" http://opentox.ntua.gr:3000[…]rchAlgorithm=classification
curl -H "Accept:text/xml" http://opentox.ntua.gr:3000/model?searchAlgorithm=mlr
2) Check the response
No responses can be added.