Skip to content
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

v5.05 and may be v5.04 breaks many modules #1

Closed
Perlover opened this issue Apr 27, 2017 · 5 comments
Closed

v5.05 and may be v5.04 breaks many modules #1

Perlover opened this issue Apr 27, 2017 · 5 comments

Comments

@Perlover
Copy link

Hi,

I found 100% problem from your v5.05 version with Web::Scrapper
Same errors;

Examples:
http://www.cpantesters.org/cpan/report/78ead4ae-2664-11e7-b625-8b3bdc40f832
http://www.cpantesters.org/cpan/report/7812f82c-2664-11e7-b625-8b3bdc40f832
http://www.cpantesters.org/cpan/report/77400106-2664-11e7-b625-8b3bdc40f832

I installed v5.03 and everything was fine

And other module:
https://rt.cpan.org/Ticket/Display.html?id=121310

Please check up please as soon as and patch it!

Best regards, Perlover

kentfredric added a commit that referenced this issue Apr 28, 2017
This reverts:

- 8c6c0af
  "fix _xml_escape method name so sub-classes still work as expected"

- 647aa4a
  "RT #93431: Patch: don't needlessly escape characters in element content"

Fixes:
- RT#121310 https://rt.cpan.org/Ticket/Display.html?id=121310
- rjbs/MasonX-Resolver-WidgetFactory#1
- #1
@kentfredric
Copy link
Owner

I've published 5.06 which has the offending changes backed out until a non-breaking strategy to do the same can be found.

Thanks.

@oschwald
Copy link

I believe the Web::Scraper issue is caused by HTML::TreeBuilder::XPath's monkey patching of this module. I created a ticket there when we ran into the issue after upgrading HTML::Tree to 5.04.

@Perlover
Copy link
Author

Perlover commented Apr 28, 2017 via email

@kentfredric
Copy link
Owner

Fwiw, the breaking behaviour is still in the dev release, just in case this is a problem consumers can be expected to fix.

But I don't fully understand the issue yet, so I've just reverted the change in the stable release until then.

@oschwald
Copy link

oschwald commented Apr 28, 2017

@Perlover, I agree that the new version of HTML::Tree caused the issue, but that is because monkey patching in the way that HTML::TreeBuilder::XPath does it is extremely fragile. For instance, HTML::Tree 5.04 added _xml_escape_text, which the monkeypatch already defined.

jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Apr 29, 2017
Upstream changes:
5.06     2017-04-28
   Release by Kent Fredric

    * Revert XML escaping changes from 5.04 due to large numbers of
      broken dependents
      - RT#121310 https://rt.cpan.org/Ticket/Display.html?id=121310
      - rjbs/MasonX-Resolver-WidgetFactory#1
      - kentfredric/HTML-Tree#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants