Changeset 3832 in josm for trunk


Ignore:
Timestamp:
2011-01-30T11:51:40+01:00 (13 years ago)
Author:
stoecker
Message:

fix too long ticket report URL and move additional texts to server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java

    r3478 r3832  
    2020import javax.swing.JScrollPane;
    2121import javax.swing.JTextArea;
     22
     23import org.apache.commons.codec.binary.Base64;
    2224
    2325import org.openstreetmap.josm.Main;
     
    8890
    8991                try {
    90                     final int maxlen = 7000;
     92                    final int maxlen = 6000;
    9193                    StringWriter stack = new StringWriter();
    9294                    e.printStackTrace(new PrintWriter(stack));
     
    107109
    108110                    URL url = new URL("http://josm.openstreetmap.de/josmticket?" +
    109                             "data="+
    110                             Base64.encode(
    111                                     // To note that it came from this code
    112                                     "keywords=template_report&" +
    113                                     "description=" + java.net.URLEncoder.encode(
    114                                             // Note: This doesn't use tr() intentionally, we want bug reports in English
    115                                             "What steps will reproduce the problem?\n"
    116                                             + " 1. \n"
    117                                             + " 2. \n"
    118                                             + " 3. \n"
    119                                             + "\n"
    120                                             + "What is the expected result?\n\n"
    121                                             + "What happens instead?\n\n"
    122                                             + "Please provide any additional information below. Attach a screenshot if\n"
    123                                             + "possible.\n\n"
    124                                             + "{{{\n" + urltext + "\n}}}\n",
    125                                     "UTF-8")));
     111                            "tdata="+Base64.encodeBase64URLSafeString(urltext.getBytes("UTF8")));
    126112
    127113                    JPanel p = new JPanel(new GridBagLayout());
Note: See TracChangeset for help on using the changeset viewer.