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

Cannot repeatedly publish snapshot packages to Maven package registry. #20672

Closed
LamGC opened this issue Aug 4, 2022 · 6 comments · Fixed by #20674
Closed

Cannot repeatedly publish snapshot packages to Maven package registry. #20672

LamGC opened this issue Aug 4, 2022 · 6 comments · Fixed by #20674

Comments

@LamGC
Copy link

LamGC commented Aug 4, 2022

Description

In maven, we can publish the version with the suffix "SNAPSHOT" multiple times, because the "SNAPSHOT" in the version at the time of publishing will be replaced with the timestamp at the time of publishing, which ensures that the snapshot version can be published and updated repeatedly with the same version number.

However, when I tried to publish the snapshot version repeatedly, gradle (using the publishing plug-in) prompted me that gitea returned HTTP 400. I suspected that gitea might not correctly handle the snapshot rules of Maven package registry.

I can't register an account in TryGitea ( I can't receive the activation email ), so I can't test whether this problem will occur in TryGitea.

Gitea Version

1.17.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/LamGC/2026d9db31cfaae09350d3669d3002de

Screenshots

image

Git Version

2.30.2

Operating System

Linux Debian 11

How are you running Gitea?

Docker-compose https://docs.gitea.io/zh-cn/install-with-docker-rootless/

Database

MySQL

@KN4CK3R

This comment was marked as resolved.

@KN4CK3R
Copy link
Member

KN4CK3R commented Aug 4, 2022

Fixed in #20674

@lunny lunny added this to the 1.17.1 milestone Aug 5, 2022
@LamGC
Copy link
Author

LamGC commented Aug 5, 2022

@KN4CK3R The configuration of gradle is troublesome, but I can provide you with a maven sample project. Do you still need it?

@LamGC
Copy link
Author

LamGC commented Aug 5, 2022

I used Maven to create a simple publishing example. You need to modify the corresponding content in pom.xml, and then execute ./mvnw deploy to execute the publishing operation.

shapshot-test.zip

@KN4CK3R
Copy link
Member

KN4CK3R commented Aug 5, 2022

Thank you, but I think I created a working example yesterday. Could you test the linked PR?

@LamGC
Copy link
Author

LamGC commented Aug 5, 2022

Thank you, but I think I created a working example yesterday. Could you test the linked PR?

Sorry, it took some time, but I still failed to build the repair version. Can you provide the product? I will test it as soon as possible and give you feedback.

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants