{"action":"created","issue":{"url":"https://api.github.com/repos/esl/MongooseIM/issues/437","labels_url":"https://api.github.com/repos/esl/MongooseIM/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/esl/MongooseIM/issues/437/comments","events_url":"https://api.github.com/repos/esl/MongooseIM/issues/437/events","html_url":"https://github.com/esl/MongooseIM/issues/437","id":74022442,"number":437,"title":"Delete default privacy list XEP-0016","user":{"login":"artefactop","id":1199371,"avatar_url":"https://avatars.githubusercontent.com/u/1199371?v=3","gravatar_id":"","url":"https://api.github.com/users/artefactop","html_url":"https://github.com/artefactop","followers_url":"https://api.github.com/users/artefactop/followers","following_url":"https://api.github.com/users/artefactop/following{/other_user}","gists_url":"https://api.github.com/users/artefactop/gists{/gist_id}","starred_url":"https://api.github.com/users/artefactop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artefactop/subscriptions","organizations_url":"https://api.github.com/users/artefactop/orgs","repos_url":"https://api.github.com/users/artefactop/repos","events_url":"https://api.github.com/users/artefactop/events{/privacy}","received_events_url":"https://api.github.com/users/artefactop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ludwikbukowski","id":6969609,"avatar_url":"https://avatars.githubusercontent.com/u/6969609?v=3","gravatar_id":"","url":"https://api.github.com/users/ludwikbukowski","html_url":"https://github.com/ludwikbukowski","followers_url":"https://api.github.com/users/ludwikbukowski/followers","following_url":"https://api.github.com/users/ludwikbukowski/following{/other_user}","gists_url":"https://api.github.com/users/ludwikbukowski/gists{/gist_id}","starred_url":"https://api.github.com/users/ludwikbukowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludwikbukowski/subscriptions","organizations_url":"https://api.github.com/users/ludwikbukowski/orgs","repos_url":"https://api.github.com/users/ludwikbukowski/repos","events_url":"https://api.github.com/users/ludwikbukowski/events{/privacy}","received_events_url":"https://api.github.com/users/ludwikbukowski/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-05-07T15:17:33Z","updated_at":"2015-10-06T08:53:30Z","closed_at":null,"body":"Hi,\r\nUsing 1.5.1, I'm trying to delete the privacy default list of a user but I always get the error conflict and only one session is opened with that user, this is how reproduce it:\r\n\r\n```\r\n# ./rel/mongooseim/bin/mongooseimctl user_resources web localhost\r\n38434078851430996789566631\r\n```\r\n\r\nSEND: Thu May 07 2015 17:02:55 GMT+0200 (CEST)\r\n```xml\r\n<iq xmlns='jabber:client' id='1' type='get'>\r\n  <query xmlns='jabber:iq:privacy'>\r\n  </query>\r\n</iq>\r\n```\r\nRECV: Thu May 07 2015 17:02:55 GMT+0200 (CEST)\r\n```xml\r\n<iq xmlns='jabber:client' type='result' id='1' to='web@localhost/38434078851430996789566631' from='web@localhost'>\r\n  <query xmlns='jabber:iq:privacy'/>\r\n</iq>\r\n```\r\n\r\nSEND: Thu May 07 2015 17:06:35 GMT+0200 (CEST)\r\n```xml\r\n<iq type='set' id='1'>\r\n<query xmlns='jabber:iq:privacy'>\r\n<list name='public'>\r\n<item order='1' action='deny' value='test@localhost' type='jid'/>\r\n</list>\r\n</query>\r\n</iq>\r\n```\r\nRECV: Thu May 07 2015 17:06:35 GMT+0200 (CEST)\r\n```xml\r\n<iq xmlns='jabber:client' type='set' id='push4046850369' to='web@localhost/38434078851430996789566631' from='web@localhost'>\r\n  <query xmlns='jabber:iq:privacy'>\r\n    <list name='public'/>\r\n  </query>\r\n</iq>\r\n```\r\nRECV: Thu May 07 2015 17:06:35 GMT+0200 (CEST)\r\n```xml\r\n<iq xmlns='jabber:client' type='result' id='1' to='web@localhost/38434078851430996789566631' from='web@localhost'/>\r\n```\r\n\r\nSEND: Thu May 07 2015 17:08:01 GMT+0200 (CEST)\r\n```xml\r\n<iq type='set' id='1'>\r\n<query xmlns='jabber:iq:privacy'>\r\n<default name='public'/>\r\n</query>\r\n</iq>\r\n```\r\nRECV: Thu May 07 2015 17:08:01 GMT+0200 (CEST)\r\n```xml\r\n<iq xmlns='jabber:client' type='result' id='1' to='web@localhost/38434078851430996789566631' from='web@localhost'/>\r\n```\r\n\r\nSEND: Thu May 07 2015 17:09:35 GMT+0200 (CEST)\r\n```xml\r\n<iq type='set' id='1'>\r\n<query xmlns='jabber:iq:privacy'>\r\n<active name='public'/>\r\n</query>\r\n</iq>\r\n```\r\nRECV: Thu May 07 2015 17:09:35 GMT+0200 (CEST)\r\n```xml\r\n<iq xmlns='jabber:client' type='result' id='1' to='web@localhost/38434078851430996789566631' from='web@localhost'/>\r\n```\r\n\r\nSEND: Thu May 07 2015 17:10:26 GMT+0200 (CEST)\r\n```xml\r\n<iq type='get' id='1'>\r\n<query xmlns='jabber:iq:privacy'>\r\n</query>\r\n</iq>\r\n```\r\nRECV: Thu May 07 2015 17:10:26 GMT+0200 (CEST)\r\n```xml\r\n<iq xmlns='jabber:client' type='result' id='1' to='web@localhost/38434078851430996789566631' from='web@localhost'>\r\n  <query xmlns='jabber:iq:privacy'>\r\n    <active name='public'/>\r\n    <default name='public'/>\r\n    <list name='public'/>\r\n  </query>\r\n</iq>\r\n```\r\n\r\n**At this point the list public is default and active**\r\n\r\nSEND: Thu May 07 2015 17:11:32 GMT+0200 (CEST)\r\n```xml\r\n<iq type='set' id='1'>\r\n<query xmlns='jabber:iq:privacy'>\r\n<active/>\r\n</query>\r\n</iq>\r\n```\r\nRECV: Thu May 07 2015 17:11:32 GMT+0200 (CEST)\r\n```xml\r\n<iq xmlns='jabber:client' type='result' id='1' to='web@localhost/38434078851430996789566631' from='web@localhost'/>\r\n```\r\n\r\n**No active list now**\r\n\r\nSEND: Thu May 07 2015 17:12:53 GMT+0200 (CEST)\r\n```xml\r\n<iq type='set' id='edit1'>\r\n<query xmlns='jabber:iq:privacy'>\r\n<list name='public'/>\r\n</query>\r\n</iq>\r\n```\r\nRECV: Thu May 07 2015 17:12:53 GMT+0200 (CEST)\r\n```xml\r\n<iq xmlns='jabber:client' type='error' id='edit1' to='web@localhost/38434078851430996789566631' from='web@localhost'>\r\n  <query xmlns='jabber:iq:privacy'>\r\n<list name='public'/>\r\n</query>\r\n  <error type='cancel' code='409'>\r\n    <conflict xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>\r\n  </error>\r\n</iq>\r\n```\r\n\r\nWhy I can not delete the list?"},"comment":{"url":"https://api.github.com/repos/esl/MongooseIM/issues/comments/145789355","html_url":"https://github.com/esl/MongooseIM/issues/437#issuecomment-145789355","issue_url":"https://api.github.com/repos/esl/MongooseIM/issues/437","id":145789355,"user":{"login":"ludwikbukowski","id":6969609,"avatar_url":"https://avatars.githubusercontent.com/u/6969609?v=3","gravatar_id":"","url":"https://api.github.com/users/ludwikbukowski","html_url":"https://github.com/ludwikbukowski","followers_url":"https://api.github.com/users/ludwikbukowski/followers","following_url":"https://api.github.com/users/ludwikbukowski/following{/other_user}","gists_url":"https://api.github.com/users/ludwikbukowski/gists{/gist_id}","starred_url":"https://api.github.com/users/ludwikbukowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludwikbukowski/subscriptions","organizations_url":"https://api.github.com/users/ludwikbukowski/orgs","repos_url":"https://api.github.com/users/ludwikbukowski/repos","events_url":"https://api.github.com/users/ludwikbukowski/events{/privacy}","received_events_url":"https://api.github.com/users/ludwikbukowski/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T08:53:30Z","updated_at":"2015-10-06T08:53:30Z","body":"Due to XEP 0016: Privacy Lists you ought to set your default list to another and then you can successfully remove it. The list cannot be also an active list. It stands here: http://xmpp.org/extensions/xep-0016.html \r\n\r\n``(...)  the user MUST first set another list to active or default before attempting to remove it. (...)``\r\n\r\n"}}