commit b2f1f87b2619bc8658f7b66d9c0f829c01b9cf6d
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Jan 21 03:56:38 2019 +0000
Fix build of webservice
590355dbdcffa4081c377fd31565e172785b390c.patch | 27 ++++++++++++++++++++++++++
VirtualBox.spec | 4 ++++
2 files changed, 31 insertions(+)
---
diff --git a/590355dbdcffa4081c377fd31565e172785b390c.patch
b/590355dbdcffa4081c377fd31565e172785b390c.patch
new file mode 100644
index 0000000..996ef74
--- /dev/null
+++ b/590355dbdcffa4081c377fd31565e172785b390c.patch
@@ -0,0 +1,27 @@
+From 590355dbdcffa4081c377fd31565e172785b390c Mon Sep 17 00:00:00 2001
+From: vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>
+Date: Thu, 10 Jan 2019 19:49:43 +0000
+Subject: [PATCH] Main/webservice: fixes, bugref:9329 - the line has to be
+ somewhere.
+
+git-svn-id:
http://www.virtualbox.org/svn/vbox@76761
cfe28804-0f27-0410-a406-dd0f0b0b656f
+---
+ trunk/src/VBox/Main/webservice/vboxweb.cpp | 17 ++++++++++++++++-
+ 1 file changed, 16 insertions(+), 1 deletion(-)
+
+diff --git a/trunk/src/VBox/Main/webservice/vboxweb.cpp
b/trunk/src/VBox/Main/webservice/vboxweb.cpp
+index 3665922a7a..2360f67ca2 100644
+--- a/trunk/src/VBox/Main/webservice/vboxweb.cpp
++++ b/trunk/src/VBox/Main/webservice/vboxweb.cpp
+@@ -616,6 +616,11 @@ void SoapThread::process()
+ // keepalive, otherwise stale connections tie up worker threads.
+ m_soap->send_timeout = 60;
+ m_soap->recv_timeout = 60;
++ // Limit the maximum SOAP request size to a generous amount, just to
++ // be on the safe side (SOAP is quite wordy when representing arrays,
++ // and some API uses need to deal with large arrays). Good that binary
++ // data is no longer represented by byte arrays...
++ m_soap->recv_maxlength = _16M;
+ // process the request; this goes into the COM code in methodmaps.cpp
+ do {
+ #ifdef WITH_OPENSSL
diff --git a/VirtualBox.spec b/VirtualBox.spec
index eb1e49a..6b85df3 100644
--- a/VirtualBox.spec
+++ b/VirtualBox.spec
@@ -64,6 +64,7 @@ Patch1: VirtualBox-OSE-4.1.4-noupdate.patch
Patch2: VirtualBox-5.1.0-strings.patch
Patch18: VirtualBox-OSE-4.0.2-aiobug.patch
Patch27: VirtualBox-gcc.patch
+Patch29: 590355dbdcffa4081c377fd31565e172785b390c.patch
# from Debian
Patch28: 02-gsoap-build-fix.patch
# from Mageia
@@ -277,6 +278,9 @@ rm -r src/libs/zlib-1.2.8/
%if 0%{?fedora} > 20
%patch28 -p1 -b .gsoap2
%endif
+%if 0%{?fedora} < 28 || 0%{?rhel}
+%patch29 -p2 -R -b .gsoap3
+%endif
%patch50 -p1 -b .mageia-support
%patch51 -p1 -b .revert-VBox.sh
%patch60 -p1 -b .xclient