Skip to content

Commit

Permalink
Fix problem with newer gsoap versions. (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwf14f authored May 3, 2024
1 parent 41267aa commit 15654d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/server/vomsd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,12 @@ void VOMSServer::Run()
sop->ssl = sock.ssl;

// GSOAP will handle this
sop->fparse(sop);
// newer versions of gsoap don't call the http handlers (eg fget) in fparse
// fparse returns SOAP_STOP if any of the handlers were called instead of SOAP_OK (older versions)
// if the return value is SOAP_OK then no hander has been called (newer versions) and we call
// fget manually if it's a get request (SOAP_GET)
if(sop->fparse(sop) == SOAP_OK && sop->status == SOAP_GET)
sop->fget(sop);

sock.Close();
} else {
Expand Down

0 comments on commit 15654d2

Please sign in to comment.