Skip to content

Conversation

@eddierubeiz
Copy link

The url config string allows you to specify a URL where solr_wrapper can find the SOLR zip file.

In the current code, this config string is used not just to download the zip file, but also to guess the name of the topmost directory inside the zip file (e.g. solr-1.2.3). If the guess is wrong, the extraction process fails.

Instead of trying to guess the name of the topmost directory based on config.download_url, just peek inside the zip file after extracting it. This means solr_wrapper can now download the SOLR code from an arbitrary URL.

In practice, this is useful with URLs generated on the fly at download time, such as pre-signed S3 urls.

@eddierubeiz eddierubeiz force-pushed the allow_download_from_arbitrary_url branch from 7e6c52f to 57cff79 Compare October 4, 2018 14:51
@eddierubeiz
Copy link
Author

Note: I'm pretty sure the travis failure is unrelated; see also #120 ; the tests fail in the same place.

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 this pull request may close these issues.

2 participants