Skip to content

[DomCrawler] Fixed a forgotten case of complex XPath queries #10987

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

Merged
merged 1 commit into from
May 25, 2014

Conversation

stof
Copy link
Member

@stof stof commented May 24, 2014

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #10986
License MIT
Doc PR n/a

This fixes the case I forgot when rewritting the XPath to avoid making it produce invalid queries. I ran the new tests against the old implementation first, to ensure they cover the BC properly.

I could have detected it by running the Mink 1.5 testsuite with the new code (which is the case for people reporting the bug), but I only ran it for Mink 1.6 which does not produce such XPath anymore.

@Ragazzo
Copy link

Ragazzo commented May 24, 2014

@stof looks like it fixed now, thanks . Also i don see any CHANGELOG line for this issue, you dont include it in CHANGELOG since it is minor version or what ?

@stof
Copy link
Member Author

stof commented May 24, 2014

@Ragazzo for bug fixes in minor versions, the changelog is updated automatically by Fabien when doing a release.

@Ragazzo
Copy link

Ragazzo commented May 24, 2014

ok, i see you dont include names of developers who fixed and found those bugs and issue number, can be hard to track it down for changes .

@stof
Copy link
Member Author

stof commented May 24, 2014

the automatic changelog includes it: https://github.com/symfony/symfony/blob/master/CHANGELOG-2.3.md (well, it includes the github username of the guy fixing the issue, not the name)

@Ragazzo
Copy link

Ragazzo commented May 24, 2014

ah , i see , thank you for clarifying this one . Overall fix is valid , i confirm it .

@fabpot
Copy link
Member

fabpot commented May 25, 2014

Thank you @stof for taking care of this regression.

@fabpot fabpot merged commit a9de61e into symfony:2.3 May 25, 2014
fabpot added a commit that referenced this pull request May 25, 2014
…es (stof)

This PR was merged into the 2.3 branch.

Discussion
----------

[DomCrawler] Fixed a forgotten case of complex XPath queries

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #10986
| License       | MIT
| Doc PR        | n/a

This fixes the case I forgot when rewritting the XPath to avoid making it produce invalid queries. I ran the new tests against the old implementation first, to ensure they cover the BC properly.

I could have detected it by running the Mink 1.5 testsuite with the new code (which is the case for people reporting the bug), but I only ran it for Mink 1.6 which does not produce such XPath anymore.

Commits
-------

a9de61e [DomCrawler] Fixed a forgotten case of complex XPath queries
@Ragazzo
Copy link

Ragazzo commented May 26, 2014

@stof @fabpot can you please check that your fix is applied into dev-master for dom-crawler because i dont see this fix in dev-master and other branches. There is no row

 $expression = 'descendant-or-self::' . substr($expression, 3);

and others fixes from this PR in Crawler.php file .

@stof
Copy link
Member Author

stof commented May 26, 2014

@Ragazzo 2.3 will get merged into newer branch (it is done on a regular basis). This has not yet been done after the merge of this PR though

@stof stof deleted the domcrawler_fixes branch May 26, 2014 14:35
@Ragazzo
Copy link

Ragazzo commented May 26, 2014

ok, @stof can you say when it will be merged so we can use 2.4.6 ?

@stof
Copy link
Member Author

stof commented May 26, 2014

@Ragazzo Teh constraint I gave takes care to exclude the affected releases. If you use minimum-stability dev, you should avoid using the dev version of 2.4 until the fix is propagated to it as well (but excluding it in codeception itself is a bad idea as the dev version will be compatible again as soon as the fix is propagated).

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

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy