Create a vCard with an initial image and upload vCard and image (-i option) to FritzBox
On FritzFon: check contact > details > image
Now change contacts image in CardDav server
Repeat download/upload of vCard with -i option (Console log will show Uploaded/refreshed 1 of xx image file(s))
On FritzFon: check again contact > details > image again
Expected: new image is shown in FritzFon
Actual: old image is shown in FritzFon
Observation#1: in the FritzBox web interface the new image is shown
Observation#2: in the FritzBox FTP server the new image has a newer time stamp (so, it actually was uploaded!)
I tried various ways to force the update of the image inside FritzFon
Waited 24 hrs (=> no image update)
Switched to a different phonebook and then back to main phone book (=> no image update)
Rebooted FritzFon (=> no image update)
changed my carddav2fb config.php to an include filter that actually does not pass any vCards, resulting in an empty main phonebook at the FritzFon. Then restored old filter to re-upload all former contacts with their images (=> no image update)
Deleted all files from the FTP USB fonpix folder then re-uploaded all fotos (=> no image update)
Seems the FritzFon has some very sticky internal cache implemented (that stupidly ignores the FTP servers timestamp of the files) :-(
I then tested a "quick hack":
If I rename the image file in FTP dir (e.g., append a date/timestamp *_YYMMDDHHMMSS.jpg)
and change the imageURL in XML phonebook dump accordingly
then re-import XML phonebook dump to FritzBox
=> Then FritzFon shows the new image! Hey! Finally! Sigh!
🎉
I prepared a PR that does exactly this on image FTP uploads:
Append timestamp to all initial uploaded image names
On following image uploads check if image file size has changed
If yes: delete the old image file on FTP and upload the new image with a new timestamp
imageURL calculation now happens in functions.php instead of converter.php
(PR will follow!)
Hardware: Fritz!Box (FW 06.85) Fritz!Fon C5 (FW 02.04.09)
Steps to reproduce:
Uploaded/refreshed 1 of xx image file(s)
)Expected: new image is shown in FritzFon Actual: old image is shown in FritzFon
Observation#1: in the FritzBox web interface the new image is shown Observation#2: in the FritzBox FTP server the new image has a newer time stamp (so, it actually was uploaded!)
I tried various ways to force the update of the image inside FritzFon
Seems the FritzFon has some very sticky internal cache implemented (that stupidly ignores the FTP servers timestamp of the files) :-(
I then tested a "quick hack":
I prepared a PR that does exactly this on image FTP uploads: