{"action":"created","issue":{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/69","labels_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/69/comments","events_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/69/events","html_url":"https://github.com/AtlasOfLivingAustralia/biocache-store/issues/69","id":100318022,"number":69,"title":"Image extension problem with upppercased file extensions","user":{"login":"djtfmartin","id":444897,"avatar_url":"https://avatars.githubusercontent.com/u/444897?v=3","gravatar_id":"","url":"https://api.github.com/users/djtfmartin","html_url":"https://github.com/djtfmartin","followers_url":"https://api.github.com/users/djtfmartin/followers","following_url":"https://api.github.com/users/djtfmartin/following{/other_user}","gists_url":"https://api.github.com/users/djtfmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/djtfmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djtfmartin/subscriptions","organizations_url":"https://api.github.com/users/djtfmartin/orgs","repos_url":"https://api.github.com/users/djtfmartin/repos","events_url":"https://api.github.com/users/djtfmartin/events{/privacy}","received_events_url":"https://api.github.com/users/djtfmartin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"charvolant","id":4031353,"avatar_url":"https://avatars.githubusercontent.com/u/4031353?v=3","gravatar_id":"","url":"https://api.github.com/users/charvolant","html_url":"https://github.com/charvolant","followers_url":"https://api.github.com/users/charvolant/followers","following_url":"https://api.github.com/users/charvolant/following{/other_user}","gists_url":"https://api.github.com/users/charvolant/gists{/gist_id}","starred_url":"https://api.github.com/users/charvolant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charvolant/subscriptions","organizations_url":"https://api.github.com/users/charvolant/orgs","repos_url":"https://api.github.com/users/charvolant/repos","events_url":"https://api.github.com/users/charvolant/events{/privacy}","received_events_url":"https://api.github.com/users/charvolant/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-08-11T14:01:28Z","updated_at":"2015-08-11T16:05:43Z","closed_at":null,"body":"An uppercase image file extension eg \".JPG\" causes the following exception to be thrown.\r\n\r\n```\r\n2015-08-11 15:50:34,322 ERROR: [DataLoader] - Some(null) (of class scala.Some)\r\nscala.MatchError: Some(null) (of class scala.Some)\r\n        at au.org.ala.biocache.model.Multimedia$.findMimeType(Multimedia.scala:36)\r\n        at au.org.ala.biocache.model.Multimedia$.create(Multimedia.scala:66)\r\n        at au.org.ala.biocache.load.DwCALoader$$anonfun$loadMultimedia$1.apply(DwCALoader.scala:342)\r\n        at au.org.ala.biocache.load.DwCALoader$$anonfun$loadMultimedia$1.apply(DwCALoader.scala:339)\r\n        at scala.collection.Iterator$class.foreach(Iterator.scala:727)\r\n        at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)\r\n        at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)\r\n        at scala.collection.AbstractIterable.foreach(Iterable.scala:54)\r\n        at au.org.ala.biocache.load.DwCALoader.loadMultimedia(DwCALoader.scala:339)\r\n        at au.org.ala.biocache.load.DwCALoader.loadArchive(DwCALoader.scala:263)\r\n        at au.org.ala.biocache.load.DwCALoader$$anonfun$load$1.apply(DwCALoader.scala:114)\r\n        at au.org.ala.biocache.load.DwCALoader$$anonfun$load$1.apply(DwCALoader.scala:105)\r\n        at scala.collection.immutable.List.foreach(List.scala:318)\r\n        at au.org.ala.biocache.load.DwCALoader.load(DwCALoader.scala:105)\r\n        at au.org.ala.biocache.load.Loader.load(Loader.scala:155)\r\n        at au.org.ala.biocache.load.IngestTool$.ingestResource(IngestTool.scala:101)\r\n        at au.org.ala.biocache.load.IngestTool$$anonfun$main$1.apply(IngestTool.scala:54)\r\n        at au.org.ala.biocache.load.IngestTool$$anonfun$main$1.apply(IngestTool.scala:51)\r\n        at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)\r\n        at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)\r\n        at au.org.ala.biocache.load.IngestTool$.main(IngestTool.scala:51)\r\n        at au.org.ala.biocache.cmd.CMD2$.main(CMD2.scala:126)\r\n        at au.org.ala.biocache.cmd.CMD2.main(CMD2.scala)\r\nException in thread \"main\" scala.MatchError: Some(null) (of class scala.Some)\r\n        at au.org.ala.biocache.model.Multimedia$.findMimeType(Multimedia.scala:36)\r\n        at au.org.ala.biocache.model.Multimedia$.create(Multimedia.scala:66)\r\n        at au.org.ala.biocache.load.DwCALoader$$anonfun$loadMultimedia$1.apply(DwCALoader.scala:342)\r\n        at au.org.ala.biocache.load.DwCALoader$$anonfun$loadMultimedia$1.apply(DwCALoader.scala:339)\r\n        at scala.collection.Iterator$class.foreach(Iterator.scala:727)\r\n        at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)\r\n        at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)\r\n        at scala.collection.AbstractIterable.foreach(Iterable.scala:54)\r\n        at au.org.ala.biocache.load.DwCALoader.loadMultimedia(DwCALoader.scala:339)\r\n        at au.org.ala.biocache.load.DwCALoader.loadArchive(DwCALoader.scala:263)\r\n        at au.org.ala.biocache.load.DwCALoader$$anonfun$load$1.apply(DwCALoader.scala:114)\r\n        at au.org.ala.biocache.load.DwCALoader$$anonfun$load$1.apply(DwCALoader.scala:105)\r\n        at scala.collection.immutable.List.foreach(List.scala:318)\r\n        at au.org.ala.biocache.load.DwCALoader.load(DwCALoader.scala:105)\r\n        at au.org.ala.biocache.load.Loader.load(Loader.scala:155)\r\n        at au.org.ala.biocache.load.IngestTool$.ingestResource(IngestTool.scala:101)\r\n        at au.org.ala.biocache.load.IngestTool$$anonfun$main$1.apply(IngestTool.scala:54)\r\n        at au.org.ala.biocache.load.IngestTool$$anonfun$main$1.apply(IngestTool.scala:51)\r\n        at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)\r\n        at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)\r\n        at au.org.ala.biocache.load.IngestTool$.main(IngestTool.scala:51)\r\n        at au.org.ala.biocache.cmd.CMD2$.main(CMD2.scala:126)\r\n        at au.org.ala.biocache.cmd.CMD2.main(CMD2.scala)\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/comments/129949491","html_url":"https://github.com/AtlasOfLivingAustralia/biocache-store/issues/69#issuecomment-129949491","issue_url":"https://api.github.com/repos/AtlasOfLivingAustralia/biocache-store/issues/69","id":129949491,"user":{"login":"jholetschek","id":11058397,"avatar_url":"https://avatars.githubusercontent.com/u/11058397?v=3","gravatar_id":"","url":"https://api.github.com/users/jholetschek","html_url":"https://github.com/jholetschek","followers_url":"https://api.github.com/users/jholetschek/followers","following_url":"https://api.github.com/users/jholetschek/following{/other_user}","gists_url":"https://api.github.com/users/jholetschek/gists{/gist_id}","starred_url":"https://api.github.com/users/jholetschek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jholetschek/subscriptions","organizations_url":"https://api.github.com/users/jholetschek/orgs","repos_url":"https://api.github.com/users/jholetschek/repos","events_url":"https://api.github.com/users/jholetschek/events{/privacy}","received_events_url":"https://api.github.com/users/jholetschek/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T16:05:43Z","updated_at":"2015-08-11T16:05:43Z","body":"The problems seems to occure also with lower case extensions, e.g. http://media.bgbm.org/erez/erez?cmd=get&src=specimentool/Animals/Birds/Corvus_corax_corax_2015-01-18_whk_DE_Berlin_1879.jpg"}}