Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete node permissen #29

Open
robotnic opened this issue Jan 16, 2015 · 2 comments
Open

delete node permissen #29

robotnic opened this issue Jan 16, 2015 · 2 comments

Comments

@robotnic
Copy link

delete node permission

Request

{"type":0,"data":["xmpp.buddycloud.item.delete",{"node":"/user/seppl@laos.buddycloud.com/posts","id":"a9d2d5b2-c35c-4dec-8762-36d45afa8e13"}],"id":6}

Response

{"id":6,"type":1,"data":[{"type":"modify","condition":"bad-request"},null]}

"seppl" is the loged in and is the owner of the node and author of the item.
What's wrong with this command?

@lloydwatkin
Copy link
Member

Can you provide logs from the server? There are two conditions here that could cause a bad request response, a null pointer exception or a bad argument (https://github.com/buddycloud/buddycloud-server-java/blob/master/src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set/ItemDelete.java#L80-L86).

I use this call in my own client and "know" it works fine. I wonder if its something to do with a multi-tenanted server, @abmargb would need to help with this.

@robotnic
Copy link
Author

Sorry, I don't have server logs. I use the buddycloud vhost.

The permission problem does not occure if my webclient uses
demo.buddycloud.org as backend.

laos.buddycloud.com maybe is configured not correct.

To testing use: http://datenkueche.com/buddycloud/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants