I have a large API call via SOAP that should retur...
# lucee
d
I have a large API call via SOAP that should return 447KB in size. If I log the response out to a file prior to returning the SOAP response, its 447KB. If I log the output using the request content capture in Fusion Reactor, its 224KB and matches what I'm receiving in SoapUI, I cant work out what is truncating the request. I tried looking for possible Undertow settings that might be doing this, but it all seems to be size restrictions for incoming requests. Using Commandbox v5.9.0, Lucee 5.4.3.2 Anyone have any idea where I can look for something that's truncating the output?
t
Are the large one and the small one have the same content? Perhaps the same one has all the line breaks and consecutive spaces removed? Or the 224KB size logged is due to the content is being GZIP compressed?
d
No, its literally cutoff....
image.png
encoding aside obviously πŸ™‚
c
Have you tried using a newer (or older) version of Lucee than 5.4.3.2? It addressed a critical security update but also introduced a bug or two dealing with serialization/deserialization of components and some side effects with XML parsing.
d
Tested with 5.4.4.38, same problem
g
How about an earlier one, prior to the CVE fix?
d
5.4.1.8 - Same problem 5.3.12.1 - Also the same 🀯
c
Sorry to hear. Any chance you can set up a gist/codepen/trycf with test case or share code / url with which you’re having trouble?
d
I'll try to get some time this week to create a test case
For anyone playing along at home, we found that the data had a control character
GS
and we were using
XMLFormat
rather than
EncodeForXML
which was breaking the output πŸ™‚
πŸ‘πŸΌ 1
πŸ‘ 1
c
Glad you were able to figure it out! If you have time, maybe you could post it at https://dev.lucee.org so if others encounter a similar problem , they can learn from your experience?
d