GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [MPOM-282] Create correct SHA512 content · Issue #340 · apache/maven-apache-parent

[MPOM-282] Create correct SHA512 content #340

New issue
Copy link
New issue
Copy link
Open
Open
[MPOM-282] Create correct SHA512 content#340
Copy link
Labels
enhancementNew feature or request

Description

@jira-importer
jira-importer
opened on Oct 13, 2019
Issue body actions

Karl Heinz Marbaise opened MPOM-282 and commented

Currently the created SHA512 which is used for the distribution area contains only the checksum but not the filename which results in bad output if the checksums being checked via command line tool:

$ shasum -c apache-maven-3.2.5-bin.tar.gz.sha512
$ shasum: apache-maven-3.2.5-bin.tar.gz.sha512: no properly formatted SHA checksum lines found

The checksum should be enhanced to support that correctly.


Issue Links:

  • MPOM-244 Deploy SHA-512 for source-release to Remote Repository

  • MNGSITE-378 Maven 3.6.2 incomplete sha512 checksum files

1 votes, 8 watchers

Activity

  1. jira-importer commented on Oct 15, 2019

    @jira-importer
    jira-importer
    on Oct 15, 2019
    Author
    More actions

    Michael Osipov commented

    I concur to change this. Because this will deviate from the general habit we provide checksum files. They contain the checksum only. There is no canoncial checksum file format.

  2. jira-importer commented on Oct 3, 2020

    @jira-importer
    jira-importer
    on Oct 3, 2020
    Author
    More actions

    Michael Osipov commented

    Can we close this? There is no canonical checksum output format.

  3. jira-importer commented on Sep 19, 2021

    @jira-importer
    jira-importer
    on Sep 19, 2021
    Author
    More actions

    Michael Osipov commented

    Yet another ping...

  4. jira-importer commented on Oct 20, 2021

    @jira-importer
    jira-importer
    on Oct 20, 2021
    Author
    More actions

    Konrad Windszus commented

    ASF requires raw hashes: https://www.apache.org/info/verification.html#CheckingHashes

  5. jira-importer commented on Oct 22, 2021

    @jira-importer
    jira-importer
    on Oct 22, 2021
    Author
    More actions

    Christopher Tubbs commented

    Konrad Windszus - The page you linked is an informational page, a "HOW TO" guide, not policy. Even if it were ASF policy, nothing in that page describes any kind of file format requirement, as far as I can tell. If you believe otherwise, please cite the specific line.

  6. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Michael Osipov commented

    The linked paragraph by Konrad Windszus, contains a lot of non-sense since checksum and hash are used interchangeably which is wrong. All of the checksums we provide are solely for the consumption of Resolver to detect bitrot. Nothing else.

    Tamas Cservenak

  7. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Michael Osipov commented

    I am quite certain that this will not change.

  8. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Tamas Cservenak commented

    Agreed, please do not mix the two: md5/sha1 is used by resolver ONLY to eliminate transport corruption (bitrot). While SHA1 (and MD5) are deprecated in cryptography, this is not cryptography, just data integrity (and even today many Linux/Unix use MD5 for same purpose). Also, see https://en.wikipedia.org/wiki/SHA-1 the "Data integrity" section.

  9. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Tamas Cservenak commented

    Hm, after rereading original issue: "the created SHA512 which is used for the distribution area" – is it maybe us misinterpreting this? As it is not resolver that creates "checksum for the distribution area", is it? If it is, it is wrong. If it is not, what does it create it?

  10. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Tamas Cservenak commented

    And one more thing: re checksum content, there are (to me at least) 3 "formats" known:

    • resolver style checksum (just checksum in file)
    • GNU style checksum filename
    • BSD style alg(filename) = checksum

    Resolver can READ all 3 types of checksum styles, but WRITES only the first type.

  11. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Christopher Tubbs commented

    I'm not sure if this issue is about the resolver, or about files produced by some plugin for the release distribution area. In any case, I do think it would make sense if anywhere these files were created, they wrote in a format that included the filename, so it can be more easily verified with standard tooling. It does no harm to include the filename, and makes it easier for anybody, regardless of context to use a checksum file they encounter to verify the file it accompanies.

  12. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Michael Osipov commented

    If this is going to change it should happen ASF wide, not just us. It is part of the Maven Apache Parent.

  13. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Michael Osipov commented

    http://checksum-maven-plugin.nicoulaj.net/ is used.

  14. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Christopher Tubbs commented

    If we're talking about the files generated by the plugin in MPOM, and not the resolver stuff, then here's the related upstream ticket I filed awhile back: nicoulaj/checksum-maven-plugin#127

  15. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Michael Osipov commented

    Christopher Tubbs, correct. Back then people requested Resolver to do that and I refused because I consider those to be an implemenation detail of Resolver. Therefore, this approach has been used. Obviously, we need to make a difference for ALL Maven-based plugins in ASF. I think should be moved to MPOM.

  16. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Christopher Tubbs commented

    There's also a related discussion on #40 for MPOM, but the conversation moved because a lot of it was out of scope of MPOM...

  17. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Michael Osipov commented

    Reopening since it should be fixed for all of us.

  18. jira-importer commented on Jan 6, 2022

    @jira-importer
    jira-importer
    on Jan 6, 2022
    Author
    More actions

    Michael Osipov commented

    I guess if the format is fixed, this should be removed: <attachChecksums>true</attachChecksums>.

  19. jira-importer commented on Jan 7, 2022

    @jira-importer
    jira-importer
    on Jan 7, 2022
    Author
    More actions

    Herve Boutemy commented

    Hm, after rereading original issue: "the created SHA512 which is used for the distribution area" – is it maybe us misinterpreting this?

    +1

    there are 2 separate needs that are constantly conflated.

    I'll show 1 concrete example = the binary distribution of Maven 3.8.4 apache-maven-3.8.4-bin.zip :

    • there is the sha512 file from Apache distribution area ("Apache distribution area" is ASF specific, obviously): https://archive.apache.org/dist/maven/maven-3/3.8.4/binaries/
    • there is (eventually) the sha512 from Maven Central repository: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/ : you'll see we even did not publish sha512 here (because Maven core does not use the shared ASF parent POM)

    let's look at maven wagon wagon-3.5.1-source-release.zip, that uses (like most of our Maven releases) the ASF parent POM for that source-release part:

    • Apache distribution area ("Apache distribution area" is ASF specific, obviously): https://archive.apache.org/dist/maven/wagon/
    • Maven Central repository: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/3.5.1/

    Apache distribution area is free form of Apache Software Foundation, governed by ASF rules
    Maven Central repository area has a Maven2 repository format, governed by Maven code + repository managers and other build/dependency tools reuse + Maven Central reuse

    In the past, both asked for SHA1 = the start of thinking that both checksums files were forced to be the same
    When Apache Software Foundation started to require sha512 but not Maven2 repository format, we started to see the mix

    then when I read the issue title "create correct SHA512 content", it all summarises the lack of clarity we discovered in 2019 when working on MPOM-244: "correct" for which rules?
    Because at least, ASF and Maven share the SHA-512 algorithm value: now, what should be the format of the .sha512 file in each case is another question (it is expected to be used by who? with which tool? mvn? shasum? other?)

  20. jira-importer commented on Jan 7, 2022

    @jira-importer
    jira-importer
    on Jan 7, 2022
    Author
    More actions

    Herve Boutemy commented

    INFRA-22540 is another pass at that same root cause issue, this time seen as ASF's Nexus Repository staging rules level (repository.apache.org) to check file existence, but not on file format (which is implicitely meant as "format for Maven2 repository format on checksums")

  21. jira-importer commented on Jan 7, 2022

    @jira-importer
    jira-importer
    on Jan 7, 2022
    Author
    More actions

    Michael Osipov commented

    Herve Boutemy, thanks for the analysis. I fully agree, we need to clearly separate the purpose of those files. As discussed with Tamas Cservenak, we need to get in touch with update to update a lot of resources on apache.org because they is a lot of contradicting information which causes this type of confusion.

  22. jira-importer commented on Apr 21, 2024

    @jira-importer
    jira-importer
    on Apr 21, 2024 · Hidden as outdated
    Author
    show commentMore actions
  23. slachiewicz
    removed
    priority:minorMinor loss of function, or other problem where easy workaround is present
    on Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.