sonatype-nexus-community / nexus-repository-apt

A Nexus Repository 3 plugin that allows usage of apt repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect format of Date field in Release file

dodizzle opened this issue · comments

  • What are you trying to do?

Install debian package from nexus with hosted apt repo.

  • What feature or behavior is this required for?

In order to fetch debian packages that have been uploaded to a hosted apt repo.

  • How could we solve this issue? (Not knowing is okay!)

According to this document https://wiki.debian.org/DebianRepository/Format#Date.2C_Valid-Until
The format of the Date field in the Release file needs to be in UTC format.
Currently it is in GMT format.
The error I receive when attempting to fetch a package from the hosted apt repo is " Unknown date format Bad header data".

From my Release file:

"Date: Fri, 25 Jan 2019 21:17:42 GMT"

  • Anything else?
    I am not fluent in java but after looking at the source code I believe this file will need to be edited to set the date format to UTC.

https://github.com/sonatype-nexus-community/nexus-repository-apt/blob/master/src/main/java/net/staticsnow/nexus/repository/apt/internal/hosted/AptHostedFacet.java