Please no criticism on the Gitea policy here. If you have thoughts on the matter, please bring that to Gitea discussion spaces. The focus of this discussion is how to deal with this new information in a sensible way.
A significant security patch was submitted as a contribution to Gitea today. It complies with the contributions guidelines and in particular:
- it is released under the MIT license
- it complies with the Gitea DCO
- all new files begin with
// Copyright 2023 The Gitea Authors. All rights reserved.
It was blocked by Gitea Ltd. shareholders because it does not comply with a new requirement: copyright assignment. The decision was explained in the pull request by a rationale that is transcribed below for the record.
Forgejo is not the place to debate if such a policy is sensible or not, this should happen in the Gitea spaces. This conversation is meant to debate what Forgejo should do with this newly acquired information.
Until today there was a steady stream of contributions from Forgejo contributors and Codeberg users alike. Some of these contributions are not covered by copyright (typically a bug fix of a few lines or even a major refactor) and they are not impacted. But the most significant ones contain copyrighted code and it is no longer enough for the author to publish it under the MIT license for that code to be contributed to Gitea. The author is also required to assign their copyright, which they may or may not be willing to do.
Another consequence of the decision to block contributions pending a copyright assignment is that, as far as Gitea is concerned, the license under which a code is published does not matter. If someone was to make a large contribution to Forgejo under a copyleft license, it would be more difficult to contribute it to Gitea. In both cases, MIT or copyleft, the blocker will be the copyright assignment.
In other word, if there was copylefted code in Forgejo (which is currently not the case) and someone was to say : "I want to take this piece of code from Forgejo and contribute it to Gitea but I cannot because it is copyelft", the answer would now be: "well, you could not even if it was MIT because it has a copyright header that is not a Gitea copyright header and that you cannot remove, because you are not the copyright holder".
@earl-warren Is it a requirement to remove copyright notices to contribute code to Gitea?
@techknowlogick This has been explained many times already to you, and you have been warned as well in the last pull request to follow contribution guidelines. If you'd like to adhere to the contribution guidelines we'd be happy to have any contribution, however as you've shown to willfully disregard them action may need to be taken.
@earl-warren where, in the contributions guidelines, can I find the requirement to remove an existing copyright notice from a MIT licensed code?
@techknowlogick We're not asking you to remove copyright, but instead asking for copyright assignment. If each of our contributors added to the headers of the file they touched then some files could have over 1000 listings, this is clearly untenable. We don't remove copyright, for example there is places where we used code from go and kept their headers because we took that code and adhered to the license, but as you are contributing the code that's where the difference is. If you don't have the rights to do so under DCO and contribution document then that prevents us from accepting code. This is following guidance from the Linux Foundation to ensure a codebase free of any conflict.
@earl-warren I was not aware Gitea required a copyright assignment. Could you please let me know where this is explained in the contributions guidelines?
@techknowlogick For the past 7 years, Gitea has required the same policy on copyright headers; you've been told this in other PRs, and have modified your PRs to be accepted. Not adhering to it once or twice can be forgiven as an accident, however, continuing to do so, including after being warned, has to be treated as you not acting in good faith, especially in this PR for a security-related PR knowing it can't be merged as-is. Thankfully we've been working on a PR for this as well, and we were going to send it over privately once ready, so we are able to resolve this issue via a different PR without code that is tainted by copyright issues. As I've said before, we welcome all contributions as long as they adhere to the project standards, if you/Forgejo are refusing to do so that's unfortunate.
@techknowlogick blocking per comments
**Please no criticism on the Gitea policy here. If you have thoughts on the matter, please bring that to Gitea discussion spaces. The focus of this discussion is how to deal with this new information in a sensible way.**
---
A [significant security patch](https://github.com/go-gitea/gitea/pull/27455) was submitted as a contribution to Gitea today. It complies with the [contributions guidelines](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md) and in particular:
* it is released under the MIT license
* it complies with the [Gitea DCO ](https://github.com/go-gitea/gitea/blob/main/DCO)
* all new files begin with `// Copyright 2023 The Gitea Authors. All rights reserved.`
It was blocked by Gitea Ltd. shareholders because it does not comply with a new requirement: copyright assignment. The decision was explained in the pull request by a rationale that is transcribed below for the record.
**Forgejo is not the place to debate if such a policy is sensible or not, this should happen in the Gitea spaces.** This conversation is meant to debate what Forgejo should do with this newly acquired information.
Until today there was a steady stream of contributions from Forgejo contributors and Codeberg users alike. Some of these contributions are not covered by copyright (typically a bug fix of a few lines or even a major refactor) and they are not impacted. But the most significant ones contain copyrighted code and it is no longer enough for the author to publish it under the MIT license for that code to be contributed to Gitea. The author is also required to assign their copyright, which they may or may not be willing to do.
Another consequence of the decision to block contributions pending a copyright assignment is that, as far as Gitea is concerned, the license under which a code is published does not matter. If someone was to make a large contribution to Forgejo under a copyleft license, it would be more difficult to contribute it to Gitea. In both cases, MIT or copyleft, the blocker will be the copyright assignment.
In other word, if there was copylefted code in Forgejo (which is currently not the case) and someone was to say : "I want to take this piece of code from Forgejo and contribute it to Gitea but I cannot because it is copyelft", the answer would now be: "well, you could not even if it was MIT because it has a copyright header that is not a Gitea copyright header and that you cannot remove, because you are not the copyright holder".
---
> @earl-warren Is it a requirement to remove copyright notices to contribute code to Gitea?
> @techknowlogick This has been explained many times already to you, and you have been warned as well in the last pull request to follow contribution guidelines. If you'd like to adhere to the contribution guidelines we'd be happy to have any contribution, however as you've shown to willfully disregard them action may need to be taken.
> @earl-warren where, in the contributions guidelines, can I find the requirement to remove an existing copyright notice from a MIT licensed code?
> @techknowlogick We're not asking you to remove copyright, but instead asking for copyright assignment. If each of our contributors added to the headers of the file they touched then some files could have over 1000 listings, this is clearly untenable. We don't remove copyright, for example there is places where we used code from go and kept their headers because we took that code and adhered to the license, but as you are contributing the code that's where the difference is. If you don't have the rights to do so under DCO and contribution document then that prevents us from accepting code. This is following guidance from the Linux Foundation to ensure a codebase free of any conflict.
> @earl-warren I was not aware Gitea required a copyright assignment. Could you please let me know where this is explained in the contributions guidelines?
> @techknowlogick For the past 7 years, Gitea has required the same policy on copyright headers; you've been told this in other PRs, and have modified your PRs to be accepted. Not adhering to it once or twice can be forgiven as an accident, however, continuing to do so, including after being warned, has to be treated as you not acting in good faith, especially in this PR for a security-related PR knowing it can't be merged as-is. Thankfully we've been working on a PR for this as well, and we were going to send it over privately once ready, so we are able to resolve this issue via a different PR without code that is tainted by copyright issues. As I've said before, we welcome all contributions as long as they adhere to the project standards, if you/Forgejo are refusing to do so that's unfortunate.
> @techknowlogick blocking per comments