View Issue Details

IDProjectCategoryView StatusLast Update
0004572PathBugpublic2021-02-20 17:00
Reportersliptonic Assigned Tosliptonic  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19 
Target Version0.19 
Summary0004572: Property in propertybag will allow space in name but throws error. Sanitize input.
DescriptionWhen creating a property in a propertybag, the input will allow a property name with included spaces.
This results in an error:

08:39:36 Traceback (most recent call last):
08:39:36 File "/home/brad/FCD/FC/Mod/Path/PathScripts/PathPropertyBagGui.py", line 324, in propertyAdd
08:39:36 self._setupProperty(index, name)
08:39:36 File "/home/brad/FCD/FC/Mod/Path/PathScripts/PathPropertyBagGui.py", line 238, in _setupProperty
08:39:36 typ = PathPropertyBag.getPropertyTypeName(self.obj.getTypeIdOfProperty(name))
08:39:36 AttributeError: Property container has no property 'a thing'
Steps To ReproduceCreate a property bag
add a property with a space in the name
apply.
TagsNo tags attached.
FreeCAD InformationOS: Linux Mint 20 (i3/i3)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24113 +1 (Git)
Build type: Unknown
Branch: bug/uselastlibrary
Hash: ac54034a768505e7720977e8a4e6fb50292c3068
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.3.0
Locale: English/United States (en_US)

Activities

sliptonic

2021-02-20 17:00

manager   ~0015390

Fix committed to master branch.

Related Changesets

FreeCAD: master b7eac5df

2021-02-17 15:19:00

sliptonic

Details Diff
fix 0004572 Affected Issues
0004572
mod - src/Mod/Path/PathScripts/PathPropertyBag.py Diff File
mod - src/Mod/Path/PathScripts/PathPropertyBagGui.py Diff File

Issue History

Date Modified Username Field Change
2021-02-17 14:44 sliptonic New Issue
2021-02-17 15:26 sliptonic Assigned To => sliptonic
2021-02-17 15:26 sliptonic Status new => assigned
2021-02-20 17:00 sliptonic Changeset attached => FreeCAD master b7eac5df
2021-02-20 17:00 sliptonic Note Added: 0015390
2021-02-20 17:00 sliptonic Status assigned => closed
2021-02-20 17:00 sliptonic Resolution open => fixed