Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 403 on creating stage without a trailing slash #9431

Closed
flaneur2020 opened this issue Dec 30, 2022 · 1 comment · Fixed by #9450
Closed

Bug: 403 on creating stage without a trailing slash #9431

flaneur2020 opened this issue Dec 30, 2022 · 1 comment · Fixed by #9450
Assignees

Comments

@flaneur2020
Copy link
Member

Summary
SQL:

CREATE STAGE tpch100_data url='oss://wubx-bj01/data/tpch100_single_gz' 
  connection = (
        ENDPOINT_URL = 'https://oss-cn-beijing-internal.aliyuncs.com'
        ACCESS_KEY_ID = '---'
        ACCESS_KEY_SECRET = '--'
  );
list @tpch100_data/; -- 403

however replace the url with 'CREATE STAGE tpch100_data url='oss://wubx-bj01/data/tpch100_single_gz/', the 403 could be fixed.

@Xuanwo
Copy link
Member

Xuanwo commented Jan 1, 2023

There are two problems here:

  • Create stage with a path not ends with / should be disallowed
  • Visiting this path should not be 403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants