linz / gazetteer

New Zealand Gazetteer of official place names
http://www.linz.govt.nz/regulatory/place-names/find-name/new-zealand-gazetteer-official-geographic-names/new-zealand-gazetteer-search-place-names#zoom=0&lat=-41.14127&lon=172.5&layers=BTTT
Other
2 stars 2 forks source link

by default editing geoms raises "Do you allow this macro to run". It is expected this will be a user annoyance #161

Open SPlanzer opened 3 years ago

SPlanzer commented 3 years ago

Note; I am not sure what current QGIS2 behaviors is here and whether this is not an issue in QGIS2 or if users have taken action to suppress this warning.

QGIS3 considers the code attached to the "Gazetteer Feature" layers for populating the feature_id in the edit form a "Python Macro"

This invokes the below dialog each time a user creates a geometry for a feature.

image

To preceded with the edit, The user must hit "yes" every time else go to Settings > Options > Enable macros = "Always (Not recommended)"

presumably "Not recommended" is as malicious code could be executed via a macro without a user knowledge. However just installing plugins lets third party code run anyway.

Advice needs to be considered as to which is the recommended approach to accepting the use of this macron (i.e. Click "yes" every time or Select "Always" via settings )

I do not see a security risk in setting Enable macros = "Always (Not recommended)"

billgeo commented 3 years ago

Seems like very low risk. Might want to let Chris Stephens know, so he can either tell people or add to the documentation.

The user must hit "yes" every time else go to Settings > Options > Enable macros = "Always (Not recommended)"

So 'don't ask anymore' option doesn't work?

SPlanzer commented 3 years ago

So 'don't ask anymore' option doesn't work?

As far as I can tell it has the same affect as hitting "No"