[REST Api] getting file content issue in 21.2
Hi guys, I've been using "/v2/nodes/{id}/content" and noticed that in OTCS21.2 now the request comes with the HTTP headers and JSON object appended to the response.
I tested the same call against 20.4 and 21.2 and this is a new thing...
Anyone else got this?
Snippet:
$.ajax(
{
url: "/knowledge/llisapi.dll/api/v2/nodes/145450/content",
beforeSend: function(xhr) {xhr.setRequestHeader('otcsticket', token);
}
}).done(function(fileContent) {
console.log(fileContent);
})
Expected:
content text from txt file that I saved in OTCS
Actual result:
content text from txt file that I saved in OTCS Cache-Control: no-cache, no-store, must-revalidate, max-age=0 Pragma: no-cache Expires: 0 OTCSTicket: nKiGEuTkmhX3r9vvnjGiuUBekY+VKWz1an+Q5dm6v9Xrz6KgSA1P3SmdB+51kAPYZnMe8aFd2ywY/WqcjXxuzD8tJ1+wqBFwan5lwQIK+3HHEBArip5b+3ktkvWobOyoRChflBsh8FuDID0p3w3qp1vQUAX0fXlzwY50yRIfVASj8zaMgORi7Q== OTCSTicketExpires: Tue, 21 Sep 2021 22:34:51 GMT Status: 200 OK Content-type: application/json; charset=UTF-8 Content-Length: 290 {"links":{"data":{"self":{"body":"","content_type":"","href":"\/api\/v2\/nodes\/145450\/content","method":"GET","name":""}}},"results":{"apiError":null,"errMsg":{"apiError":null,"errDetail":"","errMsg":"An unknown error occurred.","statusCode":0},"isCommitted":null,"ok":true}}
Tagged:
0
Comments
-
For anyone who's interested, this is a problem introduced by the NETEA antivirus module (sold by but not developed by OT).
OTCS works fine without it.
Cheers!
2
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 151 General Questions
- 147 Thrust Services
- 56 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 184 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 7 XM Fax
- Follow Categories