View Issue Details

IDProjectCategoryView StatusLast Update
0001883FreeCADBugpublic2015-01-21 13:27
Reportershoogen Assigned Toyorik  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionreopened 
Product Version0.15 
Target Version0.15 
Summary0001883: Wrong license for files lacking (predating) the license Property
DescriptionOpening an existing file that lacks the license property, gets this property set to CC-BY when opening the file.
TagsNo tags attached.
FreeCAD Information

Relationships

related to 0001766 closedyorik There is no GUI to set the default License and Company 

Activities

yorik

2014-12-29 14:55

administrator   ~0005463

I think the culprit is src/App/Document.cpp, line 614/615. Probably the defaults for these two fields should indeed be set to "". I also think the creative commons license shouldn't be forced on the user. If nobody speaks against it, I'll do the change.

Maybe the best of the best, would be a button, next to the license field, that says "Use CC 3.0", that would fill the fields with CC 3.0 info... (Or 4.0, which is the newest now)

shoogen

2014-12-29 16:24

developer   ~0005465

IMHO the default value for opening existing files should be "unknown" or "unspecified" "N/A". Whereas for NEW documents there should be a default, that the users should be able to adjust in the GUI. (But this would be in the scope of 0001766)

yorik

2014-12-29 20:39

administrator   ~0005468

I'm afraid that for existing documents it's too late... Their "license" field has already been filled, and now there is no way to differentiate them from files where the user would have specifically wished the CC3.0 license.

I propose to go on with a "Unspecified" default value for now, because it's a quick fix, while issue 0001766 is not done ( I would do 0001766 too but I've never touched the STEP stuff before)

wmayer

2015-01-10 11:42

administrator   ~0005605

> IMHO the default value for opening existing files should be "unknown" or "unspecified" "N/A"
I don't think that it should be one of these values because what does it mean in the end? If the license is unclear then you have to treat it as proprietary anyway.

So, IMO the default should be set to 'Proprietary'. Inkscape does have a panel to set a license and it offers proprietary (the default), the different CC versions, public domain, FreeArt, Open-Font license and Others.

yorik

2015-01-10 13:38

administrator   ~0005607

It is true that "unspecified" has in this case the same meaning as "proprietary". But is "proprietary" really a license? The word seems weird to me... It seems to me that it would be the same as saying "open-source license" (you would reply yes, but which one?)

Maybe there would be a formula, something like "all rights reserved"?

jmaustpc

2015-01-11 13:49

manager   ~0005613

I think Yorik is right in that if no license has been specified then we should just say that. Blank field, not specified, unknown, etc. or similar. The implication is "look elsewhere" or "seek clarification".

If that is seen as a problem then the longer term fix could be to have some sort of pop up, or whatever, that asks you to set a licence when the file is saved and a licence has not been detected.

Of course a GUI tool to set the licence seems to me to be basic and important functionality, to be honest I had not realised it was not already there. :-)

jmaustpc

2015-01-11 14:10

manager  

licence.jpeg (Attachment missing)

jmaustpc

2015-01-11 14:24

manager   ~0005614

Now I see that I was confused...:-)

There is a GUI tool to change the licence data for a FreeCAD file, as I had thought, I just tried it and it works in 0.14.3703.

What there is not is a property to set for the DEFAULT licence to be inserted automatically into a new document when created..... which is what 0001766 is talking about.


I Found in 0.14.7303 that if you change a value and don't save the document then FreeCAD does not warn you that the document has been altered and thus forgets the changes to the Licence fields ...but if you click on save before closing then FreeCAD does remember the changes made.

yorik

2015-01-19 17:25

administrator   ~0005677

It seems that "all rights reserved" is exactly what we want: http://en.wikipedia.org/wiki/All_rights_reserved

Ok I propose then to:

- add a preference setting for license and license URL
- add a series of predefined choices (CC, CC-By, etc, taken from inkscape)
- set the default license to "All rights reserved"
- use the preference values on document creation.

