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
5.11 breaks HTML::FormatExternal #102
Comments
With use URI::file; I hoped to get file:///tmp/%23%23%23 which seems to be not so in 5.11. I used this in FormatExternal to ensure that a weird filename is encoded in a way which is unambiguous for the program called. |
This would have been introduced via #100. |
@Perlbotics I think we need to consider which URI types should not be affected by this new behaviour? |
Whoaah. I guess, it happens around line 104 in |
@Perlbotics I can revert #100 and upload a new release. That would leave time to be thorough about a fix and get some new tests in place. We could then re-introduce the changes with the tweaks. Does that sound reasonable? |
Hi Olaf (@oalders), sounds reasonable. Locally, I added a testcase for the given issue 102 and ran the test suite again. Quick fix for issue#102 (leaving similar problems open) I'll return to this in the evening. Update: Changing line 105 from: |
Test case added. Skipping attempt to unescape empty authority part. See: libwww-perl#102
The previous fix checked the result of the regex-match. However, the regex-match could have avoided the situation in the first place. The new regex now asks for a non-zero authority part. Details: libwww-perl#102
Test case added. Skipping attempt to unescape empty authority part. See: #102 The previous fix checked the result of the regex-match. However, the regex-match could have avoided the situation in the first place. The new regex now asks for a non-zero authority part. Skip IPv6 handling of schemes that do not have an authority part. Currently: data, file, ldapi, urn, sqlite, sqlite3 Fix: Fallback to pre 5.11 for specific schemes (i.e. 'mailto:'). Short test cases added for 'mailto:' URIs having address literals (IPv4 and IPv6). Modernized t/file.t to use Test::More instead of plain TAP. In preparation of more future tests. Tests added to show that domain in file:// is properly escaped.
Closed via 725fbfb |
5.12 has just been released to CPAN. Thanks @firefart for raising the issue! |
5.12 2022-07-10 23:48:50Z - Fix an issue where i.e. 'file:///tmp/###' was not properly escaped. A non-existing authority part was accidentally processed. Details: libwww-perl/URI#102 (GH#102) (Perlbotics) - Reverts to previous behavior (5.10) for 'mailto:' scheme for escaping square brackets.
Upstream changes: 5.18 2023-04-29 16:08:14Z - Add a GH workflow to test LWP::Curl (GH#116) (Olaf Alders) - Add documentation examples for the host() and ihost() methods (GH#28) (Sebastian Willing) - Remove colon from username:password if there is no password (GH#31) (David E. Wheeler, Joenio Marques da Costa, Julien Fiegehenn) - Prefix private methods with _ in URI::_punycode (GH#47) (David E Wheeler) 5.17 2022-11-02 17:03:48Z - Updated RFC references in the pod documentation for URI::file (GH#117) (Håkon Hgland) - Fix SIP URI encoder/decoder (GH#118) (ryankereliuk) 5.16 2022-10-12 13:10:40Z - Merge the methods from URI::QueryParam into URI, so they are always available (GH#114) (Graham Knop) 5.15 2022-10-11 14:48:28Z - Teach uri_escape to accept a Regexp object as the characters to escape as an alternative to a character class. (GH#113) (Graham Knop) 5.14 2022-10-10 20:37:57Z - Fix uri_escape allowing \w style character classes in its character set parameter (GH#112) (Graham Knop) 5.13 2022-10-06 16:46:32Z - Regression test added for a previous bug (5.11) in URI::file (Perlbotics). file() method of URI::file can return the current working directory instead of the properly unescaped path. (GH#106) (Perlbotics) - Replace "Test" with "Test::More" (GH#107) (James Raspass) - Replace raw TAP printing with "Test::More" (GH#108) (James Raspass) - Apply perlimports to tests (GH#110) (Olaf Alders) - Improve escaping of unwanted characters (GH#78) (Branislav Zahradnk) 5.12 2022-07-10 23:48:50Z - Fix an issue where i.e. 'file:///tmp/###' was not properly escaped. A non-existing authority part was accidentally processed. Details: libwww-perl/URI#102 (GH#102) (Perlbotics) - Reverts to previous behavior (5.10) for 'mailto:' scheme for escaping square brackets. 5.11 2022-07-04 20:53:38Z - Fix some typos in URI::file (GH#94) (Olaf Alders) - Escape square brackets in path (GH#100) (Perlbotics) - Fix storable.t (GH#97) (Shoichi Kaji)
When installing
HTML::FormatExternal
the latest 5.11 version leads to errors during build. If I downgrade to 5.10 it works again.Here is some example output
Logs
As the
HTML::FormatExternal
package seems pretty outdated I just wanted to create an issue here too just in case this is some introduced bug in this library.Cross reference:
https://rt.cpan.org/Ticket/Display.html?id=143689
The text was updated successfully, but these errors were encountered: