Closed naveenpaul1 closed 1 week ago
@naveenpaul1 I don't think this is a bug, please correct me if I miss-understood. We expect absolute paths, therefore, you should specify the '/' at the beginning of the path expressing the root directory.
@naveenpaul1 can I close this one?
@romayalon if /
expected at the beginning of the path then we should add this validation while creating the bucket, This will avoid missing created bucket while listing. I dont think its a good behaviour where we allow the bucket creation with invalid path and bucket listing is failing for those buckets. WDYT?
@naveenpaul1 yep I agree, we can add a validation for absolute paths on path and new_buckets_path, but we already have a bug opened for that - https://github.com/noobaa/noobaa-core/issues/8177. let's move this discussion there so we can decide on what we should restrict, like relative paths, config dir path etc
@romayalon Then I think we can close this issue and continue with 8177
Environment info
Actual behavior
But when try to list the bucket using s3 ls command bucket is not listing
bucket-test-folder-2
is missingAfter adding backslash
Expected behavior
bucket-test-folder-2
should list when customer list bucketsSteps to reproduce
create bucket with --path missing starting backslash
list buckets using
s3 ls
command.More information - Screenshots / Logs / Other output
NAPI code checking the di location and not able to access dir because of missing
/
Logs: