Ticket #3142 (new defect)
JOSM applet class no longer functional
| Reported by: | stoecker | Owned by: | team |
|---|---|---|---|
| Priority: | critical | Component: | Core |
| Version: | latest | Keywords: | |
| Cc: |
Description
Well, nothing more to say.
Attachments
Change History
comment:2 Changed 2 years ago by stoecker
Are there other bigger issues than the "download data"? We could add a redirect in josm.openstreetmap.de apache and install applet there, so that access is possible. Every data request would go through josm.openstreetmap.org then but I think for testing that is acceptable.
comment:3 Changed 2 years ago by Gubaer
Last time I have been working on it (4 months ago according to this ticket) I was able to start up the applet. I couldn't run additional tests because it wasn't possible to load data.
Configuring josm.openstreetmap.org (not josm.openstreetmap.de?) as reverse proxy is a great idea.
- the applet could be loaded from, say, http://josm.openstreetmap.de/applet
- the API URL could be, say, http://josm.openstreetmap.de/api/0.6
comment:4 Changed 21 months ago by stoecker
Ok. I copied the applet code into download directory and added the api redirect. Following works fine now: josm.openstreetmap.de/api/0.6/capabilities
comment:5 Changed 21 months ago by stoecker
I get an class cast exception when starting. MainApplet cannot be cast to JFrame.
comment:6 Changed 21 months ago by stoecker
The API URL should be changed by the applet class, so it matches the server or passed in applet html code (is this possible?).
comment:7 Changed 21 months ago by stoecker
(In [3239]) some applet fixes
The applet.html now passes api url and links to latest instead of tested (allows better testing of fixes)
comment:8 Changed 17 months ago by stoecker
Now http://josm.openstreetmap.de/applet has been setup, which should be a final destination. Missing is server support for preferences storing and probably a lot of fine tuning.
Also it needs to be decided what arguments may be passed to the applet html code and how they should be handled.
Suggestions welcome.
Anyone willing to write the preferences storage python code.
comment:9 Changed 17 months ago by stoecker
Java improvements:
- Actually authentication is done by Trac for the applet. So JOSM should first try to get preferences and when this fails ask for username/password. Currently it does the other way round.
- Loading of failed icons and classes goes to server:
/META-INF/services/javax.xml.parsers.SAXParserFactory /META-INF/services/org.xml.sax.driver /images/styles/standard/sport/karting.png /images/styles/sport/karting.png /images/sport/karting.png /images/styles/standard/fixme.png /ch/randelshofer/quaqua/QuaquaLookAndFeel.class
- Language detection and loading does not work. Only english is supported ATM.
comment:10 Changed 17 months ago by stoecker
For registered users the applet now gets XML of settings and also puts XML of settings onto server. Probably JOSM code needs to be adapted to handle this correctly. Still missing is a way to use the basic-authentication supplied by the username/password dialog to login onto josm.openstreetmap.de.
comment:11 Changed 17 months ago by stoecker
See #5406.
comment:12 Changed 17 months ago by stoecker
Server now does for /user/preferences:
- when unauthorized return 401
- on POST return 200 and the data itself when storing data was ok
- on GET return 200 and data when data found
- return 400 when no data found
- other codes for other errors may exit in future.
comment:13 Changed 13 months ago by stoecker
- Priority changed from major to critical
Now the server does use the login information of JOSM to login even if TRAC is not logged in.
The applet itself seems to be broken again. it should not ask for OSM login, but for login data to JOSM page. It does so, after the first dialog is closed --> should be other way round.
Also trying to lot motd.html from server should be fixed.



See r1879 for a some improvements:
The applet launches and runs but AFAIK I can't download data unless the applet was loaded from api.openstreetmap.org. How can we get it installed there for testing? Or, initially, at least on api06.dev.openstreetmap.org?
Later we could add an applet parameter for a bounding box and include JOSM as alternative to Potlach in the editor tab on http://www.openstreetmap.org.