dwsmith1983 opened a new issue, #7732:
URL: https://github.com/apache/datafusion-comet/issues/7732

   ### Describe the bug
   
   Found while working on #7559. The fix for #7559 redacts the locations Comet 
prints in its own native Iceberg errors, but a location with userinfo still 
reaches iceberg-rust unchanged. iceberg-rust's OpenDAL storage takes the bucket 
from the URL host and then checks that the path starts with 
`{scheme}://{bucket}/`. A location like `s3://alice:SECRET@bucket/t/f.parquet` 
never passes that check, so the read always fails, and the error (`Invalid s3 
url: {path}, should start with ...`) prints the whole location, password 
included. GCS and OSS locations behave the same way.
   
   ### Steps to reproduce
   
   Read an Iceberg table through the native scan where the metadata, data or 
delete file location is `s3://alice:SECRET@bucket/...`. The task fails with 
`Invalid s3 url: s3://alice:SECRET@bucket/..., should start with s3://bucket/`.
   
   ### Expected behavior
   
   Comet rejects a non-ABFS location that carries userinfo before handing it to 
iceberg-rust, with a message that shows the location through 
`redacted_url_display`. No setup that works today changes, since iceberg-rust 
cannot read such a location anyway. ABFS keeps its username, which names the 
container.
   
   ### Additional context
   
   The check would go where the FileIO is built from the table location 
(`iceberg_common.rs`) and where task file paths are parsed 
(`parse_file_scan_tasks_from_common` in `planner.rs`). The iceberg-rust side is 
apache/iceberg-rust#3746.
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to