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

License is not being detected #4036

Open
carolinamarc opened this issue Dec 23, 2024 · 1 comment
Open

License is not being detected #4036

carolinamarc opened this issue Dec 23, 2024 · 1 comment
Labels

Comments

@carolinamarc
Copy link

Description

When scanning the component table-layout:4.3.0 (details below), we experience the following:
The github source is real, accessible. The path and revision tag are accurate.
Copyright found, that's OK.
But not a single item appears in the license list.
However, scanner should find the license file (see at the linked URL).

The license is unique, I haven't seen it before, it's not even in the general opensource list.
"The Clearthought Software License, Version 2.0"
But the scanner should find it as commercial/proprietary or unknown type.

How To Reproduce

git repo: https://github.com/nerro/table-layout/tree/v4.3.0/
licence [file:[] https://github.com/nerro/table-layout/blob/v4.3.0/src/main/resources/META-INF/LICENCE]

no license

System configuration

*Which version of ScanCode.io are you running? 32.2.1
*Are you running the app using Docker? yes

Expected behavior

Expect to appear license list content

@pombredanne
Copy link
Member

@carolinamarc Thanks.
Just curious: what tool did you use to image above?
398103217-25aa8786-1463-4f37-9b54-6487b7f3094c

When I scan https://raw.githubusercontent.com/nerro/table-layout/refs/tags/v4.3.0/src/main/resources/META-INF/LICENCE I get this:

headers:
    -   tool_name: scancode-toolkit
        tool_version: v32.3.0-19-ge415e18251
        options:
            input:
                - LICENCE
            --license: yes
            --license-text: yes
            --license-text-diagnostics: yes
            --yaml: '-'
        notice: |
            Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
            OR CONDITIONS OF ANY KIND, either express or implied. No content created from
            ScanCode should be considered or used as legal advice. Consult an Attorney
            for any legal advice.
            ScanCode is a free software code scanning tool from nexB Inc. and others.
            Visit https://github.com/nexB/scancode-toolkit/ for support and download.
        start_timestamp: '2024-12-23T115206.189214'
        end_timestamp: '2024-12-23T115208.469940'
        output_format_version: 4.0.0
        duration: '2.280733823776245'
        message:
        errors: []
        warnings: []
        extra_data:
            system_environment:
                operating_system: linux
                cpu_architecture: 64
                platform: Linux-6.8.0-49-generic-x86_64-with-glibc2.35
                platform_version: '#49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov  6 17:42:15
                    UTC 2'
                python_version: 3.11.8 (main, Feb 12 2024, 14:25:06) [GCC 11.4.0]
            spdx_license_list_version: '3.25'
            files_count: 1
license_detections: []
files:
    -   path: LICENCE
        type: file
        detected_license_expression:
        detected_license_expression_spdx:
        license_detections: []
        license_clues:
            -   license_expression: bsd-1-clause
                license_expression_spdx: BSD-1-Clause
                from_file: LICENCE
                start_line: 8
                end_line: 14
                matcher: 3-seq
                score: '10.92'
                matched_length: 16
                match_coverage: '11.03'
                rule_relevance: 99
                rule_identifier: bsd-1-clause_16.RULE
                rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-1-clause_16.RULE
                matched_text: |
                    I. Terms for redistribution of original source and binaries

                    Redistribution and use of unmodified source and/or binaries are
                    permitted provided that the following condition is met:

                     1. Redistributions of original source code must retain the above
                        copyright notice and license.  You are not required to redistribute
                matched_text_diagnostics: |
                    redistribution [of] [original] [source] [and] [binaries]

                    [Redistribution] [and] [use] [of] [unmodified] [source] [and]/[or] [binaries] [are]
                    permitted provided that the following [condition] [is] met:

                     1. Redistributions of [original] [source] [code] must retain the above
                        copyright notice
            -   license_expression: bsd-new
                license_expression_spdx: BSD-3-Clause
                from_file: LICENCE
                start_line: 100
                end_line: 111
                matcher: 3-seq
                score: '50.73'
                matched_length: 104
                match_coverage: '50.73'
                rule_relevance: 100
                rule_identifier: bsd-new_jcraft_2.RULE
                rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/bsd-new_jcraft_2.RULE
                matched_text: |
                    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
                    WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
                    DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR, AFFILATED BUSINESSES,
                    OR ANYONE ELSE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
                    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
                    USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
                    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
                    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
                    OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                    SUCH DAMAGE.
                matched_text_diagnostics: |
                    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
                    WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
                    DISCLAIMED.  IN NO EVENT SHALL [THE] [AUTHOR], [AFFILATED] [BUSINESSES],
                    [OR] [ANYONE] [ELSE] BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
                    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
                    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
                    USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
                    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
                    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
                    OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                    SUCH DAMAGE.
        percentage_of_license_text: '18.07'
        scan_errors: []

This is not perfect, but there is something at least. .... this is a new License
(attached for reference:
LICENCE.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants