Summary: | Default text engine 'kde' fails when pasting text longer than 513/741 characters | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | Elias Probst <mail> |
Component: | widget-pastebin | Assignee: | Thomas Georgiou <TAGeorgiou> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adaptee, asouza, dariocambie |
Priority: | NOR | Keywords: | junior-jobs |
Version: | 4.7.90 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-workspace/a7d0ef49cb7839d42646334459f1140ed32c0a41 | Version Fixed In: | 4.11.0 |
Sentry Crash Report: |
Description
Elias Probst
2011-12-23 08:21:05 UTC
Hello, Thanks for reporting! The 'GET' shouldn't be a problem as it's supported by the API: http://paste.kde.org/doc/api/ Other backends work well with the same text. Interesting. I'll investigate but it would be good if you could take a look too as I'm a little bit out of time. Thanks! This is a good junior job for someone looking into starting kde development :) The problem is indeed the GET method (probably the URL becomes too long?) since changing function method() { return "GET"; } to function method() { return "POST"; } in kde/kde-workspace/plasma/generic/dataengines/share/backends/kde/contents/code/main.js make the plasmoid works with long text (cfr. http://paste.kde.org/528422/) Git commit a7d0ef49cb7839d42646334459f1140ed32c0a41 by Feng Chao. Committed on 10/04/2013 at 15:44. Pushed by fengchao into branch 'master'. Fix Bug 289647 - Default text engine 'kde' fails when pasting text longer than 513/741 characters Use "post" instead of "get" method for kde paste bin. HTTP get method only support 1024 url length. FIXED-IN: 4.11.0 M +1 -1 plasma/generic/dataengines/share/backends/kde/contents/code/main.js http://commits.kde.org/kde-workspace/a7d0ef49cb7839d42646334459f1140ed32c0a41 |