Commit d18aa7b
authored
Relax ARN validation logic (#3071)
Following up on #3005, which allowed a wide range of ARN values in the validation RegEx, remove an additional explicit check for `aws-cn` being present in the ARN as a sub-string.
Update existing unit tests to process `aws-cn` ARNs as common `aws` ARNs.
Note: the old validation code does not look correct because it used to check for `aws-cn` anywhere in the ARN string, not just in its "partition" component.1 parent 6a79605 commit d18aa7b
File tree
3 files changed
+3
-47
lines changed- polaris-core/src
- main/java/org/apache/polaris/core/storage/aws
- test/java/org/apache/polaris/service/storage/aws
- runtime/service/src/test/java/org/apache/polaris/service/entity
3 files changed
+3
-47
lines changedLines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 172 | | |
177 | 173 | | |
178 | 174 | | |
Lines changed: 1 addition & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 237 | | |
256 | 238 | | |
257 | 239 | | |
| |||
598 | 580 | | |
599 | 581 | | |
600 | 582 | | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | 583 | | |
620 | 584 | | |
621 | 585 | | |
| |||
659 | 623 | | |
660 | 624 | | |
661 | 625 | | |
| 626 | + | |
662 | 627 | | |
663 | 628 | | |
664 | 629 | | |
| |||
677 | 642 | | |
678 | 643 | | |
679 | 644 | | |
680 | | - | |
681 | 645 | | |
682 | 646 | | |
683 | 647 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
| 278 | + | |
283 | 279 | | |
284 | 280 | | |
285 | 281 | | |
| |||
0 commit comments