Apache OpenOffice (AOO) Bugzilla – Issue 41037
HTTP UCP: Problems with bad data in URLs
Last modified: 2023-10-28 19:07:01 UTC
The HTTP UCP does not detect and reject URLs that contain unescaped NULL (U+0000), LF (U+000A), and CR (U+000D). When "http://host/path" is a working URL, calling XContent.execute("getPropertyValues") to retrieve the "Size" property on contents corresponding to the following URLs has the following results (all string literals are in Java notation): "http://host/path": success "http://host/path\u0000foo": success (error: "\u0000foo" is silently dropped on client side) "http://host/path\r\nfoo": com.sun.star.ucb.InteractiveNetworkReadException "" (error: garbage is sent from client to server)
Auweia! :-)
.
Andreas, please take care.
accepted
ABI->KSO: As discussed ...
KSO->TKR: Please take care of this issue.
I bump this issue that still continue in 4.1.14 https protocol is not supported Try this macro sub main sPage = HttpGet("https://httpbin.org/ip") msgbox sPage end sub function HttpGet(url) sfa = createunoservice("com.sun.star.ucb.SimpleFileAccess") instream = sfa.openFileRead(url) txtinstream = createunoservice("com.sun.star.io.TextInputStream") txtinstream.setInputStream(instream) html = txtinstream.readString(array(), False) txtinstream.closeInput() HttpGet = html end function Don't work and results this error: An exception occured Type: com.sun.star.ucb.InteractiveNetworkReadException Message: .
@oooforum (fr) On Windows I get no error. Your macro returns { "origin": "XXXX" } where XXXX stands for an IP address.
(In reply to Czesław Wolański from comment #11) > On Windows I get no error. OK could you tell me Windows edition you have?
(In reply to oooforum (fr) from comment #12) > OK could you tell me Windows edition you have? Apologies for the delayed response. Same result on Windows 7 and Windows 11 (10.0.22621)