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

fix: Add querystring to S3 signed url if it is present in the proxy request #61

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

ziafazal
Copy link
Collaborator

This PR has these changes

@@ -195,7 +195,7 @@ def author_view(self, context=None):

def student_view(self, context=None):
student_context = {
"index_page_url": self.index_page_url,
"index_page_url": urllib.parse.unquote(self.index_page_url),
Copy link
Contributor

@Danyal-Faheem Danyal-Faheem Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also pass our navigation_title links through urllib.parse.unquote as well as tagged below.

resource_link = self.storage.url(os.path.join(self.extract_folder_path, resource.get("href")))

We should change it to something like:
resource_link = urllib.parse.unquote(self.storage.url(os.path.join(self.extract_folder_path, resource.get("href"))))

Copy link
Contributor

@Danyal-Faheem Danyal-Faheem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. I just had one suggestion.

@ziafazal ziafazal merged commit 4e92c56 into master Jan 19, 2024
ziafazal added a commit that referenced this pull request May 27, 2024
…equest (#61)

* fix: Add querystring to S3 signed url if it is present in the proxy request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants