formorer / paste.pl

paste.debian.net implementation
http://paste.debian.net
GNU Affero General Public License v3.0
35 stars 8 forks source link

Adding a paste using XML-RPC doesn't work #5

Closed alezost closed 10 years ago

alezost commented 10 years ago

The error is:

Can't use string ("...") as a HASH ref while "strict refs" in use at lib//Paste.pm line 135.

As far as i understand $args variable in Paste.pm (https://github.com/formorer/paste.pl/blob/master/lib/Paste.pm#L134) get a string value (it contains paste code) when it is called from server.pl (https://github.com/formorer/paste.pl/blob/master/server.pl#L62). So $args->{anything} doesn't make sense.

formorer commented 10 years ago

Upps, I changed the caller API for the add function a few weeks ago and forgot to fix the xml-rpc api. I fixed the relevant parts and it should work now.

alezost commented 10 years ago

Yes, it works now, thank you.

formorer commented 10 years ago

On Sat, 30 Nov 2013, Alex Kost wrote:

Yes, it works now, thank you. Great, if you drop me a mail after you published your client, I can add it to the list of clients.

Alex