Nexus does not download .pbf files - Sonatype Nexus Repository - Sonatype Community
Nexus does not download .pbf files
post by maureliosilverio on Dec 10, 2023
Marcos Aurelio
maureliosilverio
Hi, everyone.
I created a raw repository in Nexus to proxy https://download.geofabrik.de/ to my internal network. This website is used to download OpenStreetMap files. The problem is when I try to download .pbf files from this site, I get an “ERR_INVALID_RESPONSE” message, but if I try to download some other extension, like .bz2 files, it works.
Nexus version: 3.56.0-01 OSS
Repo name: openstreetmap
Repo format: Raw
Repo type: proxy
Online: Yes
Content-disposition: Attachment
Example 01:
Original URL:
https://download.geofabrik.de/africa/algeria-latest.osm.bz2
Repo URL:
http://mynexus.local/repository/openstreetmap/africa/algeria-latest.osm.bz2 ← works fine
Example 02:
Original URL:
https://download.geofabrik.de/africa/algeria-latest.osm.pbf
Repo URL:
http://mynexus.local/repository/openstreetmap/africa/algeria-latest.osm.pbf ← doesn’t work: invalid response
Any ideas?
Thanks!
post by mpiggott on Dec 11, 2023
Matthew Piggott
mpiggott
Hi Marcos,
If you haven’t take a look at the configuration for the repository and disable Strict Content Type Validation. Its possible the library used for content type validation identifies the pbf extension as being associated with a different type.
post by maureliosilverio on Dec 11, 2023
Marcos Aurelio
maureliosilverio
Hi, Matthew.
I followed your suggestion and it works!!
Thank you very much!