andig / carddav2fb

Download CardDAV VCards and upload as phonebook to AVM FRITZ!Box
63 stars 19 forks source link

Saving special attributes does not cover all circumstances #168

Closed blacksenator closed 5 years ago

blacksenator commented 5 years ago

Under very rare circumstances, previously saved special attributes and internal numbers can not be restored: a) the internal phonebook 0 (Telefonbuch) is empty respectively the memory content is lost and b) the Fritz!Box is restarted after that = a virgin phonebook! These circumstances have already occurred after updating the firmware. After the restart, the internal telephonebook 0 - although no entries are visible in the GUI - contains the following entries:

<?xml version="1.0" encoding="utf-8"?>
<phonebooks>
    <phonebook name="Telefonbuch">
        <contact>
            <category/>
            <person>
                <realName>HD-Musik</realName>
            </person>
            <telephony nid="1">
                <number prio="1" type="home" quickdial="98" id="0">200@hd-telefonie.avm.de</number>
            </telephony>
            <services/>
            <setup/>
            <uniqueid>2219641</uniqueid>
        </contact>
        <contact>
            <category/>
            <person>
                <realName>HD-Sprache</realName>
            </person>
            <telephony nid="1">
                <number prio="1" type="home" quickdial="99" id="0">100@hd-telefonie.avm.de</number>
            </telephony>
            <services/>
            <setup/>
            <uniqueid>2219642</uniqueid>
        </contact>
    </phonebook>
</phonebooks>

I once observed this after a firmware update and could not reproduce it. By coincidence, I found it again while simulating another case. But it took me some time to actually reproduce it.

A correction is on the way