Ticket #3142 (new defect)

Opened 13 months ago

Last modified 9 hours ago

JOSM applet class no longer functional

Reported by: stoecker Owned by: team
Priority: major Component: Core
Version: latest Keywords:
Cc:

Description

Well, nothing more to say.

Attachments

Change History

Changed 13 months ago by Gubaer

See r1879 for a some improvements:

  • no more hacks in the IO subsystem with Sun specific classes
  • catches security exceptions in ImageProvider
  • catches security exceptions in slipply map chooser
  • catches security exceptions when downloading from the API server
  • disables open an save button in the toolbar in applet mode

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.

Changed 9 months 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.

Changed 9 months 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.

Changed 4 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

Changed 4 months ago by stoecker

I get an class cast exception when starting. MainApplet cannot be cast to JFrame.

Changed 4 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?).

Changed 4 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)

http://josm.openstreetmap.de/download/applet.html

Changed 22 hours 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.

Changed 21 hours 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.

Changed 20 hours 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.

Changed 9 hours ago by stoecker

See #5406.

Changed 9 hours 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.

Add/Change #3142 (JOSM applet class no longer functional)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from team. Next status will be 'new'
Next status will be 'needinfo'The owner will change to stoecker
as duplicate The resolution will be set to duplicate. Next status will be 'closed'The specified ticket will be cross-referenced with this ticket
The owner will change from team to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.