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

B1G Harvest: exclude .zip files from harvest #3

Open
ewlarson opened this issue Mar 21, 2018 · 1 comment
Open

B1G Harvest: exclude .zip files from harvest #3

ewlarson opened this issue Mar 21, 2018 · 1 comment

Comments

@ewlarson
Copy link
Member

Some local thumbnail solr field data points to .zip files:

[4607b35a-0b2e-498a-869f-677e84538a21] [remote_content_type] application/zip
[4607b35a-0b2e-498a-869f-677e84538a21] [viewer_protocol] map
[4607b35a-0b2e-498a-869f-677e84538a21] [image_url] http://data.pgc.umn.edu/maps/antarctica/navoceano/09/geo/Bellingshausen%20Sea.zip
[4607b35a-0b2e-498a-869f-677e84538a21] [gblsi_thumbnail_uri] http://data.pgc.umn.edu/maps/antarctica/navoceano/09/geo/Bellingshausen%20Sea.zip
[4607b35a-0b2e-498a-869f-677e84538a21] [service_url] 
[4607b35a-0b2e-498a-869f-677e84538a21] [image_extension] .zip
[4607b35a-0b2e-498a-869f-677e84538a21] [exception] #<ActiveRecord::RecordInvalid: Validation failed: Image You are not allowed to upload "zip" files, allowed types: jpg, jpeg, gif, png>

Bypass these requests, since they won't produce a valid thumb to upload.

@ewlarson
Copy link
Member Author

Really appears to be all thumbs collected from "http://data.pgc.umn.edu"

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

No branches or pull requests

1 participant