Attachments (1)
Change History (19)
by , 13 years ago
Attachment: | josm-5064-showing-up-as-4878.png added |
---|
comment:1 by , 13 years ago
comment:3 by , 13 years ago
Strange … MOTD should be reloaded automatically if the version changes. What are the values of cache.motd.html.version
and josm.version
in the advanced settings?
comment:4 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:5 by , 12 years ago
AM909 in #osm just reported this:
< AM909> Running 5159, my start page says "Active version '4279' should be updated! The current stable snapshot is 5047 and 5159 is the unstable development version." Anyone else see this?
< AM909> Help confirms I am running 5159
< AM909> cache... is 5159
< AM909> as is josm.version
comment:6 by , 12 years ago
Code looks good. It should be possible that no MOTD is there, but old files should not be possible. There should have been Stacktraces in commandline in previous calls of JOSM. We would need these.
I assume you are using windows and there is again a file-lock-issue involved, though also in this case the code looks clean to me.
Please change "cache.motd.html.version" to old revision by hand and have a look if there are error messages and if the issue reappears. If there is a stream conversion error or a write error for MOTD file we have at least an indication what may be wrong.
comment:7 by , 12 years ago
Cc: | added |
---|
comment:8 by , 12 years ago
comment:10 by , 12 years ago
I'm up at r5181 now, and the start page no longer mentions what version I'm running, nor what the current tested or latest are. It's been that way for the last several versions. It starts:
JOSM – Java OpenStreetMap Editor 2012-04-14 (5181) The entry page of josm.openstreetmap.de has been simplified and re-organized... 2012-02-07 (4905) Shortcuts for the Relation Editor have been added:... 2012-02-02 (4897 ...) Conflicting shortcuts in JOSM and plugins get fixed... More news ... Help translating JOSM into your language! Getting Started...
comment:11 by , 12 years ago
Ooops. Copied the test back to StartupPage. It got moved to old news VersionHistory page by accident :-)
comment:12 by , 12 years ago
I've got a running instance of josm-latest r5361 (current version) showing "You should update!" on the startup page. Will investigate and keep it running.
comment:13 by , 12 years ago
josm-latest r5361
cache.motd.html.version = 5361 josm.version = 5361 $ls -l ~/.josm/cache/motd.html ... 2012-07-26 08:30 .../.josm/cache/motd.html
comment:14 by , 12 years ago
Server log says:
82.212.39.199 - - [26/Jul/2012:08:30:35 +0200] "GET /wiki/StartupPage HTTP/1.1" 200 12342 16s "-" "JOSM/1.5 (5361 en) Java/1.6.0_33"
Trac log says:
2012-07-26 08:30:36,211 Trac[JOSM] WARNING: PAGE: StartupPage AGENT: JOSM/1.5 (5361 en) Java/1.6.0_33
So you accessed the page with correct revision and also should have got a valid page in return. Is the motd.html correct and the display wrong or are both wrong?
comment:15 by , 12 years ago
motd.html has this line:
<h2><b>You should <a href="http://josm.openstreetmap.de/">update</a>!</b></h2>
full motd.html: http://pastebin.com/UTiFZ8P3
comment:17 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | needinfo → closed |
It took 16 seconds to deliver your page. Probably it is some inconsistency in server.
I optimized the code, so it no longer uses a probably insecure method to pass the version to the wiki page. This should fix this issue
Can not reproduce with empty preference dir: