mailwatch / MailWatch

MailWatch for MailScanner is a web-based front-end to MailScanner
http://mailwatch.org/
GNU General Public License v2.0
118 stars 66 forks source link

[XML-RPC] XML error: No memory at line 8, column 18 #1151

Open gh0stwizard opened 5 years ago

gh0stwizard commented 5 years ago

Issue summary

When open the body of a huge message via XML-RPC on another host you may get XML error No memory.

Steps to reproduce

  1. Setup two servers to work together via XML-RPC.
  2. Send email with size 9Mb+.
  3. Open the body of the message on another host (where the message is not stored).

Expected result

View content of the message like always.

Actual result

Error: Invalid return payload: enable debugging to examine incoming payload (XML error: No memory at line 8, column 18)

HEADER: date: Fri, 12 Jul 2019 15:59:53 GMT
HEADER: server: Apache
HEADER: x-powered-by: PHP/7.2.19
HEADER: x-xss-protection: 1; mode=block
HEADER: x-frame-options: SAMEORIGIN
HEADER: x-content-type-options: nosniff
HEADER: set-cookie: PHPSESSID=XXXXXXXXXXXXXXXXXXXXXXX; path=/; HttpOnly
HEADER: expires: Thu, 19 Nov 1981 08:52:00 GMT
HEADER: cache-control: no-store, no-cache, must-revalidate
HEADER: pragma: no-cache
HEADER: vary: Accept-Encoding
HEADER: content-encoding: gzip
HEADER: content-length: 9898790
HEADER: content-type: text/xml;charset=UTF-8
COOKIE: PHPSESSID=XXXXXXXXXXXXXXXXXXXXXXX

XML error: No memory at line 8, column 18Error: (error06) Invalid return payload: enable debugging to examine incoming payload (XML error: No memory at line 8, column 18)

Installation

Version and method

Server configuration

Client configuration

References about the issue

  1. LIBXML_PARSEHUGE https://php.net/manual/en/libxml.constants.php
  2. https://stackoverflow.com/questions/19152613/
shawniverson commented 3 years ago

Revisiting this....XML-RPC has no viable workarounds without custom coding of the library, going to explore implementing a RESTful API instead....