Skip navigation
5408 Views 10 Replies Latest reply: Jun 8, 2009 8:48 PM by wroot RSS
Guenther Niess KeyContributor 305 posts since
Jun 19, 2008
Currently Being Moderated

May 8, 2009 4:28 AM

[Bugfix] Issues with multiple conferences services

I've worte two patches for JM-1464.

  • createMUCService.patch: This patch should fix the bug that an admin is able to create Multi-User Chat services with an invalid service name.
  • createAndLoadRoom.patch: This patch should fix the problems with creating a room with same ID of the room in another service and that rooms migrates between different services.

 

The issue on creating new rooms (selecting the alphabetically first conference service in dropdown menu and not the current conference) service still exists.

 

Please test this patches and leave a comment.

 

Best Regards

Attachments:
  • wroot KeyContributor 7,044 posts since
    Jan 24, 2005

    Hi, thanks for your patches. I can't test them as i cant get my Openfire SVN copy to compile with Netbeans. I have created the project as i did with Spark (and it is working) based on the doc http://www.igniterealtime.org/community/docs/DOC-1521 But it gives me an error:

     

    clean:
    Target "jar" does not exist in the project "Openfire".
    BUILD FAILED (total time: 0 seconds)

     

    So, maybe someone else can test these patches, or maybe you can provide the compiled jars here.

  • wroot KeyContributor 7,044 posts since
    Jan 24, 2005

    I have compiled your patches (does the order of applying is important?). I see that now it doesnt allow to create a service with a space. Underscores are not allowed as well. Why?

     

    If i try to create the room with the same ID in the second service i get an exception:

     

    java.lang.NullPointerException
         at org.jivesoftware.openfire.muc.spi.MUCPersistenceManager.loadFromDB(MUCPersistenceManager.java:169)
         at org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl.getChatRoom(MultiUserChatServiceImpl.java:545)
         at org.jivesoftware.openfire.admin.muc_002droom_002dedit_002dform_jsp._jspService(muc_002droom_002dedit_002dform_jsp.java:178)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
         at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
         at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
         at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:66)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
         at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:42)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
         at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:70)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
         at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:146)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
         at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
         at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
         at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
         at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
         at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
         at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
         at org.mortbay.jetty.Server.handle(Server.java:324)
         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
         at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
         at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

       

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points