[
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:16 AM:
-------------------------------------------------------------
I think I see the problem. Let's start with what RAT is looking for.
{{ }}
<license family="AL" id="AL2.0" name="Apache License 2.0">
{{<any id="ALStandard">}}
{{<text>Licensed under the Apache License, Version 2.0 (the}}
{{"License")</text>}}
{{<text>Licensed to the Apache Software Foundation (ASF) under}}
{{one}}
{{or more contributor license agreements; and to You under}}
{{the}}
{{Apache License, Version 2.0.</text>}}
{{<text>[http://www.apache.org/licenses/LICENSE-2.0]</text>}}
{{<text>[https://www.apache.org/licenses/LICENSE-2.0]</text>}}
{{<text>[http://www.apache.org/licenses/LICENSE-2.0.html]</text>}}
{{<text>[https://www.apache.org/licenses/LICENSE-2.0.html]</text>}}
{{<text>[http://www.apache.org/licenses/LICENSE-2.0.txt]</text>}}
{{<text>[https://www.apache.org/licenses/LICENSE-2.0.txt]</text>}}
{{<spdx name='Apache-2.0' />}}
{{</any>}}
{{</license>}}
{{ }}
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.
{{ }}
{{<license family="AL" id="AL2.0" name="Apache License 2.0"> }}
{{<any id="ALStandard">}}
{{<text>Licensed under the Apache License, Version 2.0 (the}}
{{"License")</text>}}
{{<text>Licensed to the Apache Software Foundation (ASF) under}}
{{one}}
{{or more contributor license agreements; and to You under}}
{{the}}
{{Apache License, Version 2.0.</text>}}
{{<text>http://www.apache.org/licenses/LICENSE-2.0</text>}}
{{<text>https://www.apache.org/licenses/LICENSE-2.0</text>}}
{{<text>http://www.apache.org/licenses/LICENSE-2.0.html</text>}}
{{<text>https://www.apache.org/licenses/LICENSE-2.0.html</text>}}
{{<text>http://www.apache.org/licenses/LICENSE-2.0.txt</text>}}
{{<text>https://www.apache.org/licenses/LICENSE-2.0.txt</text>}}
{{<spdx name='Apache-2.0' />}}
{{</any>}}
{{</license>}}
{{ }}
{{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.}}
{{ }}
{{ }}
{{ }}
{{ }}
> 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)