darodriguezalv / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Google drive sync fails on rename #1274

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Record 4 or so tracks on phone (3 from same starting location, hence named 
the same), sync with Drive
2. Rename all of them to sensible names on PC drive (or edit the name in the 
XML)
3. Sync with phone

What is the expected output? What do you see instead?

The tracks should appear on the phone to match the name of the versions in 
google drive. Instead, 2 of them got renamed back to their old name, and 2 
didnt. I think this is because they were named the same in the Android app, and 
were called "My track (1)" etc

Also changing the name in the XML and re-syncing resulted in duplicates.

It seems the app always writes a file with the name from the XML and doesnt 
correctly track the changes in drive, especially when there are duplicated on 
the android side

What version of MyTracks are you using? On what version of Android? On what
phone?

2.4.4 on stock (rooted) Galaxy Note II (UK version) running android 4.1.x

If possible please provide a log by uploading here.
Detailed instructions can be found here:
http://code.google.com/p/mytracks/wiki/HowToReportErrors

Please provide any additional information here:

Original issue reported on code.google.com by ripne...@gmail.com on 22 Mar 2013 at 4:34

GoogleCodeExporter commented 9 years ago
If the track name in the kml file and the drive name are different, we need to 
pick one, and we decided to use the track name in the kml file.

Thus changing the name in google drive will not work.

I suspect you are getting duplicates because after you change the xml file, you 
are actually uploading a new xml file, not replacing the existing one.

Try renaming a track from My Tracks, it will set the same name in Google Drive 
and in the xml file.

This issue will be fixed if there is a kml editor in Google Drive that will 
keep the file name and the track name in kml file in sync.

Let me know if you still observe issues with renaming.

Original comment by jshih@google.com on 10 Jun 2013 at 11:34

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for your response. I guess we are seeing a conflict between filesystems 
which dont allow duplicated names, and XML content, which obviously does.

I disagree with this approach... imho filenames should be independent of 
content, and it should be possible to rename stuff in my google drive without 
causing duplicates and odd behaviour.

I guess the real fix is for My Tracks to give them sensible unique names in the 
first place...

Ive kind of given up on my tracks, and am back to Strava now, mainly because of 
this
thanks
George

Original comment by ripne...@gmail.com on 11 Jun 2013 at 9:17

GoogleCodeExporter commented 9 years ago
No, renaming in My Tracks doesn't work either. Actually, I have 5 or 6 copies 
in Google Drive of the same tracks in My tracks, all with the same name.

Original comment by luisflo...@gmail.com on 9 Aug 2013 at 8:38

GoogleCodeExporter commented 9 years ago
my tracks sync was a mess. Google need to aquire dropbox to learn about 
reliable syncing

Original comment by ripne...@gmail.com on 9 Aug 2013 at 8:50