Commit 2ca7fc0
committed
Cover the case where an accepted clamp hides another differing param
When isReducedPageSize() accepts a reduced page size, isUnexpectedSelfLink()
re-compares the remaining parts rather than returning early, so a legitimate
clamp can't mask a genuinely wrong page/sort. Nothing defended that: dropping
the second urlPartsDiffer() call left all 22 tests green while silently
swallowing the defect.1 parent 62b0e95 commit 2ca7fc0
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
| |||
0 commit comments