bpo-38243: Escape the server_title of DocXMLRPCServer when rendering#16373
bpo-38243: Escape the server_title of DocXMLRPCServer when rendering#16373vstinner merged 5 commits into
Conversation
|
@tirkarthi I've updated the PR, thank you for the feedback. |
Sorry, something went wrong.
|
@tirkarthi I've reflected your comment. Thanks for the review. |
Sorry, something went wrong.
|
Sorry, @corona10 and @vstinner, I could not cleanly backport this to |
Sorry, something went wrong.
Escape the server title of xmlrpc.server.DocXMLRPCServer when rendering the document page as HTML. (cherry picked from commit e8650a4) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
|
@corona10: I backported manually your change to 3.6. I just had to fix a simple conflict on imports. Would you mind to try to backport the change to Python 2.7 which also has the bug? |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot PPC64LE Fedora 3.7 has failed when building commit 39a0c75. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/120/builds/1323 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 400 tests OK. 10 slowest tests:
3 tests failed: 13 tests skipped: 3 re-run tests: Total duration: 20 min 20 sec Click to see traceback logsTraceback (most recent call last):
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/support/__init__.py", line 623, in wrapper
return func(*args, **kw)
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_asyncio/test_events.py", line 1645, in test_bidirectional_pty
master, read_slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_readline.py", line 149, in test_auto_history_enabled
output = run_pty(self.auto_history_script.format(True))
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_readline.py", line 285, in run_pty
[master, slave] = pty.openpty()
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/pty.py", line 59, in _open_terminal
raise OSError('out of pty devices')
OSError: out of pty devices
Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_os.py", line 3273, in test_openpty
master_fd, slave_fd = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_readline.py", line 274, in test_history_size
run_pty(script, input=b"last input\r", env=env)
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_readline.py", line 285, in run_pty
[master, slave] = pty.openpty()
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/pty.py", line 59, in _open_terminal
raise OSError('out of pty devices')
OSError: out of pty devices
Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_readline.py", line 226, in test_nonascii
output = run_pty(script, input)
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_readline.py", line 285, in run_pty
[master, slave] = pty.openpty()
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/pty.py", line 59, in _open_terminal
raise OSError('out of pty devices')
OSError: out of pty devices
Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_asyncio/test_events.py", line 1503, in test_read_pty_output
master, slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_readline.py", line 153, in test_auto_history_disabled
output = run_pty(self.auto_history_script.format(False))
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_readline.py", line 285, in run_pty
[master, slave] = pty.openpty()
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/pty.py", line 59, in _open_terminal
raise OSError('out of pty devices')
OSError: out of pty devices
Traceback (most recent call last):
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/support/__init__.py", line 623, in wrapper
return func(*args, **kw)
File "/home/shager/cpython-buildarea/3.7.edelsohn-fedora-ppc64le/build/Lib/test/test_asyncio/test_events.py", line 1601, in test_write_pty
master, slave = os.openpty()
FileNotFoundError: [Errno 2] No such file or directory
|
Sorry, something went wrong.
Escape the server title of xmlrpc.server.DocXMLRPCServer when rendering the document page as HTML.
Escape the server_title of DocXMLRPCServer when rendering,
The title will only be escaped when the server_title should be rendered.
https://bugs.python.org/issue38243