Skip to content

Migration does not migrate attachments of issues on a given Gitea instance #152

Open
@Benjamin-Loison

Description

@Benjamin-Loison

Description

To migrate a Gitea repository from https://gitea.lemnoslife.com with Issues need on https://gitea.lemnoslife.com/user/settings/applications Select permissions repository and issue Read.

However, as the target issue:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAgCtPFcBBvNjWZeO1ThYoNk50f/Uyau3Am482znzMx3kw
Arz0IO+trzf6KneZoIy88aFrJ33YqSppD7fkspxuAJlZ9uUsgQG8bg129fB4XnHd
0pQBA5kTNrFh1UpYgJ1p2GnkyiMxXmVFVTxQIcuqn2XpjnhlIgRWIqioilvUPQYG
wq6blp7BtOTneEskf7iRVXjB7ReW4hpw7PP39q3tCXKwdjvycgEjuVEStD4qKYcH
yMI8kX2sxUsu+gakHZjGi40kl9zCsJ0pPXIbWKEyHvC/TWs4yYVt31qeEUoMjY2X
VXWBfVVT
=fvvL
-----END PGP MESSAGE-----

shows, the attachments are not imported, while they are important to me, in comparison the initial issue: https://gitea.lemnoslife.com/Benjamin_Loison/Repository_with_an_issue_attachment/issues/1

The attachment URL:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAruKBjTwJtyIzPUtF3lQXWqa7iG1f2JJQynN3qtXVT2ww
Fxr/OlfLQg+5pn3rbPD5pnRLEOfgOsA6Ymgb2rempvT/3FaYChZdyCfteSP8HaIj
0rIB+XutUAbivPAQ/sLG6Kqw1sn3gHhkYBKn9Fsx7zq2l3UtwdLTY2FeQUU6FjWp
2a5HJYoYbkgC5sXBZU31cWRtI091JcJDnSH/ZCYHGTfMVFqN0W35Ru98wDYFikwj
V1ZtAncpdKQB0Q51VPAUcu/CLIQcaFK3Fo8xcPaC6s7To+0A2U40IQGi2n0OXJzm
tuVJNc1VV7z+X5NOmnEGHOsoVKuojpxJ3Xyz08NLTWZKRc6V
=/t/s
-----END PGP MESSAGE-----

returns Not Found

Maybe due to URL /git/ introduction, related to Benjamin_Loison/nginx/issues/5.

Creating a repository directly on the target instance make attachment upload and rendering fine in an issue.
Migrating from the target instance itself does not have the issue. It is because the attachment id already works fine, it keeps the issue comment as it is but not specify the attachments, so works fine.

Gitea Version

Not read.

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Not read.

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions