lrichards-etsy opened a new issue, #827:
URL: https://github.com/apache/polaris/issues/827

   ### Describe the bug
   
   I'm trying to register a table from an old catalog into Polaris, but when I 
set up the Polaris catalog with the needed allowed-locations I get permission 
errors saying can't access the pathway of the old catalog.
   
   
   
   ### To Reproduce
   
   I created a new Polaris Catalog (polaris_catalog) and set its default 
location to be `gs://newCatalog` and also set allowed-locations to be 
`gs://oldCatalog`. When I go to get the info for this catalog I can see both of 
those pathways showing up in allowedLocations section.
   
   I then try and run
   ```CALL polaris_catalog.system.register_table(
             table => 'new_namespace.migrated_table',
             metadata_file => 
'gs://oldCatalog/old_namespace/table/metadata/00001-763bca99-363b-4d94-a6c7-221c8c691a8a.metadata.json'
           )
   ```
   
   
   
   ### Actual Behavior
   
   It throws an error saying `org.apache.iceberg.exceptions.ForbiddenException: 
Forbidden: Invalid locations '[gs://oldCatalog/old_namespace/table]' for 
identifier 'new_namespace.migrated_table': gs://oldCatalog/old_namespace/table 
is not in the list of allowed locations: [gs://newCatalog/new_namespace]`
   
   ### Expected Behavior
   
   A successful register_table run
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to