Opened 12 years ago
Closed 10 years ago
#8571 closed enhancement (fixed)
Enhance JOSM bug report system
Reported by: | Don-vip | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 14.08 |
Component: | Core bugreport | Version: | |
Keywords: | privacy | Cc: |
Description (last modified by )
We have more and more bug reports without all the required information we need to reproduce it quickly or have a better understanding of it.
Users are often available to reply to our requests, but sometimes they are not. I'm sure there are some of "needinfo anonymous" tickets that could have been easily fixed if we had the required info.
Even when reporters willingly help us, it's often a loss of time, both for them and us.
I think of several enhancements that could help us to improve the situation when the user chooses to report a bug:
Increase the size limit of text that can be pasted to our Trac instance, in order to avoid incomplete stracktraces-> Done (r5827)Add some wiki formatting to have nicer bug reports.-> Done (r7419)Add how JOSM has been started (Webstart or not, command-line arguments)-> Done (r5831)- Automatically attach the commands stack that led to the JOSM bug
- Automatically attach some of the JOSM preferences, to be discussed to avoid privacy concerns
- Automatically export and attach active layers when the crash occurred (to be also discussed for privacy concerns). An external and configurable free file hosting service support may be implemented to upload large .osm files that could not be stored on this Trac instance. See #6804
What do you think ?
Attachments (1)
Change History (27)
follow-up: 2 comment:1 by , 12 years ago
comment:2 by , 12 years ago
Replying to skyper:
Please, no upload of private data without extra confirmation.
Of course. We just need to define what is private data and what is public data.
I am not sure if we really need an external host. Usually, you only need a small file for demonstration and JOSM even supports gz and bz2.
I agree, but when a bug occurs on a large dataset, it would be very difficult (quite impossible ?) to automatically reduce it to the minimal dataset leading to the exception.
EDIT: thanks for the above tickets, I didn't think they already exist.
follow-up: 5 comment:3 by , 12 years ago
Replying to Don-vip:
- Increase the size limit of text that can be pasted to our Trac instance, in order to avoid incomplete stracktraces
Wow, I have found the reason of this. Nothing to do with Trac, neither Java or JOSM. There's a limitation in Windows that prevents us to open URLs longer than 2083 characters with the default browser (same behaviour observed with JOSM's PlatformHookWindows.openUrl() and Java's Desktop.getDesktop().browse(uri) ). It's even worse if the browser is Internet Explorer, the GET requests cannot exceed 2047 characters.
No idea how to fix this.
EDIT: the first suggested solution works if we use tinyurl to shorten URL (it's the only shortening service that works with this URL):
Original URL:
http://josm.openstreetmap.de/josmticket?tdata=QnVpbGQtRGF0ZTogMjAxMy0wNC0wMyAyMjozNzozNQpSZXZpc2lvbjogNTgyNApJcy1Mb2NhbC1CdWlsZDogdHJ1ZQoKSWRlbnRpZmljYXRpb246IEpPU00vMS41ICg1ODI0IFNWTiBlbl9HQikgV2luZG93cyA4Ck1lbW9yeSBVc2FnZTogMTI5IE1CIC8gMTgxMyBNQiAoNzQgTUIgYWxsb2NhdGVkLCBidXQgZnJlZSkKSmF2YSB2ZXJzaW9uOiAxLjYuMF80MywgU3VuIE1pY3Jvc3lzdGVtcyBJbmMuLCBKYXZhIEhvdFNwb3QoVE0pIDY0LUJpdCBTZXJ2ZXIgVk0KT3BlcmF0aW5nIHN5c3RlbTogV2luZG93cyA4CkRhdGFzZXQgY29uc2lzdGVuY3kgdGVzdDogTm8gcHJvYmxlbXMgZm91bmQKClBsdWdpbjogRGlyZWN0RG93bmxvYWQgKDI5MjIyKQpQbHVnaW46IERpcmVjdFVwbG9hZCAoMjkyMTApClBsdWdpbjogRml4QWRkcmVzc2VzICgyOTIxMCkKUGx1Z2luOiBIb3VzZU51bWJlclRhZ2dpbmdUb29sICgyOTIxMCkKUGx1Z2luOiBPcGVuaW5nSG91cnNFZGl0b3IgKDI5MjEwKQpQbHVnaW46IFJvYWRTaWducyAoMjk0MTcpClBsdWdpbjogVG9tYlBsdWdpbiAoNDEpClBsdWdpbjogYnVpbGRpbmdzX3Rvb2xzICgyOTIxMCkKUGx1Z2luOiBjYWRhc3RyZS1mciAoMjkyMTApClBsdWdpbjogY29udG91cm1lcmdlICgxMDAzKQpQbHVnaW46IGRvd25sb2FkX2Fsb25nICgyOTIxMCkKUGx1Z2luOiBleHRfdG9vbHMgKDI5MjEwKQpQbHVnaW46IGdlb3Rvb2xzICgyOTMxOSkKUGx1Z2luOiBncHhmaWx0ZXIgKDI5MjIyKQpQbHVnaW46IGltYWdlc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lzcGF0Y2hUaHJlYWQucHVtcEV2ZW50c0ZvckZpbHRlcihFdmVudERpc3BhdGNoVGhyZWFkLmphdmE6MTg0KQoJYXQgamF2YS5hd3QuRXZlbnREaXNwYXRjaFRocmVhZC5wdW1wRXZlbnRzRm9ySGllcmFyY2h5KEV2ZW50RGlzcGF0Y2hUaHJlYWQuamF2YToxNzQpCglhdCBqYXZhLmF3dC5FdmVudERpc3BhdGNoVGhyZWFkLnB1bXBFdmVudHMoRXZlbnREaXNwYXRjaFRocmVhZC5qYXZhOjE2OSkKCWF0IGphdmEuYXd0LkV2ZW50RGlzcGF0Y2hUaHJlYWQucHVtcEV2ZW50cyhFdmVudERpc3BhdGNoVGhyZWFkLmphdmE6MTYxKQoJYXQgamF2YS5hd3QuRXZlbnREaXNwYXRjaFRocmVhZC5ydW4oRXZlbnREaXNwYXRjaFRocmVhZC5qYXZhOjEyMikK
Tiny URL:
http://tinyurl.com/caw7ubh
It works with Chrome 26, Firefox 20, and strangely, even with IE10.
comment:4 by , 12 years ago
Summary: | Enhance JOSM bug report system → [Patch] Enhance JOSM bug report system |
---|
follow-up: 6 comment:5 by , 12 years ago
Replying to Don-vip:
Replying to Don-vip:
- Increase the size limit of text that can be pasted to our Trac instance, in order to avoid incomplete stracktraces
Wow, I have found the reason of this. Nothing to do with Trac, neither Java or JOSM. There's a limitation in Windows that prevents us to open URLs longer than 2083 characters with the default browser (same behaviour observed with JOSM's PlatformHookWindows.openUrl() and Java's Desktop.getDesktop().browse(uri) ). It's even worse if the browser is Internet Explorer, the GET requests cannot exceed 2047 characters.
No idea how to fix this.
EDIT: the first suggested solution works if we use tinyurl to shorten URL (it's the only shortening service that works with this URL):
Original URL:
http://josm.openstreetmap.de/josmticket?tdata=QnVpbGQtRGF0ZTogMjAxMy0wNC0wMyAyMjozNzozNQpSZXZpc2lvbjogNTgyNApJcy1Mb2NhbC1CdWlsZDogdHJ1ZQoKSWRlbnRpZmljYXRpb246IEpPU00vMS41ICg1ODI0IFNWT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YXZhLmF3dC5FdmVudERpc3BhdGNoVGhyZWFkLnB1bXBFdmVudHMoRXZlbnREaXNwYXRjaFRocmVhZC5qYXZhOjE2OSkKCWF0IGphdmEuYXd0LkV2ZW50RGlzcGF0Y2hUaHJlYWQucHVtcEV2ZW50cyhFdmVudERpc3BhdGNoVGhyZWFkLmphdmE6MTYxKQoJYXQgamF2YS5hd3QuRXZlbnREaXNwYXRjaFRocmVhZC5ydW4oRXZlbnREaXNwYXRjaFRocmVhZC5qYXZhOjEyMikKTiny URL:
http://tinyurl.com/caw7ubhIt works with Chrome 26, Firefox 20, and strangely, even with IE10.
o_O There surely must be another way. :)
comment:6 by , 12 years ago
Replying to bastiK:
o_O There surely must be another way. :)
Yes :) Another method, without any external service, is to compress the stacktrace before encoding it in Base64. With the previously given example, I have the following results with GZIPOutputStream and ZipOutputStream:
Data: 3543 characters Base64: 4724 characters -> KO GZIP: 1104 bytes GZIP + Base64: 1512 characters -> OK ZIP: 1210 bytes ZIP + Base64: 1660 characters -> OK
So GZIP is the best choice:
ByteArrayOutputStream out = new ByteArrayOutputStream(); GZIPOutputStream gzip = new GZIPOutputStream(out); gzip.write(data.getBytes("UTF-8")); gzip.close(); String gzdata = Base64.encode(out.toString(), true);
follow-up: 8 comment:7 by , 12 years ago
Maybe a small cgi-script on the server, that reads POST data and redirects the user to the trac URL with GET parameter?
follow-ups: 10 15 comment:8 by , 12 years ago
Replying to bastiK:
Maybe a small cgi-script on the server, that reads POST data and redirects the user to the trac URL with GET parameter?
What do you think does /josmticket do? We need to add decompression only :-)
Making it gdata as argument for compressed data.
comment:10 by , 12 years ago
Description: | modified (diff) |
---|---|
Summary: | [Patch] Enhance JOSM bug report system → Enhance JOSM bug report system |
comment:11 by , 12 years ago
Description: | modified (diff) |
---|
comment:12 by , 12 years ago
Description: | modified (diff) |
---|
comment:14 by , 12 years ago
Description: | modified (diff) |
---|
comment:15 by , 12 years ago
Replying to stoecker:
Replying to bastiK:
Maybe a small cgi-script on the server, that reads POST data and redirects the user to the trac URL with GET parameter?
What do you think does /josmticket do? We need to add decompression only :-)
Making it gdata as argument for compressed data.
Ok, I get it, you cannot open POST request in a browser window. Providing a service like tinyurl on our server for this sole purpose would be quite bothersome, so let's hope the compression is enough for now!
comment:16 by , 12 years ago
Description: | modified (diff) |
---|
comment:18 by , 12 years ago
Description: | modified (diff) |
---|
comment:23 by , 12 years ago
Keywords: | privacy added |
---|
comment:24 by , 11 years ago
Component: | Core → Core bugreport |
---|---|
Keywords: | bug report removed |
comment:25 by , 10 years ago
Description: | modified (diff) |
---|
comment:26 by , 10 years ago
Milestone: | → 14.08 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
+10
See also #2557, #6804 and #7708.
Please, no upload of privat data without extra confirmation.
I am not sure if we really need an external host. Usually, you only need a small file for demonstration and JOSM even supports gz and bz2.
Thought the limit was 4mb though.