[
https://issues.apache.org/jira/browse/RAT-472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18024762#comment-18024762
]
Claude Warren edited comment on RAT-472 at 10/5/25 10:12 AM:
-------------------------------------------------------------
I think I see the problem. Let's start with what RAT is looking for.
{color:#d5b778}<license {color}family{color:#6aab73}="AL"
{color}id{color:#6aab73}="AL2.0" {color}name{color:#6aab73}="Apache License
2.0"{color}{color:#d5b778}>{color}{color:#d5b778} <any
{color}id{color:#6aab73}="ALStandard"{color}{color:#d5b778}>{color}{color:#d5b778}
<text>{color}Licensed under the Apache License, Version 2.0 (the
"License"){color:#d5b778}</text>{color}{color:#d5b778} <text>{color}Licensed to
the Apache Software Foundation (ASF) under
one
or more contributor license agreements; and to You under
the
Apache License, Version 2.0.{color:#d5b778}</text>{color}{color:#d5b778}
<text>{color}http://www.apache.org/licenses/LICENSE-2.0{color:#d5b778}</text>{color}{color:#d5b778}
<text>{color}https://www.apache.org/licenses/LICENSE-2.0{color:#d5b778}</text>{color}{color:#d5b778}
<text>{color}http://www.apache.org/licenses/LICENSE-2.0.html{color:#d5b778}</text>{color}{color:#d5b778}
<text>{color}https://www.apache.org/licenses/LICENSE-2.0.html{color:#d5b778}</text>{color}{color:#d5b778}
<text>{color}http://www.apache.org/licenses/LICENSE-2.0.txt{color:#d5b778}</text>{color}{color:#d5b778}
<text>{color}https://www.apache.org/licenses/LICENSE-2.0.txt{color:#d5b778}</text>{color}{color:#d5b778}
<spdx {color}name{color:#6aab73}='Apache-2.0'
{color}{color:#d5b778}/>{color}{color:#d5b778}
</any>{color}{color:#d5b778}</license>{color}
It is looking for the text found within the text tags. But it processes that
to remove any punctuation and white space (including line breaks).
It will also accept the SPDX id.
The original Apache license:
{{[https://www.apache.org/licenses/LICENSE-2.0.txt]}} has the text
{{Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at [http://www.apache.org/licenses/LICENSE-2.0]}}
So it contains both "Licensed under the Apache License, Version 2.0 (the
"License")" as well as "http://www.apache.org/licenses/LICENSE-2.0"
The open meetings license text does not contain either phrase so RAT does not
recognise it.
The question then is who needs to change.
Rat could remove the "(the License)" from the text but then it would match any
time someone said something like: this license is derived from the Apache
License, version 2.0.
I think that open meeting should add the URL to the base license within their
license as it is part of the text specified in the original license itself.
was (Author: claudenw):
I think I see the problem. Let's start with what RAT is looking for.
{color:#d5b778}<license {color}family{color:#6aab73}="AL"
{color}id{color:#6aab73}="AL2.0" {color}name{color:#6aab73}="Apache License
2.0"{color}{color:#d5b778}>
{color}{color:#d5b778} <any
{color}id{color:#6aab73}="ALStandard"{color}{color:#d5b778}>
{color}{color:#d5b778} <text>{color}Licensed under the Apache License, Version
2.0 (the
"License"){color:#d5b778}</text>
{color}{color:#d5b778} <text>{color}Licensed to the Apache Software Foundation
(ASF) under
one
or more contributor license agreements; and to You under
the
Apache License, Version 2.0.{color:#d5b778}</text>
{color}{color:#d5b778}
<text>{color}http://www.apache.org/licenses/LICENSE-2.0{color:#d5b778}</text>
{color}{color:#d5b778}
<text>{color}https://www.apache.org/licenses/LICENSE-2.0{color:#d5b778}</text>
{color}{color:#d5b778}
<text>{color}http://www.apache.org/licenses/LICENSE-2.0.html{color:#d5b778}</text>
{color}{color:#d5b778}
<text>{color}https://www.apache.org/licenses/LICENSE-2.0.html{color:#d5b778}</text>
{color}{color:#d5b778}
<text>{color}http://www.apache.org/licenses/LICENSE-2.0.txt{color:#d5b778}</text>
{color}{color:#d5b778}
<text>{color}https://www.apache.org/licenses/LICENSE-2.0.txt{color:#d5b778}</text>
{color}{color:#d5b778} <spdx {color}name{color:#6aab73}='Apache-2.0'
{color}{color:#d5b778}/>
{color}{color:#d5b778} </any>
{color}{color:#d5b778}</license>{color}
It is looking for the text found within the text tags. But it processes that
to remove any punctuation and white space (including line breaks).
It will also accept the SPDX id.
The original Apache license:
{{[https://www.apache.org/licenses/LICENSE-2.0.txt]}} has the text
{{Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at [http://www.apache.org/licenses/LICENSE-2.0]}}
So it contains both "Licensed under the Apache License, Version 2.0 (the
"License")" as well as "http://www.apache.org/licenses/LICENSE-2.0"
The open meetings license text does not contain either phrase so RAT does not
recognise it.
The question then is who needs to change.
Rat could remove the "(the License)" from the text but then it would match any
time someone said somethlng like: this license is derived from the Apache
License, version 2.0.
Perhsoally I think that open meeting should add the URL to the base license
within their license as it is part of the text specified in the original
license itself.
> ASF license reported as non-compliant
> -------------------------------------
>
> Key: RAT-472
> URL: https://issues.apache.org/jira/browse/RAT-472
> Project: Apache Rat
> Issue Type: Bug
> Reporter: Maxim Solodovnik
> Priority: Major
> Fix For: 0.17
>
>
> I've added https://apache.org/licenses/LICENSE-2.0.txt to our project sources
> NOTE: `APPENDIX: How to apply the Apache License to your work.` was *excluded*
> as a result {{org.apache.rat:apache-rat-plugin:0.16.1:check}} reports this
> file as NON-ASF licensed :(((
--
This message was sent by Atlassian Jira
(v8.20.10#820010)