#6213 closed defect (fixed)
Licence-status per user not correct
Reported by: | brogo | Owned by: | rickmastfan67 |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
User itschytoo (ID 36292) has accepted the new CT [1], but JOSM shows, that he has not accepted, e.g. for way 24235801 [2].
[1] http://planet.openstreetmap.org/users_agreed/users_agreed.txt
Attachments (1)
Change History (22)
comment:2 by , 14 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:3 by , 14 years ago
Replying to bastiK:
IIRC, it is cached for 1 h. You can also remove the
mirror_http___planet.openstreetmap.org_users_agreed_users_agreed.txt
file from your preferences if you are of the impatient kind.
It didn't worked. The mirror-file was dated 14.01.11. Only manually deleting this file brings the correct result.
There was also a recent users_agreed.txt.tmp-file in this directory. But it seems that JOSM gets the information from the old .txt-file.
comment:4 by , 14 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
comment:7 by , 14 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
There is still a problem here. I was having the same problem that brogo mentioned in comment:3. Except my problem was worse.
My "mirror_http_planet.openstreetmap.org_users_agreed_users_agreed.txt" file was dated back from January 6th! While the "tmp" file for the users agreed was up-to-date, it wasn't being read by JOSM. I had to manually delete the old "agree" and "disagree" files to get them to update and give me the correct data in JOSM. There's got to be a way to get the main txt file to update more often. That or make JOSM read the "tmp" file all the time if it's more current.
And if other people are having this problem as well, it could cause a lot of trouble.
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2011-05-07 01:31:40 Last Changed Author: framm Revision: 4076 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2011-05-06 23:18:24 +0200 (Fri, 06 May 2011) Last Changed Rev: 4076 Identification: JOSM/1.5 (4076 en) Memory Usage: 125 MB / 3640 MB (66 MB allocated, but free) Java version: 1.6.0_25, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM Operating system: Windows 7 Dataset consistency test: No problems found
follow-up: 10 comment:8 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | reopened → needinfo |
I need a reproducible way to get such an old file or we can't fix this. Code looks good to me and there should be no blocking which prevents updating the files.
comment:9 by , 14 years ago
Owner: | changed from | to
---|
comment:10 by , 14 years ago
Replying to stoecker:
I need a reproducible way to get such an old file or we can't fix this. Code looks good to me and there should be no blocking which prevents updating the files.
What OS are you running? This might be a "Windows" only problem if it isn't happening in Linux.
I'm personally running Windows 7 x64 here and this is a problem. The files for this are stored in the following place: "C:\Users\<User Name>\AppData\Roaming\JOSM".
I'm going to attach the files that deal with the Licence status that are in that folder. When you download the 7z file that has them in them, you'll see that "mirror_http_planet.openstreetmap.org_users_agreed_users_agreed.txt" has a "Date Modified" of Janurary 6th, 2011. That file keeps preventing the same file with the *.tmp ending from giving the proper info inside of JOSM.
For instance, it will not say that I have agreed with the Licence when I have already because I agreed after the "Date Modified" date of the default agreed file. Not even hitting the "Load CT" button will get JOSM to show that I have. The only way to force JOSM to show that I have agreed it to delete the Licence files and let JOSM download a completely new set.
Anyways, as I've mentioned above, I've attached the old 01/06/11 agreed file as well as the disagree file + the 2 *.tmp files. This way you'll be able to duplicate it if you can test it on a Windows 7 system.
Also, here's a way that I'm the last person to edit (at least at this moment) so you can test this with the attached files: http://www.openstreetmap.org/browse/way/102526848
by , 14 years ago
follow-up: 12 comment:11 by , 14 years ago
Please attach your config as well (strip username/password), as it contains the relevant mirror information files.
Very likely this is a Windows problem, but Windows should prevent opening/overwriting files only when they are used and JOSM should make sure this file is closed always after reading.
comment:12 by , 14 years ago
Replying to stoecker:
Please attach your config as well (strip username/password), as it contains the relevant mirror information files.
Are you talking about the "preferences" file in "C:\Users\<User Name>\AppData\Roaming\JOSM", correct?
If so, the lines I need to delete are "oauth.access-token.key" and "oauth.access-token.secret", correct? That and tweak any lines that mention my "user id" for windows?
Also, do you need me to attach "preferences_backup" as well, or is just the main "preferences" file enough?
comment:14 by , 14 years ago
Alright, I'll attach it in a second. But I'd still prefer that you'd delete it once you have it downloaded as only you head JOSM programers need it to try to fix this bug. ;)
Anyways, I striped out my oauth info as well as anything that mentioned personal folders (non "AppData" folders) and changed lines that referenced the JOSM data folder to include "<User Name>" instead of my Windows account name for safety reasons. ;)
comment:15 by , 14 years ago
Ok. Deleted file. Well the prefs file says that the files are from date which is of ".tmp" file. Hmpf, seems I need to setup JOSM on an Win7 system myself to test this. I hate windows!
follow-up: 18 comment:17 by , 14 years ago
Last try fixing without Windows: Could you try r4145? The tmp file should vanish and the normal file be up-to-date. If not, you should get at least a message in command line, that the file could not be renamed.
comment:18 by , 14 years ago
comment:19 by , 14 years ago
Alright, I got a message to pop up in the CL when I ran r4152. Here's what it is:
Failed to rename file C:\Users\<User Name>\AppData\Roaming\JOSM\mirror_http___planet.openstreetmap.org_users_agreed_users_agreed.txt.tmp to C:\Users\<User Name>\AppData\Roaming\JOSM\mirror_http___planet.openstreetmap.org_users_agreed_users_agreed.txt. Failed to rename file C:\Users\<User Name>\AppData\Roaming\JOSM\mirror_http___planet.openstreetmap.org_users_agreed_users_disagreed.txt.tmp to C:\Users\<User Name>\AppData\Roaming\JOSM\mirror_http___planet.openstreetmap.org_users_agreed_users_disagreed.txt.
So, for some reason, JOSM can't rename the old text file in Windows 7 x64.
follow-up: 21 comment:20 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | needinfo → closed |
In [4153/josm]:
comment:21 by , 14 years ago
Replying to stoecker:
In [4153/josm]:
That fix did the trick. The files finally updated correctly. :)
IIRC, it is cached for 1 h. You can also remove the
mirror_http___planet.openstreetmap.org_users_agreed_users_agreed.txt
file from your preferences if you are of the impatient kind.