Unfortunately I don't know what to do for existing documents.

Ok for everyone? Speak now or forever hold your peace :)

shoogen

2015-01-20 22:31

developer   ~0005681

Thanks Yorik!
BTW: I get a "QMetaObject::connectSlotsByName: No matching signal for on_prefLicenseType_changed(int)" in the report view

yorik

2015-01-20 23:25

administrator   ~0005682

Ok got it... It was a naming problem. One cannot name signals or slots starting with "on_something" otherwise it messes with Qt's auto slot connecting
http://www.qtforum.org/article/20685/connectslotsbyname.html?s=dccb07b0b80aa19aa773861bc1dbea8519764f13#post76950

wmayer

2015-01-21 10:10

administrator   ~0005685

> Unfortunately I don't know what to do for existing documents.
If existing documents don't have a license note the default should be "All rights reserved" as we cannot (silently) force them to "accept" the CC or any other license.

yorik

2015-01-21 13:27

administrator   ~0005686

Unfortunately all old documents already have their license field filled because before this commit, on new doc creation, these values were filled by default with CC-3.0.

What we could do is, on opening a file, if we detect such license, we ask what to do? But this is annoying, because it will be a hassle for all users, not only the authors of the files.

Honestly I think there are not so many existing FreeCAD documents around, where this is a problem...

Anyway the default is now "All rights reserved". If we open a document with the license fields empty, however, at the moment it will stay empty. But I don't think there are many of those... The user would have had to empty the fields manually...

Related Changesets

FreeCAD: master 645d176a

2015-01-20 23:01:14

yorik

Details Diff
Added preference setting to set default Author & License - fixes 0001883

* added fields in Prefereces->Default->Document
* new documents take the values of those fields
Affected Issues
0001883
mod - src/App/Document.cpp Diff File
mod - src/Gui/DlgSettingsDocument.ui Diff File
mod - src/Gui/DlgSettingsDocumentImp.cpp Diff File
mod - src/Gui/DlgSettingsDocumentImp.h Diff File

FreeCAD: master 378deaf7

2015-01-21 00:23:34

yorik

Details Diff
Fixed small naming error - fixes 0001883 Affected Issues
0001883
mod - src/Gui/DlgSettingsDocumentImp.cpp Diff File
mod - src/Gui/DlgSettingsDocumentImp.h Diff File

Issue History

Date Modified Username Field Change
2014-12-29 11:08 shoogen New Issue
2014-12-29 14:55 yorik Note Added: 0005463
2014-12-29 14:55 yorik Assigned To => yorik
2014-12-29 14:55 yorik Status new => assigned
2014-12-29 16:24 shoogen Note Added: 0005465
2014-12-29 20:39 yorik Note Added: 0005468
2014-12-30 10:58 shoogen Relationship added related to 0001766
2015-01-10 11:42 wmayer Note Added: 0005605
2015-01-10 13:38 yorik Note Added: 0005607
2015-01-11 13:49 jmaustpc Note Added: 0005613
2015-01-11 14:10 jmaustpc File Added: licence.jpeg
2015-01-11 14:24 jmaustpc Note Added: 0005614
2015-01-19 17:25 yorik Note Added: 0005677
2015-01-20 22:20 yorik Changeset attached => FreeCAD Master master 645d176a
2015-01-20 22:20 yorik Status assigned => closed
2015-01-20 22:20 yorik Resolution open => fixed
2015-01-20 22:31 shoogen Note Added: 0005681
2015-01-20 22:31 shoogen Status closed => feedback
2015-01-20 22:31 shoogen Resolution fixed => reopened
2015-01-20 23:25 yorik Note Added: 0005682
2015-01-20 23:39 yorik Changeset attached => FreeCAD Master master 378deaf7
2015-01-20 23:39 yorik Status feedback => closed
2015-01-21 10:10 wmayer Note Added: 0005685
2015-01-21 13:27 yorik Note Added: 0005686