Should Room Members be admin when they join a room?

Wildfire 3.0.1 issue: If I have my username in the xmpp.muc.sysadmin.jid every time I join a room no matter what the permissions of that username for the room, I show up as an admin for the room. When I remove my own account from Group Chat, Room Options, User Permissions, Room Members the @ will then go away from my username in the room. A few times now I’ve got an error on the Wildfire Administration Console after doing such.

Exception:

java.lang.NullPointerException

at java.util.ArrayList.addAll(Unknown Source)

at org.jivesoftware.wildfire.muc.spi.IQOwnerHandler.handleItemsElement(IQOwnerHand ler.java:261)

at org.jivesoftware.wildfire.muc.spi.IQOwnerHandler.handleIQ(IQOwnerHandler.java:9 8)

at org.jivesoftware.wildfire.admin.muc_002droom_002daffiliations_jsp._jspService(m uc_002droom_002daffiliations_jsp.java:139)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:830)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:65)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:41)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:69)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:471)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:633)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

at org.mortbay.http.HttpServer.service(HttpServer.java:909)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

A simple refresh of the browser and you’re back in business.

Thanks for your time.

Hey remote,

remote wrote:

Wildfire 3.0.1 issue: If I have my username in the xmpp.muc.sysadmin.jid every time I join a room no matter what the permissions of that username for the room, I show up as an admin for the room.

That is correct so it is expected. Users that are admins of the group chat service will have an affiliation of owner and role of moderator.

When I remove my own account from Group Chat, Room Options, User Permissions, Room Members the @ will then go away from my username in the room.

Not sure what you mean by this. I did the following:

  1. added admin@example as admin of the group chat service

  2. created a new room

  3. logged in as admin and joined the new room

  4. Tried to delete admin as a room owner from the admin console but failed since the room cannot stay without owner

  5. Added some other user as a room owner from the admin console

  6. Deleted the admin user as a room owner

  7. The admin user is no longer a moderator but a participant

A few times now I’ve got an error on the Wildfire Administration Console after doing such.

Exception:

java.lang.NullPointerException

at java.util.ArrayList.addAll(Unknown Source)

at org.jivesoftware.wildfire.muc.spi.IQOwnerHandler.handleItemsElement(IQOwnerHand ler.java:261)

at org.jivesoftware.wildfire.muc.spi.IQOwnerHandler.handleIQ(IQOwnerHandler.java:9 8)

at org.jivesoftware.wildfire.admin.muc_002droom_002daffiliations_jsp._jspService(m uc_002droom_002daffiliations_jsp.java:139)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:830)

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:65)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:41)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:69)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:98)

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica tionHandler.java:821)

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:471)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:633)

at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)

at org.mortbay.http.HttpServer.service(HttpServer.java:909)

at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)

at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)

at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)

at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)

at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)

at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Tried to reproduce this error with the steps I described above and it worked fine. Could you tell me how to reproduce this problem?

Thanks,

– Gato

I did not want to bother users in current rooms, so I did the following:

  1. Create New User newuser@server

  2. Add Administrator (JID): newuser@server

  3. Create New Room, Room ID: newusers@server

  4. Make Room Members-only ?Key to feature ;)?

  5. User Permissions, Add User (JID): newuser@server Member

  6. Login and join the room, your status will be moderator.

  7. User Permissions, newuser@server Delete

Hope this helps.