Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gh0stwizard opened this issue Jul 12, 2019 · 1 comment
Open

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

gh0stwizard opened this issue Jul 12, 2019 · 1 comment
Assignees

Comments

@gh0stwizard
Copy link
Contributor

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

  • MailWatch Version: v1.2.7-dev
  • Install type: EFA 3.0.2.6 https://efa-project.org
  • Updated from an older MailWatch or fresh install: vendor (EFA)

Server configuration

  • Operation System: CentOS 6.10
  • PHP version: php-7.2.20-1.el6.remi.x86_64
  • Database: MariaDB-server-10.4.6-1.el7.centos.x86_64 (dedicated DB host)
  • Mail Server: Postfix
  • Used web server: httpd-2.2.15-69.el6.centos.x86_64

Client configuration

  • Operation System: Windows 10
  • Browser: Firefox 67

References about the issue

  1. LIBXML_PARSEHUGE https://php.net/manual/en/libxml.constants.php
  2. https://stackoverflow.com/questions/19152613/
@shawniverson
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants