You are viewing a plain text version of this content. The canonical link for it is here.
Posted to legal-discuss@apache.org by "John D. Ament" <jo...@apache.org> on 2017/01/03 11:45:19 UTC
Inclusion of .class files within a Apache Source Release
Hi,
While looking at [1] and looking at a proposed Apache OpenWebBeans [2] it
was discovered that .class files were contained in the source release. It
seems in the past that image files were generally considered OK in source
releases, since they typically had to do with building websites, the
traceability of the image was easy to discover.
.class files are the compiled output from .java source files (as well as
.groovy and other JVM languages, depending on how you compile). Since they
are compiled output, it seems they shouldn't be in a source release.
However, the only true policy I could find that it violated was that we
require appropriate licensing [3] and there is no way to verify the
licensing of these files.
So I'm wondering 1. is that accurate? and 2. is there an acceptable way to
verify that the license is correct?
[1]: http://www.apache.org/dev/release.html#what-must-every-release-contain
[2]:
https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66df8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
[3]: http://www.apache.org/dev/release-publishing.html#valid
Re: Inclusion of .class files within a Apache Source Release
Posted by sebb <se...@gmail.com>.
The class file is binary test data that is created by compiling a Java file.
So why not name the file with an appropriate extension, e.g. .dat or .bin
This would make it clear that it is a binary file which does not have
an embedded AL header as well as preventing it from being used as a
Java object file.
On 4 January 2017 at 15:55, Mark Struberg <st...@yahoo.de.invalid> wrote:
> What if we just add the original Java file with License and JavaDoc explaining the details in a NON-source folder like src/test/deployables. PLUS keeping the class file (compiled from this Java file via java) in SVN as well?
>
> -> reproducible
> -> no need for javac, ant etc
> -> no legal beef
>
> We could ofc compile that java file on the fly during the build. But then we need to make care that it doesn't end up on the normal classpath, and not confusing the IDE. It should not get treated as a project source file. We could do that via embedding ant or exec javac, but all that would make the build much more complicated.
>
> wdyt?
>
> LieGrue,
> strub
>
>
>> Am 04.01.2017 um 16:45 schrieb Romain Manni-Bucau <rm...@gmail.com>:
>>
>> @Jim: for now the bytecode is a static variable in a source file. Doesn't change much but keeps the same advantages and matches all constraints of this thread in term of source and dev flow (even if ugly).
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau | Blog | Old Blog | Github | LinkedIn | JavaEE Factory
>>
>> 2017-01-04 14:33 GMT+01:00 Jim Jagielski <ji...@jagunet.com>:
>> Could you note the other solution here for completeness? Thx.
>>
>>> On Jan 4, 2017, at 1:14 AM, Mark Struberg <st...@yahoo.de.INVALID> wrote:
>>>
>>> Hi Marvin!
>>>
>>> All perfectly understandable. The point is that this class file is not even on the classpath.
>>> In the meantime we also found another solution.
>>>
>>> LieGrue,
>>> strub
>>>
>>>> Am 04.01.2017 um 04:39 schrieb Marvin Humphrey <ma...@rectangular.com>:
>>>>
>>>> On Tue, Jan 3, 2017 at 9:57 AM, Romain Manni-Bucau
>>>> <rm...@gmail.com> wrote:
>>>>
>>>>> About "no binary" vs "no compiled sources": it leads to the trust or not of
>>>>> the downloaded package which is guaranteed - between others - by the signing
>>>>> we do of the package, not by the extension (as explained it is easy to
>>>>> exploit a .png containing a .class). If you can't trust the signing of the
>>>>> source bundle then .class is the least issue you can get I fear so really
>>>>> not an issue.
>>>>
>>>>> So concretely I read this thread as "do we trust our signing". If the answer
>>>>> is no then I think we have a big problem to solve but I'm not seeing why it
>>>>> would be the case at the moment.
>>>>
>>>> Cryptographic signing is an important layer of security, but we need other
>>>> layers as well. There are a number of different attack vectors we are
>>>> concerned about with regards to avoiding the distribution of untrusted
>>>> compiled code.
>>>>
>>>> Consider the following scenarios (the first is worst):
>>>>
>>>> 1. A developer machine may be compromised.
>>>> 2. A developer may be subject to coercion by organized crime or a state agent.
>>>> 3. A developer may be malicious.
>>>>
>>>> Deliberately contributing a malicious source code patch to an open source
>>>> project and getting it past code review is probably not that hard. However,
>>>> such a contribution produces an audit trail; once the issue goes public, the
>>>> contributor will have to explain themselves. That's extremely risky
>>>> for the threat agent and a given contributor could probably pull it off
>>>> once at most.
>>>>
>>>> So, we believe that source control in conjunction with PMC review, commit
>>>> notifications, etc. is a reasonably good defense against trojan horses in the
>>>> form of source code.
>>>>
>>>> However, our defenses weaken when we allow compiled code into our products.
>>>> If a developer's machine is compromised and a malicious build tool
>>>> installed[1], then compromised object code may end up in the repository with
>>>> the contributor and the PMC none the wiser!
>>>>
>>>> Of the places that non-auditable code could show up in a project, the most
>>>> damaging would be in a compiled dependency, like a jar file, which is
>>>> eventually bundled into a library or executable. Build or test code is harder
>>>> to exploit, but still theoretically a problem. JPEGs in documentation we are
>>>> unlikely to worry over.
>>>>
>>>> From a security standpoint, the ideal is to have everything in auditable
>>>> source form. Sometimes it takes some workarounds for that to happen -- but
>>>> it's generally worthwhile.
>>>>
>>>> Marvin Humphrey
>>>>
>>>> [1] Examples of compiler attacks include XCodeGhost from fall 2015 and a
>>>> "trusting-trust" hack on the Delphi compiler in 2009.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>>>> For additional commands, e-mail: legal-discuss-help@apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>>> For additional commands, e-mail: legal-discuss-help@apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>> For additional commands, e-mail: legal-discuss-help@apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Mark Struberg <st...@yahoo.de.INVALID>.
What if we just add the original Java file with License and JavaDoc explaining the details in a NON-source folder like src/test/deployables. PLUS keeping the class file (compiled from this Java file via java) in SVN as well?
-> reproducible
-> no need for javac, ant etc
-> no legal beef
We could ofc compile that java file on the fly during the build. But then we need to make care that it doesn't end up on the normal classpath, and not confusing the IDE. It should not get treated as a project source file. We could do that via embedding ant or exec javac, but all that would make the build much more complicated.
wdyt?
LieGrue,
strub
> Am 04.01.2017 um 16:45 schrieb Romain Manni-Bucau <rm...@gmail.com>:
>
> @Jim: for now the bytecode is a static variable in a source file. Doesn't change much but keeps the same advantages and matches all constraints of this thread in term of source and dev flow (even if ugly).
>
>
> Romain Manni-Bucau
> @rmannibucau | Blog | Old Blog | Github | LinkedIn | JavaEE Factory
>
> 2017-01-04 14:33 GMT+01:00 Jim Jagielski <ji...@jagunet.com>:
> Could you note the other solution here for completeness? Thx.
>
>> On Jan 4, 2017, at 1:14 AM, Mark Struberg <st...@yahoo.de.INVALID> wrote:
>>
>> Hi Marvin!
>>
>> All perfectly understandable. The point is that this class file is not even on the classpath.
>> In the meantime we also found another solution.
>>
>> LieGrue,
>> strub
>>
>>> Am 04.01.2017 um 04:39 schrieb Marvin Humphrey <ma...@rectangular.com>:
>>>
>>> On Tue, Jan 3, 2017 at 9:57 AM, Romain Manni-Bucau
>>> <rm...@gmail.com> wrote:
>>>
>>>> About "no binary" vs "no compiled sources": it leads to the trust or not of
>>>> the downloaded package which is guaranteed - between others - by the signing
>>>> we do of the package, not by the extension (as explained it is easy to
>>>> exploit a .png containing a .class). If you can't trust the signing of the
>>>> source bundle then .class is the least issue you can get I fear so really
>>>> not an issue.
>>>
>>>> So concretely I read this thread as "do we trust our signing". If the answer
>>>> is no then I think we have a big problem to solve but I'm not seeing why it
>>>> would be the case at the moment.
>>>
>>> Cryptographic signing is an important layer of security, but we need other
>>> layers as well. There are a number of different attack vectors we are
>>> concerned about with regards to avoiding the distribution of untrusted
>>> compiled code.
>>>
>>> Consider the following scenarios (the first is worst):
>>>
>>> 1. A developer machine may be compromised.
>>> 2. A developer may be subject to coercion by organized crime or a state agent.
>>> 3. A developer may be malicious.
>>>
>>> Deliberately contributing a malicious source code patch to an open source
>>> project and getting it past code review is probably not that hard. However,
>>> such a contribution produces an audit trail; once the issue goes public, the
>>> contributor will have to explain themselves. That's extremely risky
>>> for the threat agent and a given contributor could probably pull it off
>>> once at most.
>>>
>>> So, we believe that source control in conjunction with PMC review, commit
>>> notifications, etc. is a reasonably good defense against trojan horses in the
>>> form of source code.
>>>
>>> However, our defenses weaken when we allow compiled code into our products.
>>> If a developer's machine is compromised and a malicious build tool
>>> installed[1], then compromised object code may end up in the repository with
>>> the contributor and the PMC none the wiser!
>>>
>>> Of the places that non-auditable code could show up in a project, the most
>>> damaging would be in a compiled dependency, like a jar file, which is
>>> eventually bundled into a library or executable. Build or test code is harder
>>> to exploit, but still theoretically a problem. JPEGs in documentation we are
>>> unlikely to worry over.
>>>
>>> From a security standpoint, the ideal is to have everything in auditable
>>> source form. Sometimes it takes some workarounds for that to happen -- but
>>> it's generally worthwhile.
>>>
>>> Marvin Humphrey
>>>
>>> [1] Examples of compiler attacks include XCodeGhost from fall 2015 and a
>>> "trusting-trust" hack on the Delphi compiler in 2009.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>>> For additional commands, e-mail: legal-discuss-help@apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>> For additional commands, e-mail: legal-discuss-help@apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Romain Manni-Bucau <rm...@gmail.com>.
@Jim: for now the bytecode is a static variable in a source file. Doesn't
change much but keeps the same advantages and matches all constraints of
this thread in term of source and dev flow (even if ugly).
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>
2017-01-04 14:33 GMT+01:00 Jim Jagielski <ji...@jagunet.com>:
> Could you note the other solution here for completeness? Thx.
>
> > On Jan 4, 2017, at 1:14 AM, Mark Struberg <st...@yahoo.de.INVALID>
> wrote:
> >
> > Hi Marvin!
> >
> > All perfectly understandable. The point is that this class file is not
> even on the classpath.
> > In the meantime we also found another solution.
> >
> > LieGrue,
> > strub
> >
> >> Am 04.01.2017 um 04:39 schrieb Marvin Humphrey <marvin@rectangular.com
> >:
> >>
> >> On Tue, Jan 3, 2017 at 9:57 AM, Romain Manni-Bucau
> >> <rm...@gmail.com> wrote:
> >>
> >>> About "no binary" vs "no compiled sources": it leads to the trust or
> not of
> >>> the downloaded package which is guaranteed - between others - by the
> signing
> >>> we do of the package, not by the extension (as explained it is easy to
> >>> exploit a .png containing a .class). If you can't trust the signing of
> the
> >>> source bundle then .class is the least issue you can get I fear so
> really
> >>> not an issue.
> >>
> >>> So concretely I read this thread as "do we trust our signing". If the
> answer
> >>> is no then I think we have a big problem to solve but I'm not seeing
> why it
> >>> would be the case at the moment.
> >>
> >> Cryptographic signing is an important layer of security, but we need
> other
> >> layers as well. There are a number of different attack vectors we are
> >> concerned about with regards to avoiding the distribution of untrusted
> >> compiled code.
> >>
> >> Consider the following scenarios (the first is worst):
> >>
> >> 1. A developer machine may be compromised.
> >> 2. A developer may be subject to coercion by organized crime or a state
> agent.
> >> 3. A developer may be malicious.
> >>
> >> Deliberately contributing a malicious source code patch to an open
> source
> >> project and getting it past code review is probably not that hard.
> However,
> >> such a contribution produces an audit trail; once the issue goes
> public, the
> >> contributor will have to explain themselves. That's extremely risky
> >> for the threat agent and a given contributor could probably pull it off
> >> once at most.
> >>
> >> So, we believe that source control in conjunction with PMC review,
> commit
> >> notifications, etc. is a reasonably good defense against trojan horses
> in the
> >> form of source code.
> >>
> >> However, our defenses weaken when we allow compiled code into our
> products.
> >> If a developer's machine is compromised and a malicious build tool
> >> installed[1], then compromised object code may end up in the repository
> with
> >> the contributor and the PMC none the wiser!
> >>
> >> Of the places that non-auditable code could show up in a project, the
> most
> >> damaging would be in a compiled dependency, like a jar file, which is
> >> eventually bundled into a library or executable. Build or test code is
> harder
> >> to exploit, but still theoretically a problem. JPEGs in documentation
> we are
> >> unlikely to worry over.
> >>
> >> From a security standpoint, the ideal is to have everything in auditable
> >> source form. Sometimes it takes some workarounds for that to happen --
> but
> >> it's generally worthwhile.
> >>
> >> Marvin Humphrey
> >>
> >> [1] Examples of compiler attacks include XCodeGhost from fall 2015 and a
> >> "trusting-trust" hack on the Delphi compiler in 2009.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> >> For additional commands, e-mail: legal-discuss-help@apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> > For additional commands, e-mail: legal-discuss-help@apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
>
Re: Inclusion of .class files within a Apache Source Release
Posted by Jim Jagielski <ji...@jaguNET.com>.
Could you note the other solution here for completeness? Thx.
> On Jan 4, 2017, at 1:14 AM, Mark Struberg <st...@yahoo.de.INVALID> wrote:
>
> Hi Marvin!
>
> All perfectly understandable. The point is that this class file is not even on the classpath.
> In the meantime we also found another solution.
>
> LieGrue,
> strub
>
>> Am 04.01.2017 um 04:39 schrieb Marvin Humphrey <ma...@rectangular.com>:
>>
>> On Tue, Jan 3, 2017 at 9:57 AM, Romain Manni-Bucau
>> <rm...@gmail.com> wrote:
>>
>>> About "no binary" vs "no compiled sources": it leads to the trust or not of
>>> the downloaded package which is guaranteed - between others - by the signing
>>> we do of the package, not by the extension (as explained it is easy to
>>> exploit a .png containing a .class). If you can't trust the signing of the
>>> source bundle then .class is the least issue you can get I fear so really
>>> not an issue.
>>
>>> So concretely I read this thread as "do we trust our signing". If the answer
>>> is no then I think we have a big problem to solve but I'm not seeing why it
>>> would be the case at the moment.
>>
>> Cryptographic signing is an important layer of security, but we need other
>> layers as well. There are a number of different attack vectors we are
>> concerned about with regards to avoiding the distribution of untrusted
>> compiled code.
>>
>> Consider the following scenarios (the first is worst):
>>
>> 1. A developer machine may be compromised.
>> 2. A developer may be subject to coercion by organized crime or a state agent.
>> 3. A developer may be malicious.
>>
>> Deliberately contributing a malicious source code patch to an open source
>> project and getting it past code review is probably not that hard. However,
>> such a contribution produces an audit trail; once the issue goes public, the
>> contributor will have to explain themselves. That's extremely risky
>> for the threat agent and a given contributor could probably pull it off
>> once at most.
>>
>> So, we believe that source control in conjunction with PMC review, commit
>> notifications, etc. is a reasonably good defense against trojan horses in the
>> form of source code.
>>
>> However, our defenses weaken when we allow compiled code into our products.
>> If a developer's machine is compromised and a malicious build tool
>> installed[1], then compromised object code may end up in the repository with
>> the contributor and the PMC none the wiser!
>>
>> Of the places that non-auditable code could show up in a project, the most
>> damaging would be in a compiled dependency, like a jar file, which is
>> eventually bundled into a library or executable. Build or test code is harder
>> to exploit, but still theoretically a problem. JPEGs in documentation we are
>> unlikely to worry over.
>>
>> From a security standpoint, the ideal is to have everything in auditable
>> source form. Sometimes it takes some workarounds for that to happen -- but
>> it's generally worthwhile.
>>
>> Marvin Humphrey
>>
>> [1] Examples of compiler attacks include XCodeGhost from fall 2015 and a
>> "trusting-trust" hack on the Delphi compiler in 2009.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>> For additional commands, e-mail: legal-discuss-help@apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Mark Struberg <st...@yahoo.de.INVALID>.
Hi Marvin!
All perfectly understandable. The point is that this class file is not even on the classpath.
In the meantime we also found another solution.
LieGrue,
strub
> Am 04.01.2017 um 04:39 schrieb Marvin Humphrey <ma...@rectangular.com>:
>
> On Tue, Jan 3, 2017 at 9:57 AM, Romain Manni-Bucau
> <rm...@gmail.com> wrote:
>
>> About "no binary" vs "no compiled sources": it leads to the trust or not of
>> the downloaded package which is guaranteed - between others - by the signing
>> we do of the package, not by the extension (as explained it is easy to
>> exploit a .png containing a .class). If you can't trust the signing of the
>> source bundle then .class is the least issue you can get I fear so really
>> not an issue.
>
>> So concretely I read this thread as "do we trust our signing". If the answer
>> is no then I think we have a big problem to solve but I'm not seeing why it
>> would be the case at the moment.
>
> Cryptographic signing is an important layer of security, but we need other
> layers as well. There are a number of different attack vectors we are
> concerned about with regards to avoiding the distribution of untrusted
> compiled code.
>
> Consider the following scenarios (the first is worst):
>
> 1. A developer machine may be compromised.
> 2. A developer may be subject to coercion by organized crime or a state agent.
> 3. A developer may be malicious.
>
> Deliberately contributing a malicious source code patch to an open source
> project and getting it past code review is probably not that hard. However,
> such a contribution produces an audit trail; once the issue goes public, the
> contributor will have to explain themselves. That's extremely risky
> for the threat agent and a given contributor could probably pull it off
> once at most.
>
> So, we believe that source control in conjunction with PMC review, commit
> notifications, etc. is a reasonably good defense against trojan horses in the
> form of source code.
>
> However, our defenses weaken when we allow compiled code into our products.
> If a developer's machine is compromised and a malicious build tool
> installed[1], then compromised object code may end up in the repository with
> the contributor and the PMC none the wiser!
>
> Of the places that non-auditable code could show up in a project, the most
> damaging would be in a compiled dependency, like a jar file, which is
> eventually bundled into a library or executable. Build or test code is harder
> to exploit, but still theoretically a problem. JPEGs in documentation we are
> unlikely to worry over.
>
> From a security standpoint, the ideal is to have everything in auditable
> source form. Sometimes it takes some workarounds for that to happen -- but
> it's generally worthwhile.
>
> Marvin Humphrey
>
> [1] Examples of compiler attacks include XCodeGhost from fall 2015 and a
> "trusting-trust" hack on the Delphi compiler in 2009.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Marvin Humphrey <ma...@rectangular.com>.
On Tue, Jan 3, 2017 at 9:57 AM, Romain Manni-Bucau
<rm...@gmail.com> wrote:
> About "no binary" vs "no compiled sources": it leads to the trust or not of
> the downloaded package which is guaranteed - between others - by the signing
> we do of the package, not by the extension (as explained it is easy to
> exploit a .png containing a .class). If you can't trust the signing of the
> source bundle then .class is the least issue you can get I fear so really
> not an issue.
> So concretely I read this thread as "do we trust our signing". If the answer
> is no then I think we have a big problem to solve but I'm not seeing why it
> would be the case at the moment.
Cryptographic signing is an important layer of security, but we need other
layers as well. There are a number of different attack vectors we are
concerned about with regards to avoiding the distribution of untrusted
compiled code.
Consider the following scenarios (the first is worst):
1. A developer machine may be compromised.
2. A developer may be subject to coercion by organized crime or a state agent.
3. A developer may be malicious.
Deliberately contributing a malicious source code patch to an open source
project and getting it past code review is probably not that hard. However,
such a contribution produces an audit trail; once the issue goes public, the
contributor will have to explain themselves. That's extremely risky
for the threat agent and a given contributor could probably pull it off
once at most.
So, we believe that source control in conjunction with PMC review, commit
notifications, etc. is a reasonably good defense against trojan horses in the
form of source code.
However, our defenses weaken when we allow compiled code into our products.
If a developer's machine is compromised and a malicious build tool
installed[1], then compromised object code may end up in the repository with
the contributor and the PMC none the wiser!
Of the places that non-auditable code could show up in a project, the most
damaging would be in a compiled dependency, like a jar file, which is
eventually bundled into a library or executable. Build or test code is harder
to exploit, but still theoretically a problem. JPEGs in documentation we are
unlikely to worry over.
From a security standpoint, the ideal is to have everything in auditable
source form. Sometimes it takes some workarounds for that to happen -- but
it's generally worthwhile.
Marvin Humphrey
[1] Examples of compiler attacks include XCodeGhost from fall 2015 and a
"trusting-trust" hack on the Delphi compiler in 2009.
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Craig Russell <pa...@gmail.com>.
Hi John,
> On Jan 3, 2017, at 1:06 PM, John D. Ament <jo...@apache.org> wrote:
>
> Craig,
>
> Its a good point. However, the inclusion of a NOTICE would imply a policy stating that the contents of non-verifiable source are documented in NOTICE.
I did not suggest using NOTICE. NOTICE is only used for legally required notices, and doesn’t apply in this case.
Probably best to modify LICENSE to describe the origin of the .class file.
This product includes .class files in test/resources/ that were compiled by JDK 1.2 from
files licensed as Apache 2.0.
Craig
>
> To me, legal-discuss is probably the right place to talk through policy changes as well. Maybe final resolution to members?
>
> John
>
> On Tue, Jan 3, 2017 at 2:15 PM Craig Russell <papajdo@gmail.com <ma...@gmail.com>> wrote:
> I do not see a legal or policy issue with this case. Putting a test file into a resource directory for distribution is perfectly ok.
>
> I’d even generalize it to say that you might imagine wanting various .class files compiled with different options, even different versions of compilers, perhaps compilers that are no longer available. And in that case, you would want to preserve the .class files even if they can no longer be created from their original source.
>
> In case this comes up in future, perhaps you could document the origin of the .class file(s) exactly the same way as you would document the origin of .gif, .jpg files that are used as test resources.
>
> Craig
>
>
> > On Jan 3, 2017, at 10:15 AM, Mark Struberg <st...@yahoo.de.INVALID> wrote:
> >
> > Btw, since all seem to agree that this is NOT a legal problem but might at worst be an ASF *policy* question I consider this topic resolved (at least on this very list).
> > It simply has nothing to do with legal, right?
> > John, please open a ticket in members@ or any other apropriate list if you still think it's needed.
> >
> > txs and LieGrue,
> > strub
> >
> >> Am 03.01.2017 um 19:07 schrieb Mark Struberg <st...@yahoo.de.INVALID>:
> >>
> >> I propose to simply rename it to .noclass and we are done ;P
> >>
> >> LieGrue,
> >> strub
> >>
> >>
> >>> Am 03.01.2017 um 18:57 schrieb Romain Manni-Bucau <rmannibucau@gmail.com <ma...@gmail.com>>:
> >>>
> >>>
> >>> 2017-01-03 18:42 GMT+01:00 Alex Harui <aharui@adobe.com <ma...@adobe.com>>:
> >>> Hi Romain,
> >>>
> >>> AIUI, it isn't a "no binary" policy, it is a "no compiled sources" policy. Distributing a compiled binary puts the responsibility of the effects of executing that code on the ASF and should scare away customers. You are taking a big chance by running the source build script if it executes that .class file if you can't verify it came from the source you said it did. Sure a customer might have a bad tool chain that compiles the sources into a bad binary, but that is not the ASF's responsibility.
> >>>
> >>>
> >>> About "no binary" vs "no compiled sources": it leads to the trust or not of the downloaded package which is guaranteed - between others - by the signing we do of the package, not by the extension (as explained it is easy to exploit a .png containing a .class). If you can't trust the signing of the source bundle then .class is the least issue you can get I fear so really not an issue.
> >>>
> >>> Also for this particular case: these .classes are in *test* resources so not used until you run tests and if you do so you likely want to have them. When I spoke of bad tool chain it was about the project itself, not the user: if you don't use that trick you need to generate classes in the build but NOT in the test-classes folder to ensure these classes are NOT in the classpath (point of having them as resources). Most of solutions would break IDE support and would make entry cost of the project high for a poor gain, that is why it got done this way. Also note that these .class are in the "wrong" folder regarding their package and are NOT classes the way they are stored. Without some actual file copy you will not load them by default even if in the classpath. So running them needs some knowledge on them which reduces again the risk.
> >>>
> >>> BTW not the first time this trick is used @asf cause it is the best compromise for such things (not breaking dev tooling).
> >>>
> >>> So concretely I read this thread as "do we trust our signing". If the answer is no then I think we have a big problem to solve but I'm not seeing why it would be the case at the moment.
> >>>
> >>>
> >>> -Alex
> >>>
> >>> From: Romain Manni-Bucau <rmannibucau@gmail.com <ma...@gmail.com>>
> >>> Reply-To: "legal-discuss@apache.org <ma...@apache.org>" <legal-discuss@apache.org <ma...@apache.org>>
> >>> Date: Tuesday, January 3, 2017 at 9:17 AM
> >>> To: "legal-discuss@apache.org <ma...@apache.org>" <legal-discuss@apache.org <ma...@apache.org>>
> >>> Subject: Re: Inclusion of .class files within a Apache Source Release
> >>>
> >>> Please don't diverge: too much
> >>>
> >>> - can we do better: probably, even if "process-test-resources life-cycle goal seems read-made for this" doesn't really help since it requires a build setup we likely don't want to ensure we have these classes only for some part of some tests and not the whole test phase. it also breaks IDE support to do it this way and reduce contributions capabilities but that's another topic....
> >>> - is it legal: yes (otherwise as mentionned all projects with binary resources would be illegal)
> >>> - is it unsecured? likely as much as generating bytecode at runtime so probably out of topic for here too. Also note that a picture (.png for instance) can be a .class and be loaded by a JVM is correctly launched so security there is not really a point IMHO.
> >>>
> >>> In summary I don't see why it makes so much noise for really an implementation detail and I'm not seeing what is the alternative proposal to not distribute ANY binary if we care about it? Do I miss an important point?
> >>>
> >>>
> >>>
> >>> Romain Manni-Bucau
> >>> @rmannibucau | Blog | Old Blog | Github | LinkedIn | JavaEE Factory
> >>>
> >>> 2017-01-03 18:05 GMT+01:00 Alex Harui <aharui@adobe.com <ma...@adobe.com>>:
> >>>
> >>>
> >>> On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID> wrote:
> >>>
> >>>> The class file in question was added by ASF member rmannibucau under ALv2
> >>>> as a >>resource<< and not as a source file.
> >>>> The original file of course has the ASF license header, but the 'class'
> >>>> resource is still checked in to our SVN as .class file.
> >>>>
> >>>> This is for testing some bytecode stuff in OpenBebBeans. We could
> >>>> probably later change this to have another project module, compile it,
> >>>> unpack it, copy it over, blablabla.
> >>>> But that doesn't change anything about the fact that this file is ALv2
> >>>> licensed. But since it's a binary it obviously does not have any ALv2
> >>>>>> SOURCE<< header.
> >>>>
> >>>> In other words: this .class file is a test resource and handled exactly
> >>>> the same like a png or jpeg file.
> >>>>
> >>>> I don't see any legal problem.
> >>>
> >>> There may not be a legal problem, but I thought the reason behind the "no
> >>> compiled code" rule/policy was about verification/auditing of the release
> >>> artifact. See Marvin Humphrey [1].
> >>>
> >>> Anybody auditing a release would scan each file for headers and find
> >>> binaries. They could examine binaries proposing to be image files and
> >>> verify that they have image file headers and are thus safe to open in an
> >>> application. But verification of the safety of executing a .class file
> >>> seems risky to me. I'm surprised to learn that some ASF projects allow it.
> >>>
> >>> -Alex
> >>>
> >>> [1]
> >>> https://mail-archives.apache.org/mod_mbox/www-legal-discuss/201606.mbox/%3c <https://mail-archives.apache.org/mod_mbox/www-legal-discuss/201606.mbox/%3c>
> >>> CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com <ma...@mail.gmail.com>%3e
> >>>
> >>>>
> >>>> LieGrue,
> >>>> strub
> >>>>
> >>>>
> >>>>> Am 03.01.2017 um 12:45 schrieb John D. Ament <johndament@apache.org <ma...@apache.org>>:
> >>>>>
> >>>>> Hi,
> >>>>>
> >>>>> While looking at [1] and looking at a proposed Apache OpenWebBeans [2]
> >>>>> it was discovered that .class files were contained in the source
> >>>>> release. It seems in the past that image files were generally
> >>>>> considered OK in source releases, since they typically had to do with
> >>>>> building websites, the traceability of the image was easy to discover.
> >>>>>
> >>>>> .class files are the compiled output from .java source files (as well
> >>>>> as .groovy and other JVM languages, depending on how you compile).
> >>>>> Since they are compiled output, it seems they shouldn't be in a source
> >>>>> release. However, the only true policy I could find that it violated
> >>>>> was that we require appropriate licensing [3] and there is no way to
> >>>>> verify the licensing of these files.
> >>>>>
> >>>>> So I'm wondering 1. is that accurate? and 2. is there an acceptable way
> >>>>> to verify that the license is correct?
> >>>>>
> >>>>> [1]:
> >>>>> http://www.apache.org/dev/release.html#what-must-every-release-contain <http://www.apache.org/dev/release.html#what-must-every-release-contain>
> >>>>> [2]:
> >>>>> https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66d <https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66d>
> >>>>> f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org <http://3cdev.openwebbeans.apache.org/>%3E
> >>>>> [3]: http://www.apache.org/dev/release-publishing.html#valid <http://www.apache.org/dev/release-publishing.html#valid>
> >>>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org <ma...@apache.org>
> >>>> For additional commands, e-mail: legal-discuss-help@apache.org <ma...@apache.org>
> >>>>
> >>>
> >>>
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org <ma...@apache.org>
> >> For additional commands, e-mail: legal-discuss-help@apache.org <ma...@apache.org>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org <ma...@apache.org>
> > For additional commands, e-mail: legal-discuss-help@apache.org <ma...@apache.org>
> >
>
> Craig Russell
> papajdo@gmail.com <ma...@gmail.com>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org <ma...@apache.org>
> For additional commands, e-mail: legal-discuss-help@apache.org <ma...@apache.org>
>
Craig Russell
papajdo@gmail.com
Re: Inclusion of .class files within a Apache Source Release
Posted by Marvin Humphrey <ma...@rectangular.com>.
On Tue, Jan 3, 2017 at 1:06 PM, John D. Ament <jo...@apache.org> wrote:
> To me, legal-discuss is probably the right place to talk through policy
> changes as well. Maybe final resolution to members?
Official Release Policy is available at
http://www.apache.org/legal/release-policy and curated by VP Legal.
legal-discuss@apache is the right forum. It's not necessary to appeal
to members@apache or board@apache.
Marvin Humphrey
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by "John D. Ament" <jo...@apache.org>.
Craig,
Its a good point. However, the inclusion of a NOTICE would imply a policy
stating that the contents of non-verifiable source are documented in NOTICE.
To me, legal-discuss is probably the right place to talk through policy
changes as well. Maybe final resolution to members?
John
On Tue, Jan 3, 2017 at 2:15 PM Craig Russell <pa...@gmail.com> wrote:
> I do not see a legal or policy issue with this case. Putting a test file
> into a resource directory for distribution is perfectly ok.
>
> I’d even generalize it to say that you might imagine wanting various
> .class files compiled with different options, even different versions of
> compilers, perhaps compilers that are no longer available. And in that
> case, you would want to preserve the .class files even if they can no
> longer be created from their original source.
>
> In case this comes up in future, perhaps you could document the origin of
> the .class file(s) exactly the same way as you would document the origin of
> .gif, .jpg files that are used as test resources.
>
> Craig
>
>
> > On Jan 3, 2017, at 10:15 AM, Mark Struberg <st...@yahoo.de.INVALID>
> wrote:
> >
> > Btw, since all seem to agree that this is NOT a legal problem but might
> at worst be an ASF *policy* question I consider this topic resolved (at
> least on this very list).
> > It simply has nothing to do with legal, right?
> > John, please open a ticket in members@ or any other apropriate list if
> you still think it's needed.
> >
> > txs and LieGrue,
> > strub
> >
> >> Am 03.01.2017 um 19:07 schrieb Mark Struberg <struberg@yahoo.de.INVALID
> >:
> >>
> >> I propose to simply rename it to .noclass and we are done ;P
> >>
> >> LieGrue,
> >> strub
> >>
> >>
> >>> Am 03.01.2017 um 18:57 schrieb Romain Manni-Bucau <
> rmannibucau@gmail.com>:
> >>>
> >>>
> >>> 2017-01-03 18:42 GMT+01:00 Alex Harui <ah...@adobe.com>:
> >>> Hi Romain,
> >>>
> >>> AIUI, it isn't a "no binary" policy, it is a "no compiled sources"
> policy. Distributing a compiled binary puts the responsibility of the
> effects of executing that code on the ASF and should scare away customers.
> You are taking a big chance by running the source build script if it
> executes that .class file if you can't verify it came from the source you
> said it did. Sure a customer might have a bad tool chain that compiles
> the sources into a bad binary, but that is not the ASF's responsibility.
> >>>
> >>>
> >>> About "no binary" vs "no compiled sources": it leads to the trust or
> not of the downloaded package which is guaranteed - between others - by the
> signing we do of the package, not by the extension (as explained it is easy
> to exploit a .png containing a .class). If you can't trust the signing of
> the source bundle then .class is the least issue you can get I fear so
> really not an issue.
> >>>
> >>> Also for this particular case: these .classes are in *test* resources
> so not used until you run tests and if you do so you likely want to have
> them. When I spoke of bad tool chain it was about the project itself, not
> the user: if you don't use that trick you need to generate classes in the
> build but NOT in the test-classes folder to ensure these classes are NOT in
> the classpath (point of having them as resources). Most of solutions would
> break IDE support and would make entry cost of the project high for a poor
> gain, that is why it got done this way. Also note that these .class are in
> the "wrong" folder regarding their package and are NOT classes the way they
> are stored. Without some actual file copy you will not load them by default
> even if in the classpath. So running them needs some knowledge on them
> which reduces again the risk.
> >>>
> >>> BTW not the first time this trick is used @asf cause it is the best
> compromise for such things (not breaking dev tooling).
> >>>
> >>> So concretely I read this thread as "do we trust our signing". If the
> answer is no then I think we have a big problem to solve but I'm not seeing
> why it would be the case at the moment.
> >>>
> >>>
> >>> -Alex
> >>>
> >>> From: Romain Manni-Bucau <rm...@gmail.com>
> >>> Reply-To: "legal-discuss@apache.org" <le...@apache.org>
> >>> Date: Tuesday, January 3, 2017 at 9:17 AM
> >>> To: "legal-discuss@apache.org" <le...@apache.org>
> >>> Subject: Re: Inclusion of .class files within a Apache Source Release
> >>>
> >>> Please don't diverge: too much
> >>>
> >>> - can we do better: probably, even if "process-test-resources
> life-cycle goal seems read-made for this" doesn't really help since it
> requires a build setup we likely don't want to ensure we have these classes
> only for some part of some tests and not the whole test phase. it also
> breaks IDE support to do it this way and reduce contributions capabilities
> but that's another topic....
> >>> - is it legal: yes (otherwise as mentionned all projects with binary
> resources would be illegal)
> >>> - is it unsecured? likely as much as generating bytecode at runtime so
> probably out of topic for here too. Also note that a picture (.png for
> instance) can be a .class and be loaded by a JVM is correctly launched so
> security there is not really a point IMHO.
> >>>
> >>> In summary I don't see why it makes so much noise for really an
> implementation detail and I'm not seeing what is the alternative proposal
> to not distribute ANY binary if we care about it? Do I miss an important
> point?
> >>>
> >>>
> >>>
> >>> Romain Manni-Bucau
> >>> @rmannibucau | Blog | Old Blog | Github | LinkedIn | JavaEE Factory
> >>>
> >>> 2017-01-03 18:05 GMT+01:00 Alex Harui <ah...@adobe.com>:
> >>>
> >>>
> >>> On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID> wrote:
> >>>
> >>>> The class file in question was added by ASF member rmannibucau under
> ALv2
> >>>> as a >>resource<< and not as a source file.
> >>>> The original file of course has the ASF license header, but the
> 'class'
> >>>> resource is still checked in to our SVN as .class file.
> >>>>
> >>>> This is for testing some bytecode stuff in OpenBebBeans. We could
> >>>> probably later change this to have another project module, compile it,
> >>>> unpack it, copy it over, blablabla.
> >>>> But that doesn't change anything about the fact that this file is ALv2
> >>>> licensed. But since it's a binary it obviously does not have any ALv2
> >>>>>> SOURCE<< header.
> >>>>
> >>>> In other words: this .class file is a test resource and handled
> exactly
> >>>> the same like a png or jpeg file.
> >>>>
> >>>> I don't see any legal problem.
> >>>
> >>> There may not be a legal problem, but I thought the reason behind the
> "no
> >>> compiled code" rule/policy was about verification/auditing of the
> release
> >>> artifact. See Marvin Humphrey [1].
> >>>
> >>> Anybody auditing a release would scan each file for headers and find
> >>> binaries. They could examine binaries proposing to be image files and
> >>> verify that they have image file headers and are thus safe to open in
> an
> >>> application. But verification of the safety of executing a .class file
> >>> seems risky to me. I'm surprised to learn that some ASF projects
> allow it.
> >>>
> >>> -Alex
> >>>
> >>> [1]
> >>>
> https://mail-archives.apache.org/mod_mbox/www-legal-discuss/201606.mbox/%3c
> >>> CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e
> >>>
> >>>>
> >>>> LieGrue,
> >>>> strub
> >>>>
> >>>>
> >>>>> Am 03.01.2017 um 12:45 schrieb John D. Ament <johndament@apache.org
> >:
> >>>>>
> >>>>> Hi,
> >>>>>
> >>>>> While looking at [1] and looking at a proposed Apache OpenWebBeans
> [2]
> >>>>> it was discovered that .class files were contained in the source
> >>>>> release. It seems in the past that image files were generally
> >>>>> considered OK in source releases, since they typically had to do with
> >>>>> building websites, the traceability of the image was easy to
> discover.
> >>>>>
> >>>>> .class files are the compiled output from .java source files (as well
> >>>>> as .groovy and other JVM languages, depending on how you compile).
> >>>>> Since they are compiled output, it seems they shouldn't be in a
> source
> >>>>> release. However, the only true policy I could find that it violated
> >>>>> was that we require appropriate licensing [3] and there is no way to
> >>>>> verify the licensing of these files.
> >>>>>
> >>>>> So I'm wondering 1. is that accurate? and 2. is there an acceptable
> way
> >>>>> to verify that the license is correct?
> >>>>>
> >>>>> [1]:
> >>>>>
> http://www.apache.org/dev/release.html#what-must-every-release-contain
> >>>>> [2]:
> >>>>>
> https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66d
> >>>>> f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
> >>>>> [3]: http://www.apache.org/dev/release-publishing.html#valid
> >>>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> >>>> For additional commands, e-mail: legal-discuss-help@apache.org
> >>>>
> >>>
> >>>
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> >> For additional commands, e-mail: legal-discuss-help@apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> > For additional commands, e-mail: legal-discuss-help@apache.org
> >
>
> Craig Russell
> papajdo@gmail.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
>
Re: Inclusion of .class files within a Apache Source Release
Posted by Craig Russell <pa...@gmail.com>.
I do not see a legal or policy issue with this case. Putting a test file into a resource directory for distribution is perfectly ok.
I’d even generalize it to say that you might imagine wanting various .class files compiled with different options, even different versions of compilers, perhaps compilers that are no longer available. And in that case, you would want to preserve the .class files even if they can no longer be created from their original source.
In case this comes up in future, perhaps you could document the origin of the .class file(s) exactly the same way as you would document the origin of .gif, .jpg files that are used as test resources.
Craig
> On Jan 3, 2017, at 10:15 AM, Mark Struberg <st...@yahoo.de.INVALID> wrote:
>
> Btw, since all seem to agree that this is NOT a legal problem but might at worst be an ASF *policy* question I consider this topic resolved (at least on this very list).
> It simply has nothing to do with legal, right?
> John, please open a ticket in members@ or any other apropriate list if you still think it's needed.
>
> txs and LieGrue,
> strub
>
>> Am 03.01.2017 um 19:07 schrieb Mark Struberg <st...@yahoo.de.INVALID>:
>>
>> I propose to simply rename it to .noclass and we are done ;P
>>
>> LieGrue,
>> strub
>>
>>
>>> Am 03.01.2017 um 18:57 schrieb Romain Manni-Bucau <rm...@gmail.com>:
>>>
>>>
>>> 2017-01-03 18:42 GMT+01:00 Alex Harui <ah...@adobe.com>:
>>> Hi Romain,
>>>
>>> AIUI, it isn't a "no binary" policy, it is a "no compiled sources" policy. Distributing a compiled binary puts the responsibility of the effects of executing that code on the ASF and should scare away customers. You are taking a big chance by running the source build script if it executes that .class file if you can't verify it came from the source you said it did. Sure a customer might have a bad tool chain that compiles the sources into a bad binary, but that is not the ASF's responsibility.
>>>
>>>
>>> About "no binary" vs "no compiled sources": it leads to the trust or not of the downloaded package which is guaranteed - between others - by the signing we do of the package, not by the extension (as explained it is easy to exploit a .png containing a .class). If you can't trust the signing of the source bundle then .class is the least issue you can get I fear so really not an issue.
>>>
>>> Also for this particular case: these .classes are in *test* resources so not used until you run tests and if you do so you likely want to have them. When I spoke of bad tool chain it was about the project itself, not the user: if you don't use that trick you need to generate classes in the build but NOT in the test-classes folder to ensure these classes are NOT in the classpath (point of having them as resources). Most of solutions would break IDE support and would make entry cost of the project high for a poor gain, that is why it got done this way. Also note that these .class are in the "wrong" folder regarding their package and are NOT classes the way they are stored. Without some actual file copy you will not load them by default even if in the classpath. So running them needs some knowledge on them which reduces again the risk.
>>>
>>> BTW not the first time this trick is used @asf cause it is the best compromise for such things (not breaking dev tooling).
>>>
>>> So concretely I read this thread as "do we trust our signing". If the answer is no then I think we have a big problem to solve but I'm not seeing why it would be the case at the moment.
>>>
>>>
>>> -Alex
>>>
>>> From: Romain Manni-Bucau <rm...@gmail.com>
>>> Reply-To: "legal-discuss@apache.org" <le...@apache.org>
>>> Date: Tuesday, January 3, 2017 at 9:17 AM
>>> To: "legal-discuss@apache.org" <le...@apache.org>
>>> Subject: Re: Inclusion of .class files within a Apache Source Release
>>>
>>> Please don't diverge: too much
>>>
>>> - can we do better: probably, even if "process-test-resources life-cycle goal seems read-made for this" doesn't really help since it requires a build setup we likely don't want to ensure we have these classes only for some part of some tests and not the whole test phase. it also breaks IDE support to do it this way and reduce contributions capabilities but that's another topic....
>>> - is it legal: yes (otherwise as mentionned all projects with binary resources would be illegal)
>>> - is it unsecured? likely as much as generating bytecode at runtime so probably out of topic for here too. Also note that a picture (.png for instance) can be a .class and be loaded by a JVM is correctly launched so security there is not really a point IMHO.
>>>
>>> In summary I don't see why it makes so much noise for really an implementation detail and I'm not seeing what is the alternative proposal to not distribute ANY binary if we care about it? Do I miss an important point?
>>>
>>>
>>>
>>> Romain Manni-Bucau
>>> @rmannibucau | Blog | Old Blog | Github | LinkedIn | JavaEE Factory
>>>
>>> 2017-01-03 18:05 GMT+01:00 Alex Harui <ah...@adobe.com>:
>>>
>>>
>>> On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID> wrote:
>>>
>>>> The class file in question was added by ASF member rmannibucau under ALv2
>>>> as a >>resource<< and not as a source file.
>>>> The original file of course has the ASF license header, but the 'class'
>>>> resource is still checked in to our SVN as .class file.
>>>>
>>>> This is for testing some bytecode stuff in OpenBebBeans. We could
>>>> probably later change this to have another project module, compile it,
>>>> unpack it, copy it over, blablabla.
>>>> But that doesn't change anything about the fact that this file is ALv2
>>>> licensed. But since it's a binary it obviously does not have any ALv2
>>>>>> SOURCE<< header.
>>>>
>>>> In other words: this .class file is a test resource and handled exactly
>>>> the same like a png or jpeg file.
>>>>
>>>> I don't see any legal problem.
>>>
>>> There may not be a legal problem, but I thought the reason behind the "no
>>> compiled code" rule/policy was about verification/auditing of the release
>>> artifact. See Marvin Humphrey [1].
>>>
>>> Anybody auditing a release would scan each file for headers and find
>>> binaries. They could examine binaries proposing to be image files and
>>> verify that they have image file headers and are thus safe to open in an
>>> application. But verification of the safety of executing a .class file
>>> seems risky to me. I'm surprised to learn that some ASF projects allow it.
>>>
>>> -Alex
>>>
>>> [1]
>>> https://mail-archives.apache.org/mod_mbox/www-legal-discuss/201606.mbox/%3c
>>> CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e
>>>
>>>>
>>>> LieGrue,
>>>> strub
>>>>
>>>>
>>>>> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>:
>>>>>
>>>>> Hi,
>>>>>
>>>>> While looking at [1] and looking at a proposed Apache OpenWebBeans [2]
>>>>> it was discovered that .class files were contained in the source
>>>>> release. It seems in the past that image files were generally
>>>>> considered OK in source releases, since they typically had to do with
>>>>> building websites, the traceability of the image was easy to discover.
>>>>>
>>>>> .class files are the compiled output from .java source files (as well
>>>>> as .groovy and other JVM languages, depending on how you compile).
>>>>> Since they are compiled output, it seems they shouldn't be in a source
>>>>> release. However, the only true policy I could find that it violated
>>>>> was that we require appropriate licensing [3] and there is no way to
>>>>> verify the licensing of these files.
>>>>>
>>>>> So I'm wondering 1. is that accurate? and 2. is there an acceptable way
>>>>> to verify that the license is correct?
>>>>>
>>>>> [1]:
>>>>> http://www.apache.org/dev/release.html#what-must-every-release-contain
>>>>> [2]:
>>>>> https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66d
>>>>> f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
>>>>> [3]: http://www.apache.org/dev/release-publishing.html#valid
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>>>> For additional commands, e-mail: legal-discuss-help@apache.org
>>>>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>> For additional commands, e-mail: legal-discuss-help@apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
Craig Russell
papajdo@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Mark Struberg <st...@yahoo.de.INVALID>.
Btw, since all seem to agree that this is NOT a legal problem but might at worst be an ASF *policy* question I consider this topic resolved (at least on this very list).
It simply has nothing to do with legal, right?
John, please open a ticket in members@ or any other apropriate list if you still think it's needed.
txs and LieGrue,
strub
> Am 03.01.2017 um 19:07 schrieb Mark Struberg <st...@yahoo.de.INVALID>:
>
> I propose to simply rename it to .noclass and we are done ;P
>
> LieGrue,
> strub
>
>
>> Am 03.01.2017 um 18:57 schrieb Romain Manni-Bucau <rm...@gmail.com>:
>>
>>
>> 2017-01-03 18:42 GMT+01:00 Alex Harui <ah...@adobe.com>:
>> Hi Romain,
>>
>> AIUI, it isn't a "no binary" policy, it is a "no compiled sources" policy. Distributing a compiled binary puts the responsibility of the effects of executing that code on the ASF and should scare away customers. You are taking a big chance by running the source build script if it executes that .class file if you can't verify it came from the source you said it did. Sure a customer might have a bad tool chain that compiles the sources into a bad binary, but that is not the ASF's responsibility.
>>
>>
>> About "no binary" vs "no compiled sources": it leads to the trust or not of the downloaded package which is guaranteed - between others - by the signing we do of the package, not by the extension (as explained it is easy to exploit a .png containing a .class). If you can't trust the signing of the source bundle then .class is the least issue you can get I fear so really not an issue.
>>
>> Also for this particular case: these .classes are in *test* resources so not used until you run tests and if you do so you likely want to have them. When I spoke of bad tool chain it was about the project itself, not the user: if you don't use that trick you need to generate classes in the build but NOT in the test-classes folder to ensure these classes are NOT in the classpath (point of having them as resources). Most of solutions would break IDE support and would make entry cost of the project high for a poor gain, that is why it got done this way. Also note that these .class are in the "wrong" folder regarding their package and are NOT classes the way they are stored. Without some actual file copy you will not load them by default even if in the classpath. So running them needs some knowledge on them which reduces again the risk.
>>
>> BTW not the first time this trick is used @asf cause it is the best compromise for such things (not breaking dev tooling).
>>
>> So concretely I read this thread as "do we trust our signing". If the answer is no then I think we have a big problem to solve but I'm not seeing why it would be the case at the moment.
>>
>>
>> -Alex
>>
>> From: Romain Manni-Bucau <rm...@gmail.com>
>> Reply-To: "legal-discuss@apache.org" <le...@apache.org>
>> Date: Tuesday, January 3, 2017 at 9:17 AM
>> To: "legal-discuss@apache.org" <le...@apache.org>
>> Subject: Re: Inclusion of .class files within a Apache Source Release
>>
>> Please don't diverge: too much
>>
>> - can we do better: probably, even if "process-test-resources life-cycle goal seems read-made for this" doesn't really help since it requires a build setup we likely don't want to ensure we have these classes only for some part of some tests and not the whole test phase. it also breaks IDE support to do it this way and reduce contributions capabilities but that's another topic....
>> - is it legal: yes (otherwise as mentionned all projects with binary resources would be illegal)
>> - is it unsecured? likely as much as generating bytecode at runtime so probably out of topic for here too. Also note that a picture (.png for instance) can be a .class and be loaded by a JVM is correctly launched so security there is not really a point IMHO.
>>
>> In summary I don't see why it makes so much noise for really an implementation detail and I'm not seeing what is the alternative proposal to not distribute ANY binary if we care about it? Do I miss an important point?
>>
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau | Blog | Old Blog | Github | LinkedIn | JavaEE Factory
>>
>> 2017-01-03 18:05 GMT+01:00 Alex Harui <ah...@adobe.com>:
>>
>>
>> On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID> wrote:
>>
>>> The class file in question was added by ASF member rmannibucau under ALv2
>>> as a >>resource<< and not as a source file.
>>> The original file of course has the ASF license header, but the 'class'
>>> resource is still checked in to our SVN as .class file.
>>>
>>> This is for testing some bytecode stuff in OpenBebBeans. We could
>>> probably later change this to have another project module, compile it,
>>> unpack it, copy it over, blablabla.
>>> But that doesn't change anything about the fact that this file is ALv2
>>> licensed. But since it's a binary it obviously does not have any ALv2
>>>>> SOURCE<< header.
>>>
>>> In other words: this .class file is a test resource and handled exactly
>>> the same like a png or jpeg file.
>>>
>>> I don't see any legal problem.
>>
>> There may not be a legal problem, but I thought the reason behind the "no
>> compiled code" rule/policy was about verification/auditing of the release
>> artifact. See Marvin Humphrey [1].
>>
>> Anybody auditing a release would scan each file for headers and find
>> binaries. They could examine binaries proposing to be image files and
>> verify that they have image file headers and are thus safe to open in an
>> application. But verification of the safety of executing a .class file
>> seems risky to me. I'm surprised to learn that some ASF projects allow it.
>>
>> -Alex
>>
>> [1]
>> https://mail-archives.apache.org/mod_mbox/www-legal-discuss/201606.mbox/%3c
>> CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e
>>
>>>
>>> LieGrue,
>>> strub
>>>
>>>
>>>> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>:
>>>>
>>>> Hi,
>>>>
>>>> While looking at [1] and looking at a proposed Apache OpenWebBeans [2]
>>>> it was discovered that .class files were contained in the source
>>>> release. It seems in the past that image files were generally
>>>> considered OK in source releases, since they typically had to do with
>>>> building websites, the traceability of the image was easy to discover.
>>>>
>>>> .class files are the compiled output from .java source files (as well
>>>> as .groovy and other JVM languages, depending on how you compile).
>>>> Since they are compiled output, it seems they shouldn't be in a source
>>>> release. However, the only true policy I could find that it violated
>>>> was that we require appropriate licensing [3] and there is no way to
>>>> verify the licensing of these files.
>>>>
>>>> So I'm wondering 1. is that accurate? and 2. is there an acceptable way
>>>> to verify that the license is correct?
>>>>
>>>> [1]:
>>>> http://www.apache.org/dev/release.html#what-must-every-release-contain
>>>> [2]:
>>>> https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66d
>>>> f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
>>>> [3]: http://www.apache.org/dev/release-publishing.html#valid
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>>> For additional commands, e-mail: legal-discuss-help@apache.org
>>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Romain Manni-Bucau <rm...@gmail.com>.
already fixed it putting the bytecode in the sources instead of files
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>
2017-01-03 19:07 GMT+01:00 Mark Struberg <st...@yahoo.de.invalid>:
> I propose to simply rename it to .noclass and we are done ;P
>
> LieGrue,
> strub
>
>
> > Am 03.01.2017 um 18:57 schrieb Romain Manni-Bucau <rmannibucau@gmail.com
> >:
> >
> >
> > 2017-01-03 18:42 GMT+01:00 Alex Harui <ah...@adobe.com>:
> > Hi Romain,
> >
> > AIUI, it isn't a "no binary" policy, it is a "no compiled sources"
> policy. Distributing a compiled binary puts the responsibility of the
> effects of executing that code on the ASF and should scare away customers.
> You are taking a big chance by running the source build script if it
> executes that .class file if you can't verify it came from the source you
> said it did. Sure a customer might have a bad tool chain that compiles
> the sources into a bad binary, but that is not the ASF's responsibility.
> >
> >
> > About "no binary" vs "no compiled sources": it leads to the trust or not
> of the downloaded package which is guaranteed - between others - by the
> signing we do of the package, not by the extension (as explained it is easy
> to exploit a .png containing a .class). If you can't trust the signing of
> the source bundle then .class is the least issue you can get I fear so
> really not an issue.
> >
> > Also for this particular case: these .classes are in *test* resources so
> not used until you run tests and if you do so you likely want to have them.
> When I spoke of bad tool chain it was about the project itself, not the
> user: if you don't use that trick you need to generate classes in the build
> but NOT in the test-classes folder to ensure these classes are NOT in the
> classpath (point of having them as resources). Most of solutions would
> break IDE support and would make entry cost of the project high for a poor
> gain, that is why it got done this way. Also note that these .class are in
> the "wrong" folder regarding their package and are NOT classes the way they
> are stored. Without some actual file copy you will not load them by default
> even if in the classpath. So running them needs some knowledge on them
> which reduces again the risk.
> >
> > BTW not the first time this trick is used @asf cause it is the best
> compromise for such things (not breaking dev tooling).
> >
> > So concretely I read this thread as "do we trust our signing". If the
> answer is no then I think we have a big problem to solve but I'm not seeing
> why it would be the case at the moment.
> >
> >
> > -Alex
> >
> > From: Romain Manni-Bucau <rm...@gmail.com>
> > Reply-To: "legal-discuss@apache.org" <le...@apache.org>
> > Date: Tuesday, January 3, 2017 at 9:17 AM
> > To: "legal-discuss@apache.org" <le...@apache.org>
> > Subject: Re: Inclusion of .class files within a Apache Source Release
> >
> > Please don't diverge: too much
> >
> > - can we do better: probably, even if "process-test-resources life-cycle
> goal seems read-made for this" doesn't really help since it requires a
> build setup we likely don't want to ensure we have these classes only for
> some part of some tests and not the whole test phase. it also breaks IDE
> support to do it this way and reduce contributions capabilities but that's
> another topic....
> > - is it legal: yes (otherwise as mentionned all projects with binary
> resources would be illegal)
> > - is it unsecured? likely as much as generating bytecode at runtime so
> probably out of topic for here too. Also note that a picture (.png for
> instance) can be a .class and be loaded by a JVM is correctly launched so
> security there is not really a point IMHO.
> >
> > In summary I don't see why it makes so much noise for really an
> implementation detail and I'm not seeing what is the alternative proposal
> to not distribute ANY binary if we care about it? Do I miss an important
> point?
> >
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau | Blog | Old Blog | Github | LinkedIn | JavaEE Factory
> >
> > 2017-01-03 18:05 GMT+01:00 Alex Harui <ah...@adobe.com>:
> >
> >
> > On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID> wrote:
> >
> > >The class file in question was added by ASF member rmannibucau under
> ALv2
> > >as a >>resource<< and not as a source file.
> > >The original file of course has the ASF license header, but the 'class'
> > >resource is still checked in to our SVN as .class file.
> > >
> > >This is for testing some bytecode stuff in OpenBebBeans. We could
> > >probably later change this to have another project module, compile it,
> > >unpack it, copy it over, blablabla.
> > >But that doesn't change anything about the fact that this file is ALv2
> > >licensed. But since it's a binary it obviously does not have any ALv2
> > >>>SOURCE<< header.
> > >
> > >In other words: this .class file is a test resource and handled exactly
> > >the same like a png or jpeg file.
> > >
> > >I don't see any legal problem.
> >
> > There may not be a legal problem, but I thought the reason behind the "no
> > compiled code" rule/policy was about verification/auditing of the release
> > artifact. See Marvin Humphrey [1].
> >
> > Anybody auditing a release would scan each file for headers and find
> > binaries. They could examine binaries proposing to be image files and
> > verify that they have image file headers and are thus safe to open in an
> > application. But verification of the safety of executing a .class file
> > seems risky to me. I'm surprised to learn that some ASF projects allow
> it.
> >
> > -Alex
> >
> > [1]
> > https://mail-archives.apache.org/mod_mbox/www-legal-
> discuss/201606.mbox/%3c
> > CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e
> >
> > >
> > >LieGrue,
> > >strub
> > >
> > >
> > >> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>:
> > >>
> > >> Hi,
> > >>
> > >> While looking at [1] and looking at a proposed Apache OpenWebBeans [2]
> > >>it was discovered that .class files were contained in the source
> > >>release. It seems in the past that image files were generally
> > >>considered OK in source releases, since they typically had to do with
> > >>building websites, the traceability of the image was easy to discover.
> > >>
> > >> .class files are the compiled output from .java source files (as well
> > >>as .groovy and other JVM languages, depending on how you compile).
> > >>Since they are compiled output, it seems they shouldn't be in a source
> > >>release. However, the only true policy I could find that it violated
> > >>was that we require appropriate licensing [3] and there is no way to
> > >>verify the licensing of these files.
> > >>
> > >> So I'm wondering 1. is that accurate? and 2. is there an acceptable
> way
> > >>to verify that the license is correct?
> > >>
> > >> [1]:
> > >>http://www.apache.org/dev/release.html#what-must-every-release-contain
> > >> [2]:
> > >>https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d4
> 85d66d
> > >>f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
> > >> [3]: http://www.apache.org/dev/release-publishing.html#valid
> > >>
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> > >For additional commands, e-mail: legal-discuss-help@apache.org
> > >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
>
Re: Inclusion of .class files within a Apache Source Release
Posted by Mark Struberg <st...@yahoo.de.INVALID>.
I propose to simply rename it to .noclass and we are done ;P
LieGrue,
strub
> Am 03.01.2017 um 18:57 schrieb Romain Manni-Bucau <rm...@gmail.com>:
>
>
> 2017-01-03 18:42 GMT+01:00 Alex Harui <ah...@adobe.com>:
> Hi Romain,
>
> AIUI, it isn't a "no binary" policy, it is a "no compiled sources" policy. Distributing a compiled binary puts the responsibility of the effects of executing that code on the ASF and should scare away customers. You are taking a big chance by running the source build script if it executes that .class file if you can't verify it came from the source you said it did. Sure a customer might have a bad tool chain that compiles the sources into a bad binary, but that is not the ASF's responsibility.
>
>
> About "no binary" vs "no compiled sources": it leads to the trust or not of the downloaded package which is guaranteed - between others - by the signing we do of the package, not by the extension (as explained it is easy to exploit a .png containing a .class). If you can't trust the signing of the source bundle then .class is the least issue you can get I fear so really not an issue.
>
> Also for this particular case: these .classes are in *test* resources so not used until you run tests and if you do so you likely want to have them. When I spoke of bad tool chain it was about the project itself, not the user: if you don't use that trick you need to generate classes in the build but NOT in the test-classes folder to ensure these classes are NOT in the classpath (point of having them as resources). Most of solutions would break IDE support and would make entry cost of the project high for a poor gain, that is why it got done this way. Also note that these .class are in the "wrong" folder regarding their package and are NOT classes the way they are stored. Without some actual file copy you will not load them by default even if in the classpath. So running them needs some knowledge on them which reduces again the risk.
>
> BTW not the first time this trick is used @asf cause it is the best compromise for such things (not breaking dev tooling).
>
> So concretely I read this thread as "do we trust our signing". If the answer is no then I think we have a big problem to solve but I'm not seeing why it would be the case at the moment.
>
>
> -Alex
>
> From: Romain Manni-Bucau <rm...@gmail.com>
> Reply-To: "legal-discuss@apache.org" <le...@apache.org>
> Date: Tuesday, January 3, 2017 at 9:17 AM
> To: "legal-discuss@apache.org" <le...@apache.org>
> Subject: Re: Inclusion of .class files within a Apache Source Release
>
> Please don't diverge: too much
>
> - can we do better: probably, even if "process-test-resources life-cycle goal seems read-made for this" doesn't really help since it requires a build setup we likely don't want to ensure we have these classes only for some part of some tests and not the whole test phase. it also breaks IDE support to do it this way and reduce contributions capabilities but that's another topic....
> - is it legal: yes (otherwise as mentionned all projects with binary resources would be illegal)
> - is it unsecured? likely as much as generating bytecode at runtime so probably out of topic for here too. Also note that a picture (.png for instance) can be a .class and be loaded by a JVM is correctly launched so security there is not really a point IMHO.
>
> In summary I don't see why it makes so much noise for really an implementation detail and I'm not seeing what is the alternative proposal to not distribute ANY binary if we care about it? Do I miss an important point?
>
>
>
> Romain Manni-Bucau
> @rmannibucau | Blog | Old Blog | Github | LinkedIn | JavaEE Factory
>
> 2017-01-03 18:05 GMT+01:00 Alex Harui <ah...@adobe.com>:
>
>
> On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID> wrote:
>
> >The class file in question was added by ASF member rmannibucau under ALv2
> >as a >>resource<< and not as a source file.
> >The original file of course has the ASF license header, but the 'class'
> >resource is still checked in to our SVN as .class file.
> >
> >This is for testing some bytecode stuff in OpenBebBeans. We could
> >probably later change this to have another project module, compile it,
> >unpack it, copy it over, blablabla.
> >But that doesn't change anything about the fact that this file is ALv2
> >licensed. But since it's a binary it obviously does not have any ALv2
> >>>SOURCE<< header.
> >
> >In other words: this .class file is a test resource and handled exactly
> >the same like a png or jpeg file.
> >
> >I don't see any legal problem.
>
> There may not be a legal problem, but I thought the reason behind the "no
> compiled code" rule/policy was about verification/auditing of the release
> artifact. See Marvin Humphrey [1].
>
> Anybody auditing a release would scan each file for headers and find
> binaries. They could examine binaries proposing to be image files and
> verify that they have image file headers and are thus safe to open in an
> application. But verification of the safety of executing a .class file
> seems risky to me. I'm surprised to learn that some ASF projects allow it.
>
> -Alex
>
> [1]
> https://mail-archives.apache.org/mod_mbox/www-legal-discuss/201606.mbox/%3c
> CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e
>
> >
> >LieGrue,
> >strub
> >
> >
> >> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>:
> >>
> >> Hi,
> >>
> >> While looking at [1] and looking at a proposed Apache OpenWebBeans [2]
> >>it was discovered that .class files were contained in the source
> >>release. It seems in the past that image files were generally
> >>considered OK in source releases, since they typically had to do with
> >>building websites, the traceability of the image was easy to discover.
> >>
> >> .class files are the compiled output from .java source files (as well
> >>as .groovy and other JVM languages, depending on how you compile).
> >>Since they are compiled output, it seems they shouldn't be in a source
> >>release. However, the only true policy I could find that it violated
> >>was that we require appropriate licensing [3] and there is no way to
> >>verify the licensing of these files.
> >>
> >> So I'm wondering 1. is that accurate? and 2. is there an acceptable way
> >>to verify that the license is correct?
> >>
> >> [1]:
> >>http://www.apache.org/dev/release.html#what-must-every-release-contain
> >> [2]:
> >>https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66d
> >>f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
> >> [3]: http://www.apache.org/dev/release-publishing.html#valid
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> >For additional commands, e-mail: legal-discuss-help@apache.org
> >
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Romain Manni-Bucau <rm...@gmail.com>.
2017-01-03 18:42 GMT+01:00 Alex Harui <ah...@adobe.com>:
> Hi Romain,
>
> AIUI, it isn't a "no binary" policy, it is a "no compiled sources"
> policy. Distributing a compiled binary puts the responsibility of the
> effects of executing that code on the ASF and should scare away customers.
> You are taking a big chance by running the source build script if it
> executes that .class file if you can't verify it came from the source you
> said it did. Sure a customer might have a bad tool chain that compiles
> the sources into a bad binary, but that is not the ASF's responsibility.
>
>
About "no binary" vs "no compiled sources": it leads to the trust or not of
the downloaded package which is guaranteed - between others - by the
signing we do of the package, not by the extension (as explained it is easy
to exploit a .png containing a .class). If you can't trust the signing of
the source bundle then .class is the least issue you can get I fear so
really not an issue.
Also for this particular case: these .classes are in *test* resources so
not used until you run tests and if you do so you likely want to have them.
When I spoke of bad tool chain it was about the project itself, not the
user: if you don't use that trick you need to generate classes in the build
but NOT in the test-classes folder to ensure these classes are NOT in the
classpath (point of having them as resources). Most of solutions would
break IDE support and would make entry cost of the project high for a poor
gain, that is why it got done this way. Also note that these .class are in
the "wrong" folder regarding their package and are NOT classes the way they
are stored. Without some actual file copy you will not load them by default
even if in the classpath. So running them needs some knowledge on them
which reduces again the risk.
BTW not the first time this trick is used @asf cause it is the best
compromise for such things (not breaking dev tooling).
So concretely I read this thread as "do we trust our signing". If the
answer is no then I think we have a big problem to solve but I'm not seeing
why it would be the case at the moment.
> -Alex
>
> From: Romain Manni-Bucau <rm...@gmail.com>
> Reply-To: "legal-discuss@apache.org" <le...@apache.org>
> Date: Tuesday, January 3, 2017 at 9:17 AM
> To: "legal-discuss@apache.org" <le...@apache.org>
> Subject: Re: Inclusion of .class files within a Apache Source Release
>
> Please don't diverge: too much
>
> - can we do better: probably, even if "process-test-resources life-cycle
> goal seems read-made for this" doesn't really help since it requires a
> build setup we likely don't want to ensure we have these classes only for
> some part of some tests and not the whole test phase. it also breaks IDE
> support to do it this way and reduce contributions capabilities but that's
> another topic....
> - is it legal: yes (otherwise as mentionned all projects with binary
> resources would be illegal)
> - is it unsecured? likely as much as generating bytecode at runtime so
> probably out of topic for here too. Also note that a picture (.png for
> instance) can be a .class and be loaded by a JVM is correctly launched so
> security there is not really a point IMHO.
>
> In summary I don't see why it makes so much noise for really an
> implementation detail and I'm not seeing what is the alternative proposal
> to not distribute ANY binary if we care about it? Do I miss an important
> point?
>
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> | Blog
> <https://blog-rmannibucau.rhcloud.com> | Old Blog
> <http://rmannibucau.wordpress.com> | Github
> <https://github.com/rmannibucau> | LinkedIn
> <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> <https://javaeefactory-rmannibucau.rhcloud.com>
>
> 2017-01-03 18:05 GMT+01:00 Alex Harui <ah...@adobe.com>:
>
>>
>>
>> On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID> wrote:
>>
>> >The class file in question was added by ASF member rmannibucau under ALv2
>> >as a >>resource<< and not as a source file.
>> >The original file of course has the ASF license header, but the 'class'
>> >resource is still checked in to our SVN as .class file.
>> >
>> >This is for testing some bytecode stuff in OpenBebBeans. We could
>> >probably later change this to have another project module, compile it,
>> >unpack it, copy it over, blablabla.
>> >But that doesn't change anything about the fact that this file is ALv2
>> >licensed. But since it's a binary it obviously does not have any ALv2
>> >>>SOURCE<< header.
>> >
>> >In other words: this .class file is a test resource and handled exactly
>> >the same like a png or jpeg file.
>> >
>> >I don't see any legal problem.
>>
>> There may not be a legal problem, but I thought the reason behind the "no
>> compiled code" rule/policy was about verification/auditing of the release
>> artifact. See Marvin Humphrey [1].
>>
>> Anybody auditing a release would scan each file for headers and find
>> binaries. They could examine binaries proposing to be image files and
>> verify that they have image file headers and are thus safe to open in an
>> application. But verification of the safety of executing a .class file
>> seems risky to me. I'm surprised to learn that some ASF projects allow
>> it.
>>
>> -Alex
>>
>> [1]
>> https://mail-archives.apache.org/mod_mbox/www-legal-discuss/
>> 201606.mbox/%3c
>> CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e
>> <https://mail-archives.apache.org/mod_mbox/www-legal-discuss/201606.mbox/%3cCAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e>
>>
>> >
>> >LieGrue,
>> >strub
>> >
>> >
>> >> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>:
>> >>
>> >> Hi,
>> >>
>> >> While looking at [1] and looking at a proposed Apache OpenWebBeans [2]
>> >>it was discovered that .class files were contained in the source
>> >>release. It seems in the past that image files were generally
>> >>considered OK in source releases, since they typically had to do with
>> >>building websites, the traceability of the image was easy to discover.
>> >>
>> >> .class files are the compiled output from .java source files (as well
>> >>as .groovy and other JVM languages, depending on how you compile).
>> >>Since they are compiled output, it seems they shouldn't be in a source
>> >>release. However, the only true policy I could find that it violated
>> >>was that we require appropriate licensing [3] and there is no way to
>> >>verify the licensing of these files.
>> >>
>> >> So I'm wondering 1. is that accurate? and 2. is there an acceptable way
>> >>to verify that the license is correct?
>> >>
>> >> [1]:
>> >>http://www.apache.org/dev/release.html#what-must-every-release-contain
>> >> [2]:
>> >>https://lists.apache.org/thread.html/869c739764d5d55d81199
>> 576d730d485d66d
>> >>f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
>> >> [3]: http://www.apache.org/dev/release-publishing.html#valid
>> >>
>> >
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>> >For additional commands, e-mail: legal-discuss-help@apache.org
>> >
>>
>>
>
Re: Inclusion of .class files within a Apache Source Release
Posted by Mark Struberg <st...@yahoo.de.INVALID>.
Again, it's not used as an executable and it will not end up in any jar!
It's just a class file which gets used inside a TEST to check ByteCode parsing.
It's really like a png or gif we use in some test. And the license is of course ALv2.
Seen this quite a few times in ASF projects...
Yes, we will rework this but it's imo no release blocker ^^
LieGrue,
strub
> Am 03.01.2017 um 18:42 schrieb Alex Harui <ah...@adobe.com>:
>
> Hi Romain,
>
> AIUI, it isn't a "no binary" policy, it is a "no compiled sources" policy. Distributing a compiled binary puts the responsibility of the effects of executing that code on the ASF and should scare away customers. You are taking a big chance by running the source build script if it executes that .class file if you can't verify it came from the source you said it did. Sure a customer might have a bad tool chain that compiles the sources into a bad binary, but that is not the ASF's responsibility.
>
> -Alex
>
> From: Romain Manni-Bucau <rm...@gmail.com>
> Reply-To: "legal-discuss@apache.org" <le...@apache.org>
> Date: Tuesday, January 3, 2017 at 9:17 AM
> To: "legal-discuss@apache.org" <le...@apache.org>
> Subject: Re: Inclusion of .class files within a Apache Source Release
>
> Please don't diverge: too much
>
> - can we do better: probably, even if "process-test-resources life-cycle goal seems read-made for this" doesn't really help since it requires a build setup we likely don't want to ensure we have these classes only for some part of some tests and not the whole test phase. it also breaks IDE support to do it this way and reduce contributions capabilities but that's another topic....
> - is it legal: yes (otherwise as mentionned all projects with binary resources would be illegal)
> - is it unsecured? likely as much as generating bytecode at runtime so probably out of topic for here too. Also note that a picture (.png for instance) can be a .class and be loaded by a JVM is correctly launched so security there is not really a point IMHO.
>
> In summary I don't see why it makes so much noise for really an implementation detail and I'm not seeing what is the alternative proposal to not distribute ANY binary if we care about it? Do I miss an important point?
>
>
>
> Romain Manni-Bucau
> @rmannibucau | Blog | Old Blog | Github | LinkedIn | JavaEE Factory
>
> 2017-01-03 18:05 GMT+01:00 Alex Harui <ah...@adobe.com>:
>>
>>
>> On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID> wrote:
>>
>> >The class file in question was added by ASF member rmannibucau under ALv2
>> >as a >>resource<< and not as a source file.
>> >The original file of course has the ASF license header, but the 'class'
>> >resource is still checked in to our SVN as .class file.
>> >
>> >This is for testing some bytecode stuff in OpenBebBeans. We could
>> >probably later change this to have another project module, compile it,
>> >unpack it, copy it over, blablabla.
>> >But that doesn't change anything about the fact that this file is ALv2
>> >licensed. But since it's a binary it obviously does not have any ALv2
>> >>>SOURCE<< header.
>> >
>> >In other words: this .class file is a test resource and handled exactly
>> >the same like a png or jpeg file.
>> >
>> >I don't see any legal problem.
>>
>> There may not be a legal problem, but I thought the reason behind the "no
>> compiled code" rule/policy was about verification/auditing of the release
>> artifact. See Marvin Humphrey [1].
>>
>> Anybody auditing a release would scan each file for headers and find
>> binaries. They could examine binaries proposing to be image files and
>> verify that they have image file headers and are thus safe to open in an
>> application. But verification of the safety of executing a .class file
>> seems risky to me. I'm surprised to learn that some ASF projects allow it.
>>
>> -Alex
>>
>> [1]
>> https://mail-archives.apache.org/mod_mbox/www-legal-discuss/201606.mbox/%3c
>> CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e
>>
>> >
>> >LieGrue,
>> >strub
>> >
>> >
>> >> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>:
>> >>
>> >> Hi,
>> >>
>> >> While looking at [1] and looking at a proposed Apache OpenWebBeans [2]
>> >>it was discovered that .class files were contained in the source
>> >>release. It seems in the past that image files were generally
>> >>considered OK in source releases, since they typically had to do with
>> >>building websites, the traceability of the image was easy to discover.
>> >>
>> >> .class files are the compiled output from .java source files (as well
>> >>as .groovy and other JVM languages, depending on how you compile).
>> >>Since they are compiled output, it seems they shouldn't be in a source
>> >>release. However, the only true policy I could find that it violated
>> >>was that we require appropriate licensing [3] and there is no way to
>> >>verify the licensing of these files.
>> >>
>> >> So I'm wondering 1. is that accurate? and 2. is there an acceptable way
>> >>to verify that the license is correct?
>> >>
>> >> [1]:
>> >>http://www.apache.org/dev/release.html#what-must-every-release-contain
>> >> [2]:
>> >>https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66d
>> >>f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
>> >> [3]: http://www.apache.org/dev/release-publishing.html#valid
>> >>
>> >
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>> >For additional commands, e-mail: legal-discuss-help@apache.org
>> >
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Alex Harui <ah...@adobe.com>.
Hi Romain,
AIUI, it isn't a "no binary" policy, it is a "no compiled sources" policy. Distributing a compiled binary puts the responsibility of the effects of executing that code on the ASF and should scare away customers. You are taking a big chance by running the source build script if it executes that .class file if you can't verify it came from the source you said it did. Sure a customer might have a bad tool chain that compiles the sources into a bad binary, but that is not the ASF's responsibility.
-Alex
From: Romain Manni-Bucau <rm...@gmail.com>>
Reply-To: "legal-discuss@apache.org<ma...@apache.org>" <le...@apache.org>>
Date: Tuesday, January 3, 2017 at 9:17 AM
To: "legal-discuss@apache.org<ma...@apache.org>" <le...@apache.org>>
Subject: Re: Inclusion of .class files within a Apache Source Release
Please don't diverge: too much
- can we do better: probably, even if "process-test-resources life-cycle goal seems read-made for this" doesn't really help since it requires a build setup we likely don't want to ensure we have these classes only for some part of some tests and not the whole test phase. it also breaks IDE support to do it this way and reduce contributions capabilities but that's another topic....
- is it legal: yes (otherwise as mentionned all projects with binary resources would be illegal)
- is it unsecured? likely as much as generating bytecode at runtime so probably out of topic for here too. Also note that a picture (.png for instance) can be a .class and be loaded by a JVM is correctly launched so security there is not really a point IMHO.
In summary I don't see why it makes so much noise for really an implementation detail and I'm not seeing what is the alternative proposal to not distribute ANY binary if we care about it? Do I miss an important point?
Romain Manni-Bucau
@rmannibucau<https://twitter.com/rmannibucau> | Blog<https://blog-rmannibucau.rhcloud.com> | Old Blog<http://rmannibucau.wordpress.com> | Github<https://github.com/rmannibucau> | LinkedIn<https://www.linkedin.com/in/rmannibucau> | JavaEE Factory<https://javaeefactory-rmannibucau.rhcloud.com>
2017-01-03 18:05 GMT+01:00 Alex Harui <ah...@adobe.com>>:
On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID>> wrote:
>The class file in question was added by ASF member rmannibucau under ALv2
>as a >>resource<< and not as a source file.
>The original file of course has the ASF license header, but the 'class'
>resource is still checked in to our SVN as .class file.
>
>This is for testing some bytecode stuff in OpenBebBeans. We could
>probably later change this to have another project module, compile it,
>unpack it, copy it over, blablabla.
>But that doesn't change anything about the fact that this file is ALv2
>licensed. But since it's a binary it obviously does not have any ALv2
>>>SOURCE<< header.
>
>In other words: this .class file is a test resource and handled exactly
>the same like a png or jpeg file.
>
>I don't see any legal problem.
There may not be a legal problem, but I thought the reason behind the "no
compiled code" rule/policy was about verification/auditing of the release
artifact. See Marvin Humphrey [1].
Anybody auditing a release would scan each file for headers and find
binaries. They could examine binaries proposing to be image files and
verify that they have image file headers and are thus safe to open in an
application. But verification of the safety of executing a .class file
seems risky to me. I'm surprised to learn that some ASF projects allow it.
-Alex
[1]
https://mail-archives.apache.org/mod_mbox/www-legal-discuss/201606.mbox/%3c
CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e
>
>LieGrue,
>strub
>
>
>> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>>:
>>
>> Hi,
>>
>> While looking at [1] and looking at a proposed Apache OpenWebBeans [2]
>>it was discovered that .class files were contained in the source
>>release. It seems in the past that image files were generally
>>considered OK in source releases, since they typically had to do with
>>building websites, the traceability of the image was easy to discover.
>>
>> .class files are the compiled output from .java source files (as well
>>as .groovy and other JVM languages, depending on how you compile).
>>Since they are compiled output, it seems they shouldn't be in a source
>>release. However, the only true policy I could find that it violated
>>was that we require appropriate licensing [3] and there is no way to
>>verify the licensing of these files.
>>
>> So I'm wondering 1. is that accurate? and 2. is there an acceptable way
>>to verify that the license is correct?
>>
>> [1]:
>>http://www.apache.org/dev/release.html#what-must-every-release-contain
>> [2]:
>>https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66d
>>f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org<http://3Cdev.openwebbeans.apache.org>%3E
>> [3]: http://www.apache.org/dev/release-publishing.html#valid
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org<ma...@apache.org>
>For additional commands, e-mail: legal-discuss-help@apache.org<ma...@apache.org>
>
Re: Inclusion of .class files within a Apache Source Release
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Please don't diverge: too much
- can we do better: probably, even if "process-test-resources life-cycle
goal seems read-made for this" doesn't really help since it requires a
build setup we likely don't want to ensure we have these classes only for
some part of some tests and not the whole test phase. it also breaks IDE
support to do it this way and reduce contributions capabilities but that's
another topic....
- is it legal: yes (otherwise as mentionned all projects with binary
resources would be illegal)
- is it unsecured? likely as much as generating bytecode at runtime so
probably out of topic for here too. Also note that a picture (.png for
instance) can be a .class and be loaded by a JVM is correctly launched so
security there is not really a point IMHO.
In summary I don't see why it makes so much noise for really an
implementation detail and I'm not seeing what is the alternative proposal
to not distribute ANY binary if we care about it? Do I miss an important
point?
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>
2017-01-03 18:05 GMT+01:00 Alex Harui <ah...@adobe.com>:
>
>
> On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID> wrote:
>
> >The class file in question was added by ASF member rmannibucau under ALv2
> >as a >>resource<< and not as a source file.
> >The original file of course has the ASF license header, but the 'class'
> >resource is still checked in to our SVN as .class file.
> >
> >This is for testing some bytecode stuff in OpenBebBeans. We could
> >probably later change this to have another project module, compile it,
> >unpack it, copy it over, blablabla.
> >But that doesn't change anything about the fact that this file is ALv2
> >licensed. But since it's a binary it obviously does not have any ALv2
> >>>SOURCE<< header.
> >
> >In other words: this .class file is a test resource and handled exactly
> >the same like a png or jpeg file.
> >
> >I don't see any legal problem.
>
> There may not be a legal problem, but I thought the reason behind the "no
> compiled code" rule/policy was about verification/auditing of the release
> artifact. See Marvin Humphrey [1].
>
> Anybody auditing a release would scan each file for headers and find
> binaries. They could examine binaries proposing to be image files and
> verify that they have image file headers and are thus safe to open in an
> application. But verification of the safety of executing a .class file
> seems risky to me. I'm surprised to learn that some ASF projects allow it.
>
> -Alex
>
> [1]
> https://mail-archives.apache.org/mod_mbox/www-legal-
> discuss/201606.mbox/%3c
> CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e
>
> >
> >LieGrue,
> >strub
> >
> >
> >> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>:
> >>
> >> Hi,
> >>
> >> While looking at [1] and looking at a proposed Apache OpenWebBeans [2]
> >>it was discovered that .class files were contained in the source
> >>release. It seems in the past that image files were generally
> >>considered OK in source releases, since they typically had to do with
> >>building websites, the traceability of the image was easy to discover.
> >>
> >> .class files are the compiled output from .java source files (as well
> >>as .groovy and other JVM languages, depending on how you compile).
> >>Since they are compiled output, it seems they shouldn't be in a source
> >>release. However, the only true policy I could find that it violated
> >>was that we require appropriate licensing [3] and there is no way to
> >>verify the licensing of these files.
> >>
> >> So I'm wondering 1. is that accurate? and 2. is there an acceptable way
> >>to verify that the license is correct?
> >>
> >> [1]:
> >>http://www.apache.org/dev/release.html#what-must-every-release-contain
> >> [2]:
> >>https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d4
> 85d66d
> >>f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
> >> [3]: http://www.apache.org/dev/release-publishing.html#valid
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> >For additional commands, e-mail: legal-discuss-help@apache.org
> >
>
>
Re: Inclusion of .class files within a Apache Source Release
Posted by Alex Harui <ah...@adobe.com>.
On 1/3/17, 3:51 AM, "Mark Struberg" <st...@yahoo.de.INVALID> wrote:
>The class file in question was added by ASF member rmannibucau under ALv2
>as a >>resource<< and not as a source file.
>The original file of course has the ASF license header, but the 'class'
>resource is still checked in to our SVN as .class file.
>
>This is for testing some bytecode stuff in OpenBebBeans. We could
>probably later change this to have another project module, compile it,
>unpack it, copy it over, blablabla.
>But that doesn't change anything about the fact that this file is ALv2
>licensed. But since it's a binary it obviously does not have any ALv2
>>>SOURCE<< header.
>
>In other words: this .class file is a test resource and handled exactly
>the same like a png or jpeg file.
>
>I don't see any legal problem.
There may not be a legal problem, but I thought the reason behind the "no
compiled code" rule/policy was about verification/auditing of the release
artifact. See Marvin Humphrey [1].
Anybody auditing a release would scan each file for headers and find
binaries. They could examine binaries proposing to be image files and
verify that they have image file headers and are thus safe to open in an
application. But verification of the safety of executing a .class file
seems risky to me. I'm surprised to learn that some ASF projects allow it.
-Alex
[1]
https://mail-archives.apache.org/mod_mbox/www-legal-discuss/201606.mbox/%3c
CAAS6=7gVXGHqeKVeFV_r1849Qpi0+Ca0jc2QWQBQfRdZnCwVpA@mail.gmail.com%3e
>
>LieGrue,
>strub
>
>
>> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>:
>>
>> Hi,
>>
>> While looking at [1] and looking at a proposed Apache OpenWebBeans [2]
>>it was discovered that .class files were contained in the source
>>release. It seems in the past that image files were generally
>>considered OK in source releases, since they typically had to do with
>>building websites, the traceability of the image was easy to discover.
>>
>> .class files are the compiled output from .java source files (as well
>>as .groovy and other JVM languages, depending on how you compile).
>>Since they are compiled output, it seems they shouldn't be in a source
>>release. However, the only true policy I could find that it violated
>>was that we require appropriate licensing [3] and there is no way to
>>verify the licensing of these files.
>>
>> So I'm wondering 1. is that accurate? and 2. is there an acceptable way
>>to verify that the license is correct?
>>
>> [1]:
>>http://www.apache.org/dev/release.html#what-must-every-release-contain
>> [2]:
>>https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66d
>>f8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
>> [3]: http://www.apache.org/dev/release-publishing.html#valid
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
>For additional commands, e-mail: legal-discuss-help@apache.org
>
Re: Inclusion of .class files within a Apache Source Release
Posted by Ted Dunning <te...@gmail.com>.
On Tue, Jan 3, 2017 at 3:51 AM, Mark Struberg <st...@yahoo.de.invalid>
wrote:
> We could probably later change this to have another project module,
> compile it, unpack it, copy it over, blablabla.
> But that doesn't change anything about the fact that this file is ALv2
> licensed. But since it's a binary it obviously does not have any ALv2
> >>SOURCE<< header.
>
If you are using maven, the process-test-resources life-cycle goal seems
read-made for this. Just check in the java sources and copy the class file
into the resources directory as part of that step.
Re: Inclusion of .class files within a Apache Source Release
Posted by Mark Thomas <ma...@apache.org>.
On 03/01/2017 11:51, Mark Struberg wrote:
> The class file in question was added by ASF member rmannibucau under ALv2 as a >>resource<< and not as a source file.
> The original file of course has the ASF license header, but the 'class' resource is still checked in to our SVN as .class file.
>
> This is for testing some bytecode stuff in OpenBebBeans. We could probably later change this to have another project module, compile it, unpack it, copy it over, blablabla.
> But that doesn't change anything about the fact that this file is ALv2 licensed. But since it's a binary it obviously does not have any ALv2 >>SOURCE<< header.
>
> In other words: this .class file is a test resource and handled exactly the same like a png or jpeg file.
>
> I don't see any legal problem.
Seems reasonable to me. I'd expect our source bundles to contain various
binary resources where we can't add a license header.
Tomcat does something similar to OpenWebBeans. In Tomcat, the .java file
used to generate the .class file is in svn along side the .class file.
I'd start to get concerned (but not from a legal PoV) if a project
included .class files (e.g. for tests) without the means to regnerate
them. My concern would be how would the project handle the case of the
class file needing modification. But that would be the project's problem
to deal with. It isn't something I'd expect to escalate outside of the
project.
Kind regards,
Mark
> LieGrue,
> strub
>
>
>> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>:
>>
>> Hi,
>>
>> While looking at [1] and looking at a proposed Apache OpenWebBeans [2] it was discovered that .class files were contained in the source release. It seems in the past that image files were generally considered OK in source releases, since they typically had to do with building websites, the traceability of the image was easy to discover.
>>
>> .class files are the compiled output from .java source files (as well as .groovy and other JVM languages, depending on how you compile). Since they are compiled output, it seems they shouldn't be in a source release. However, the only true policy I could find that it violated was that we require appropriate licensing [3] and there is no way to verify the licensing of these files.
>>
>> So I'm wondering 1. is that accurate? and 2. is there an acceptable way to verify that the license is correct?
>>
>> [1]: http://www.apache.org/dev/release.html#what-must-every-release-contain
>> [2]: https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66df8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
>> [3]: http://www.apache.org/dev/release-publishing.html#valid
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
> For additional commands, e-mail: legal-discuss-help@apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Mark Struberg <st...@yahoo.de.INVALID>.
The class file in question was added by ASF member rmannibucau under ALv2 as a >>resource<< and not as a source file.
The original file of course has the ASF license header, but the 'class' resource is still checked in to our SVN as .class file.
This is for testing some bytecode stuff in OpenBebBeans. We could probably later change this to have another project module, compile it, unpack it, copy it over, blablabla.
But that doesn't change anything about the fact that this file is ALv2 licensed. But since it's a binary it obviously does not have any ALv2 >>SOURCE<< header.
In other words: this .class file is a test resource and handled exactly the same like a png or jpeg file.
I don't see any legal problem.
LieGrue,
strub
> Am 03.01.2017 um 12:45 schrieb John D. Ament <jo...@apache.org>:
>
> Hi,
>
> While looking at [1] and looking at a proposed Apache OpenWebBeans [2] it was discovered that .class files were contained in the source release. It seems in the past that image files were generally considered OK in source releases, since they typically had to do with building websites, the traceability of the image was easy to discover.
>
> .class files are the compiled output from .java source files (as well as .groovy and other JVM languages, depending on how you compile). Since they are compiled output, it seems they shouldn't be in a source release. However, the only true policy I could find that it violated was that we require appropriate licensing [3] and there is no way to verify the licensing of these files.
>
> So I'm wondering 1. is that accurate? and 2. is there an acceptable way to verify that the license is correct?
>
> [1]: http://www.apache.org/dev/release.html#what-must-every-release-contain
> [2]: https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d485d66df8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
> [3]: http://www.apache.org/dev/release-publishing.html#valid
>
---------------------------------------------------------------------
To unsubscribe, e-mail: legal-discuss-unsubscribe@apache.org
For additional commands, e-mail: legal-discuss-help@apache.org
Re: Inclusion of .class files within a Apache Source Release
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi John,
I think you see it the wrong way, this .class files are binary dependencies
of the tests and that's it. The license - as any other part of ASF software
- should be guaranteed by PMC (not by headers which by themself doesn't
prove the code is legal).
Concretely there is no violation of all the mentionned links and this is
perfectly valid.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>
2017-01-03 12:45 GMT+01:00 John D. Ament <jo...@apache.org>:
> Hi,
>
> While looking at [1] and looking at a proposed Apache OpenWebBeans [2] it
> was discovered that .class files were contained in the source release. It
> seems in the past that image files were generally considered OK in source
> releases, since they typically had to do with building websites, the
> traceability of the image was easy to discover.
>
> .class files are the compiled output from .java source files (as well as
> .groovy and other JVM languages, depending on how you compile). Since they
> are compiled output, it seems they shouldn't be in a source release.
> However, the only true policy I could find that it violated was that we
> require appropriate licensing [3] and there is no way to verify the
> licensing of these files.
>
> So I'm wondering 1. is that accurate? and 2. is there an acceptable way to
> verify that the license is correct?
>
> [1]: http://www.apache.org/dev/release.html#what-must-
> every-release-contain
> [2]: https://lists.apache.org/thread.html/869c739764d5d55d81199576d730d4
> 85d66df8be17ae16398dd7ca1f@%3Cdev.openwebbeans.apache.org%3E
> [3]: http://www.apache.org/dev/release-publishing.html#valid
>
>