Orthanc 1.9.3 breaks wsi

Hi Sebastien,

I get some build failures for whole-slide imaging after upgrade to Orthanc 1.9.3:

[ 340s] /home/abuild/rpmbuild/BUILD/OrthancWSI-1.0/Resources/Orthanc/Stone/OrthancHttpConnection.cpp: In member function 'virtual void OrthancStone::OrthancHttpConnection::RestApiPost(std::_cxx11::string&, const string&, const string&)': [ 340s] /home/abuild/rpmbuild/BUILD/OrthancWSI-1.0/Resources/Orthanc/Stone/OrthancHttpConnection.cpp:69:25: error: no matching function for call to ‘Orthanc::HttpClient::SetBody(const string&)’ [ 340s] client.SetBody(body); [ 340s] ^ [ 340s] In file included from /home/abuild/rpmbuild/BUILD/OrthancWSI-1.0/Resources/Orthanc/Stone/OrthancHttpConnection.h:28:0, [ 340s] from /home/abuild/rpmbuild/BUILD/OrthancWSI-1.0/Resources/Orthanc/Stone/OrthancHttpConnection.cpp:23: [ 340s] /usr/src/orthanc/OrthancFramework/Sources/HttpClient.h:154:10: note: candidate: void Orthanc::HttpClient::SetBody(Orthanc::HttpClient::IRequestBody&) [ 340s] void SetBody(IRequestBody& body); [ 340s] ^~~~~~~ [ 340s] /usr/src/orthanc/OrthancFramework/Sources/HttpClient.h:154:10: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘Orthanc::HttpClient::IRequestBody&’

See: https://build.opensuse.org/package/live_build_log/home:DocB:Orthanc/orthanc-wsi/openSUSE_Leap_15.2/x86_64

Any idea?

Thanks
Axel

Hello Axel,

The following patch must be applied:
https://hg.orthanc-server.com/orthanc-wsi/rev/c2863f5204a8

Thanks again for your contributions!
Sébastien-

Hello Sebastien,