Copyright Java example project
QLM comes with an example java project that demonstrates how to integrate QLM into a java application. Can I freely copy this source code into my own project or is it copryright-protected in some way?
-
Official comment
You are only entitled to use this code if you are a customer and have purchased a QLM Pro license.
Comment actions -
Okay, thank you for pointing that out. We did not intend to use the provided code in a published version of our product before purchasing a Pro license. I am currently still using my 30 days trial to evaluate whether QLM fits our needs.
On that note: I've noticed that (again, in the Java example project) you can copy a valid, but computer-bound license from computer A to computer B (which has a different computerID) and it will still be accepted on computer B. Is this intended behaviour?
It seems like the validity of the license's content is only checked for time-restricted licenses. It is only the signature of the license that is checked for both, permanent and time-restricted licenses. The relevant portion of the code is
qmlLicenseMobile.QlmLicense.java, lines 441 through 460. -
Sorry for the late reply.
- Run the java test project on computer A. Enter a valid activation key for a permanent license and click activate.
- Copy the entire project folder to computer B, including the license file that was automatically generated in step 1. Make sure that computer B has a different computer ID than computer A.
- Run the java test project on computer B. The application will find the license file that was generated for computer A, and this file will be accepted as a valid license. The frame shows "Your license was successfully activated".
This does not appear to be a huge issue. If you take a look at the file
qmlLicenseMobile.QlmLicense.java, line 441ff, you will find that any permanent license is accepted. The functionIsLicenseValid(computerID)does check whether the license contains the correct computerID, but this function is only called if the license is non-permanent (line 448). As soon asIsLicenseValidis called for all licenses, the issue should be resolved as far as I can tell.
I hope this helps.Best regards,
Moritz
Please sign in to leave a comment.
Comments
5 comments