Commit 0cee243
Fix MavenPomDownloader.htmlIndexToVersioning() to handle HTML title attributes (#6745)
When parsing HTML directory listings, the method searched for "\">" to delimit the
href attribute value. This overshoots when anchor tags include additional attributes
like title="...", causing corrupted version strings such as "1.0.0/\" title=\"1.0.0"
instead of "1.0.0/". The fix changes the search to find the closing quote directly,
which correctly terminates at the href attribute boundary regardless of subsequent
attributes. Includes a test case covering this scenario.
Co-authored-by: Tim te Beek <tim@mac.home>
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 4d3b85b commit 0cee243
2 files changed
Lines changed: 37 additions & 1 deletion
File tree
- rewrite-maven/src
- main/java/org/openrewrite/maven/internal
- test/java/org/openrewrite/maven/internal
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
| 414 | + | |
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| |||
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
629 | 665 | | |
630 | 666 | | |
631 | 667 | | |
| |||
0 commit comments