add paste.kde.org

Bug #700644 reported by Nitesh Mistry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pastebinit
Fix Released
Undecided
Unassigned
pastebinit (Debian)
Fix Released
Unknown

Bug Description

From the pastebin's api page ( http://paste.kde.org/doc/api/ ):

Mandatory Paramaters:
paste_data - The text to be pasted
paste_lang - The development language used
api_submit - Set this parameter to true
mode - Pass xml or json to this parameter

AFAIK, it does not need JS or captcha in order to work.

Changed in pastebinit:
assignee: nobody → Nitesh Mistry (mistrynitesh)
status: New → In Progress
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Thank you very much for your contribution. I suppose you have tested this?

I'll push this to Debian in a minute or so. And I think I can probably commit it to upstream as well.

Revision history for this message
Nitesh Mistry (mistrynitesh) wrote :

Yes I have tested it. And as mentioned in commit message, it returns only "http://paste.kde.org/" as the output without the paste #id. But I think its the same with paste.debian.net as well.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Oh, just now I read your commit message "Pastes to paste.kde.org fine but returns only "http://paste.kde.org/" without the #id of the paste." In that case, there is something wrong. Did you try with too long a text to paste? But I suppose, there is something wrong with the format of the config file. I can accept a working patch, but I currently don't have enough time to help you debug it.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Yes, paste.debian.net returns just the host itself without the rest of the URL in certain circumstances. That is, if the file/text is too long for paste.debian.net to process. Did the same thing happen in your tests?

Revision history for this message
Nitesh Mistry (mistrynitesh) wrote :

The paste is only 3 words in one line ("another test text").

In kde:
http://paste.kde.org/2068/

Revision history for this message
Stéphane Graber (stgraber) wrote :

Merged upstream and fixed to return the right URL.

=== modified file 'pastebin.d/paste.kde.org.conf'
--- pastebin.d/paste.kde.org.conf 2011-01-09 12:48:31 +0000
+++ pastebin.d/paste.kde.org.conf 2011-01-09 18:16:36 +0000
@@ -11,6 +11,7 @@
 private = paste_private
 api = api_submit
 mode = mode
+regexp = regexp

 [defaults]
 private = 0
@@ -18,3 +19,4 @@
 expire = 86400
 api = 1
 mode = xml
+regexp = "<id>(.*)</id>"

Changed in pastebinit:
status: In Progress → Fix Committed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

It seems that pastebinit may currently be generally broken. It is at least for me in lucid and for paste.debian.net: bug 700769

Changed in pastebinit:
assignee: Nitesh Mistry (mistrynitesh) → nobody
Changed in pastebinit (Debian):
status: Unknown → New
Changed in pastebinit:
status: Fix Committed → Fix Released
Changed in pastebinit (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.