Changeset 5837 in josm for trunk/src/org


Ignore:
Timestamp:
2013-04-09T21:06:54+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8586 - Remote Control: allow imagery handler to work without any mapFrame + add wiki link in HTTP 400 error message

Location:
trunk/src/org/openstreetmap/josm/io/remotecontrol
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java

    r5651 r5837  
    191191                    usage.append("</li>");
    192192                }
     193                String websiteDoc = "http://josm.openstreetmap.de/wiki/Help/Preferences/RemoteControl";
    193194                String help = "No command specified! The following commands are available:<ul>"
    194195                        + usage.toString()
    195                         + "</ul>";
     196                        + "</ul>" + "See <a href=\""+websiteDoc+"\">"+websiteDoc+"</a> for complete documentation.";
    196197                sendBadRequest(out, help);
    197198            } else {
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/handler/ImageryHandler.java

    r5680 r5837  
    4040    @Override
    4141    protected void handleRequest() throws RequestHandlerErrorException {
    42         if (Main.map == null) //Avoid exception when creating ImageryLayer with null MapFrame
    43         {
    44             throw new RequestHandlerErrorException();
    45         }
    4642        String url = args.get("url");
    4743        String title = args.get("title");
Note: See TracChangeset for help on using the changeset viewer.