[go: up one dir, main page]

Skip to content

License detection detects incorrect license, can't be changed after that

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

When committing a LICENSE and a LICENSE-3RD-PARTY.md file together in the same commit, GitLab detects one of the licenses from LICENSE-3RD-PARTY.md as project license and displays it as such. Even after deleting the LICENSE-3RD-PARTY.md, the detected license stays intact.

Steps to reproduce

  1. Create a new repository
  2. Create the files listed below with the content listed below, add them and commit them in the same commit (works both locally and with the Web IDE)
  3. (Optional): Delete LICENSE-3RD-PARTY.md again and commit the change in a new commit

LICENSE

MIT License

Copyright (c) 2022–2023 Jakob Moser

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

LICENSE-3RD-PARTY.md

# Used third party content

## Material Icons

-   Files: `schwalbe/static/lib/material-icons-*`
    -   URL: https://github.com/google/material-design-icons
    -   Author: Google
    -   License: [Apache License 2.0](https://github.com/google/material-design-icons/blob/master/LICENSE)
-   File: `schwalbe/static/lib/material-icons-*/css/material-icons.css`
    -   Derived (with modifications) from URL: https://developers.google.com/fonts/docs/material_icons?hl=en#setup_method_2_self_hosting
    -   Author: Google
    -   License: [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
-   File: `schwalbe/static/img/favicon_poll_green.svg`
    -   Derived (with modifications) from icon "poll", URL: https://fonts.google.com/icons?selected=Material%20Icons%3Apoll%3A
    -   Author: Google
    -   License: [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)

Example Project

https://gitlab.com/license-test/other-license-test7

What is the current bug behavior?

  • The project home page shows "Apache License 2.0" as project license

What is the expected correct behavior?

  • The project homepage should show "MIT License" as project license

Relevant logs and/or screenshots

grafik

grafik

Output of checks

This bug happens on GitLab.com

Edited by 🤖 GitLab Bot 🤖