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

Download with redirect #2692

Merged
merged 4 commits into from
Mar 21, 2024
Merged

Download with redirect #2692

merged 4 commits into from
Mar 21, 2024

Conversation

asolntsev
Copy link
Member

No description provided.

…Content-Disposition")

Currently, it fails for HTTPGET method.
…redirect (without header "Content-Disposition")

Fixed for HTTPGET method: now we detect URL of a last redirect, and extract filename from this URL.
@asolntsev asolntsev linked an issue Mar 21, 2024 that may be closed by this pull request
@asolntsev asolntsev self-assigned this Mar 21, 2024
@asolntsev asolntsev added this to the 7.2.2 milestone Mar 21, 2024
* avoid using FilenameUtils.getExtension() because it throws "IllegalArgumentException: NTFS ADS separator (':') in file name is forbidden" - we don't need this check. Some of our tests do have filenames with forbidden characters.
* instead, extract file extension with a simple regex.
Copy link

sonarcloud bot commented Mar 21, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@asolntsev asolntsev merged commit be375d0 into main Mar 21, 2024
12 of 13 checks passed
@asolntsev asolntsev deleted the fix/2690-download-with-redirect branch March 21, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

$.download() cannot detect file name in case of redirect
1 participant