You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the process of trying to get pisi to export my contacts I accidentally added a name field containing only a single quote character ('). This caused pisi to crash which it should not do, especially since there are legitimate names that contain quote characters.
Also, I'm a bit concerned that you are using exec since that could be a security concern (arbitrary Python code execution).
*************** PHASE 0 - Configuration ***************
Verbose mode on
In case of conflicts I use the following strategy: Manual confirmation
Reading configfile: /home/root/.pisi
contact opimd module loaded using file
contact VCF module loaded using file /home/root/contacts.vcf
Running in mode .
Source 1
Source 2
Pre-Processing Done
Module opimd has 20 contacts in total
Module vcf1 has 0 contacts in total
0 entries in common
0 entries with conflicts
20 entires in source 1 - but not in 2
0 entires in source 2 - but not in 1
****************** PHASE 3 - Saving ******************
Making changes permanent
OPIMD module: I apply 0 changes now
VCF module: I apply 20 changes now
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
Traceback (most recent call last):
File "/bin/pisi", line 153, in
pisicli.startCLI()
File "/opt/pisi/pisicli.py", line 255, in startCLI
pisi.applyChanges(source)
File "/opt/pisi/pisi.py", line 122, in applyChanges
source[1].saveModifications()
File "/opt/pisi/modules/contacts_vcf.py", line 158, in saveModifications
self._rawData[contactID] = createRawVcard(c)
File "/opt/pisi/vobjecttools.py", line 230, in createRawVcard
_createRawAttribute(c, j, 'fn', "'''" + fn + "'''")
File "/opt/pisi/vobjecttools.py", line 121, in _createRawAttribute
exec ("v =" + value)
File "", line 1
v ='''''''
^
SyntaxError: EOL while scanning string literal
The text was updated successfully, but these errors were encountered:
During the process of trying to get pisi to export my contacts I accidentally added a name field containing only a single quote character ('). This caused pisi to crash which it should not do, especially since there are legitimate names that contain quote characters.
Also, I'm a bit concerned that you are using exec since that could be a security concern (arbitrary Python code execution).
root@booph:~# pisi -v -m5 opimd vcf1
********************** PISI **********************
** PISI is synchronizing information ******************
** http://freshmeat.net/projects/pisiom ********
*************** PHASE 0 - Configuration ***************
Verbose mode on
In case of conflicts I use the following strategy: Manual confirmation
Reading configfile: /home/root/.pisi
contact opimd module loaded using file
contact VCF module loaded using file /home/root/contacts.vcf
Running in mode .
Source 1
Source 2
Pre-Processing Done
****************** PHASE 1 - Loading ******************
OPIMD: Loading
/usr/lib/python2.6/site-packages/dbus/connection.py:242: DeprecationWarning: object.init() takes no parameters
super(Connection, self).init(_args, *_kwargs)
VCF: Loading
***************** PHASE 2 - Comparing *****************
Module opimd has 20 contacts in total
Module vcf1 has 0 contacts in total
0 entries in common
0 entries with conflicts
20 entires in source 1 - but not in 2
0 entires in source 2 - but not in 1
****************** PHASE 3 - Saving ******************
Making changes permanent
OPIMD module: I apply 0 changes now
VCF module: I apply 20 changes now
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
adding or replacing @xxxx@@
Traceback (most recent call last):
File "/bin/pisi", line 153, in
pisicli.startCLI()
File "/opt/pisi/pisicli.py", line 255, in startCLI
pisi.applyChanges(source)
File "/opt/pisi/pisi.py", line 122, in applyChanges
source[1].saveModifications()
File "/opt/pisi/modules/contacts_vcf.py", line 158, in saveModifications
self._rawData[contactID] = createRawVcard(c)
File "/opt/pisi/vobjecttools.py", line 230, in createRawVcard
_createRawAttribute(c, j, 'fn', "'''" + fn + "'''")
File "/opt/pisi/vobjecttools.py", line 121, in _createRawAttribute
exec ("v =" + value)
File "", line 1
v ='''''''
^
SyntaxError: EOL while scanning string literal
The text was updated successfully, but these errors were encountered: