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
Bugfix for issue#102 -- "5.11 breaks HTML::FormatExternal" #103
Conversation
Test case added. Skipping attempt to unescape empty authority part. See: libwww-perl#102
Hi Olaf (@oalders), seems that an entry is missing in |
That can be done manually so feel free to add the entry. 😀 |
Thank you, Olaf (@oalders). Changes updated and pushed. |
t/file.t
Outdated
@@ -63,3 +63,13 @@ for my $t (@tests) { | |||
print "ok $testno\n"; | |||
$testno++; | |||
} | |||
|
|||
|
|||
{ #-- https://github.com/libwww-perl/URI/issues/102 -- "5.11 breaks HTML::FormatExternal" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could also be
Regression test for #102.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be added, that I was able to validate this test on Linux only.
It can be added to the generic test data structure in the beginning of t/file.t
if the results for Windows and MacOs have been verified.
Thanks, @oalders.
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
Currently: data, file, ldapi, urn, sqlite, sqlite3
Short test cases added for 'mailto:' URIs having address literals (IPv4 and IPv6).
Hi Olaf (@oalders), I identified schemes that do not have an authority part and thus do not need a special treatment The second patch (84176ec) is more important. 'mailto:' has a complex format that needs special treatment. Please consider to publish the corrections or to revert to 5.10 since the current bug ( Update: regression tests in |
No obvious harm done. Test cases will be extended later.
In preparation of more future tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @Perlbotics! Just a few stylistic changes requested. Thank you for being thorough with the added tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Nice work, thank you.
Thanks for being a good sport through all of these iterations @Perlbotics! I've merged this manually into Closes #102. |
Thank you Olaf (@oalders), Julien (@simbabque), and Graham (@haarg) for your patience and support. BTW: If you want to improve test coverage, try to run everything once more with something like: Thanks. |
Congratulations! 🎊 I'm glad it was a positive experience.
We can do this in the GitHub workflow, which is at https://github.com/libwww-perl/URI/blob/master/.github/workflows/dzil-build-and-test.yml Maybe add a job which |
@Perlbotics if you need help with this, give us a shout. I'm happy to explain how these actions work. :) |
Test case added.
Skipping attempt to unescape empty authority part.
See: #102