News for hackers. Stuff that matters.
Re:Tell HN: Discord is violating open source licenses by vecplane on Tuesday April 25, 2017 @11:46AM (#14194554)
The library in question would be uWebSockets?

https://github.com/uWebSockets/uWebSockets

Re:Tell HN: Discord is violating open source licenses by TheDong on Tuesday April 25, 2017 @11:49AM (#14194590)
If so, that's the zlib license, which requires no acknowledgement for binary distributions.

If they distributed the sourcecode, they'd have to include the license, but the zlib license has nothing to say about compiling it in.

Re:Tell HN: Discord is violating open source licenses by alexhultman on Tuesday April 25, 2017 @11:55AM (#14194690)
They are distributing both binary (no problem here) and source (problem).
Re:Tell HN: Discord is violating open source licenses by charlesdm on Tuesday April 25, 2017 @12:01PM (#14194758)
Maybe I'm an idiot, but I don't see any problems?

——————————

Copyright (c) 2016 Alex Hultman and contributors

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgement in the product documentation would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any source distribution.

——————————

a) This software is provided ‘as-is’, and as the author, you are not liable for damages if someone uses your library for something crazy.

b) Anyone can freely use it, for any purpose, with following restrictions:

1. “If you use this software in a product, an acknowledgement in the product documentation would be appreciated but is not required.”. They decided not to acknowledge the use of your library. You explicitly said this is OK.

2. Altered source code -> probably not.. it’s a web socket handling library.

3. This notice may not be removed. They have probably not removed it from their source code, given they distribute a binary.

Re:Tell HN: Discord is violating open source licenses by alexhultman on Tuesday April 25, 2017 @12:05PM (#14194814)
Can you find this notice in their distribution? I have looked in their client UI and in their client tar.gz but I cannot find anything. I can however easily find my project in there (I would think the license would be nicely placed where the sources are).
Re:Tell HN: Discord is violating open source licenses by packetized on Tuesday April 25, 2017 @12:09PM (#14194867)
Can you share where you found the project files in the client tar.gz?

edit: Found it, uws.js in resources/bootstrap/discord_rpc.zip

edit2: This is arguably worse, but the argument may be "it's a compiled binary":

  -bash-4.1$ strings discord_rpc.node | grep uws.*cpp$
  ../../discord_common/native/third_party/uws/nodejs/addon.cpp
  ../../discord_common/native/third_party/uws/nodejs/addon.cpp
  ../../discord_common/native/third_party/uws/src/EventSystem.cpp
  ../../discord_common/native/third_party/uws/src/Extensions.cpp
  ../../discord_common/native/third_party/uws/src/HTTPSocket.cpp
  ../../discord_common/native/third_party/uws/src/Network.cpp
  ../../discord_common/native/third_party/uws/src/Server.cpp
  ../../discord_common/native/third_party/uws/src/UTF8.cpp
  ../../discord_common/native/third_party/uws/src/WebSocket.cpp
  ../../discord_common/native/third_party/uws/nodejs/addon.cpp
  ../../discord_common/native/third_party/uws/src/HTTPSocket.cpp
  ../../discord_common/native/third_party/uws/src/WebSocket.cpp
  ../../discord_common/native/third_party/uws/src/EventSystem.cpp
  ../../discord_common/native/third_party/uws/src/Extensions.cpp
  ../../discord_common/native/third_party/uws/src/Network.cpp
  ../../discord_common/native/third_party/uws/src/Server.cpp
  ../../discord_common/native/third_party/uws/src/UTF8.cpp
  -bash-4.1$
Re:Tell HN: Discord is violating open source licenses by dsp1234 on Tuesday April 25, 2017 @12:16PM (#14194951)
Which must be doubly frustrating since they have a copy of https://github.com/websockets/ws in the node_modules folder, and that has the appropriate license text (MIT in that case)
Re:Tell HN: Discord is violating open source licenses by dsp1234 on Tuesday April 25, 2017 @12:25PM (#14195052)
edit2: This is arguably worse, but the argument may be "it's a compiled binary":

discord_rpc.node is an ELF file. It's hard to see how that would not be considered a binary distribution (if it was that file alone, and not being distributed with source files)

Re:Tell HN: Discord is violating open source licenses by packetized on Tuesday April 25, 2017 @12:31PM (#14195160)
You're correct, I was a bit too quick on the 'reply' button there.
Re:Tell HN: Discord is violating open source licenses by charlesdm on Tuesday April 25, 2017 @12:24PM (#14195043)
If it's compiled, they don't need to add anything. If it's interpreted, i.e. a JS file, they do (at the top of the JS file)
Re:Tell HN: Discord is violating open source licenses by charlesdm on Tuesday April 25, 2017 @12:11PM (#14194890)
As a compiled binary (i.e. your library was compiled into their binary), or as source code? Given we're talking C/C++, I doubt they added it as actual source code.

If they are not distributing source code ("3. This notice may not be removed or altered from any source distribution."), it frankly does not matter if they disclose whether they use your library or not. And if they were distributing source code, the notice would just have to stay visible in the distributed source file. An average user wouldn't be able to find that anyway.

A compiled binary != distributing source code.

As a library user under the license you used, there is no legal obligation to include the actual license in (the documentation of) your app. If you wanted that, you should have included that in the license header of your source code. Sorry to break it to you, but they're probably not doing anything wrong here.

Re:Tell HN: Discord is violating open source licenses by dsp1234 on Tuesday April 25, 2017 @12:19PM (#14194984)
I doubt they added it as actual source code.

https://dl.discordapp.net/apps/linux/0.0.1/discord-0.0.1.tar...

expand that out, then navigate to: resources/bootstrap/

expand out: discord_rpc.zip

note the presence of uws.js which is the source code for this library.

Thus this is a distribution of this library as source, not binary.

Re:Tell HN: Discord is violating open source licenses by charlesdm on Tuesday April 25, 2017 @12:22PM (#14195024)
Then you can contact them and request they add the license header again, in this JS file. But is it worth pursuing this? Chances are no one will ever actually see it, though.
Re:Tell HN: Discord is violating open source licenses by dsp1234 on Tuesday April 25, 2017 @12:27PM (#14195095)
Then you can

Just to be clear, I'm not the original author, and thus have no ability to enforce copyrights for this library. Just someone who doesn't like the easy stuff of license/attribution being thrown away.