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

Misbehavior with shortened URLs #93

Open
StuporHero opened this issue Nov 15, 2019 · 1 comment
Open

Misbehavior with shortened URLs #93

StuporHero opened this issue Nov 15, 2019 · 1 comment
Assignees

Comments

@StuporHero
Copy link

The latest version of the Internet Explorer driver uses shortened google URLs (e.g. https://goo.gl/AtHQuv). From the browser, the file downloads with the name IEDriverServer_x64_3.14.0.zip, but this plugin is naming the downloaded file AtHQuv which is causing it to fail to identify the type of archive it is trying to extract leading to the following error in the Maven output:

No enum constant com.lazerycode.selenium.extract.DownloadableFileType.

I inspected the response with curl, and the server is responding with a 302 redirect, so you have to account for the redirect to get the right file name. Here is an explanation of how to do that.

@Ardesco Ardesco self-assigned this Nov 15, 2019
@Ardesco
Copy link
Owner

Ardesco commented Nov 15, 2019

In general the libraries used to do this could probably be swapped out for something much newer and more reliable. As a temporary workaround you can put the resoled URL in your RepositoryMap.xml.

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

No branches or pull requests

2 participants