This Question is Answered (go to answer)

1 "helpful" answer available (5 pts)
5,541 Views 10 Replies Last post: Aug 26, 2009 7:52 AM by Stanislaw RSS
Stanislaw Bronze 6 posts since
Dec 26, 2008
Currently Being Moderated

Dec 26, 2008 6:10 AM

Openfire 3.6.2 Admin console bug. Exception on muc-room-affiliations.jsp page

When I try to add users to conference room and open "User Permissions" link (https://my.jabberserver.com:9091/muc-room-affiliations.jsp?roomJID=myroom%40conf erence.my.jabberserver.com&create=false) - sometimes it displays this error:

exception:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at org.jivesoftware.openfire.admin.muc_002droom_002daffiliations_jsp._jspService(muc_002droom_002daffiliations_jsp.java:336)
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)

This is because of illegal user name in Muc Room User list (name without @ symbol). And such names (they consists of group chat test fragments) appears in Muc Room User
list automatically and very often, without any visible reason.
I must delete this illegal names manually from database and restart server to apply changes.
Can you comment on this problem ?
   
Tags: bug, administrator, database, bug_report
Daryl Herzmann KeyContributor 784 posts since
Mar 12, 2005
Currently Being Moderated
Dec 26, 2008 7:59 AM in response to: Stanislaw
Re: Openfire 3.6.2 Admin console bug. Exception on muc-room-affiliations.jsp page

Hi Stan,

 

Unfortunately, there are a number of bugs with the MUC administration part of the openfire console.  Your only recourse is to manually clean up the database.  You shouldn't need to restart Openfire, I think....

 

daryl

Andrew Kornilov Bronze 81 posts since
Jan 21, 2006
Currently Being Moderated
Jul 2, 2009 3:21 AM in response to: Stanislaw
Re: Openfire 3.6.2 Admin console bug. Exception on muc-room-affiliations.jsp page

I can confirm that bug, it still exists (3.6.4). Server fills the table ofmucmembers with random garbage, but deleting it doesn't help. I'm looking for the solution. The problem string of code is around that code:

 

muc-room-affiliations.jsp:336

 

       <%  if (room.getOutcasts().isEmpty()) { %>
            <tr>
                <td colspan="2" align="center"><i><fmt:message key="muc.room.affiliations.no_users" /></i></td>
                <td> </td>
            </tr>
        <%  }
            else {
                ArrayList<String> outcasts = new ArrayList<String>(room.getOutcasts());
                Collections.sort(outcasts);
                for (String user : outcasts) {
                    String username = JID.unescapeNode(user.substring(0, user.indexOf('@')));
                    String rest = user.substring(user.indexOf('@'), user.length());
                    String userDisplay = username + rest;

 

 

I can't find what room.getOutcasts does. Where and what does it get from database?

pberry Bronze 2 posts since
Oct 17, 2008
Currently Being Moderated
Jul 8, 2009 11:49 AM in response to: Andrew Kornilov
Re: Openfire 3.6.2 Admin console bug. Exception on muc-room-affiliations.jsp page

Can confirm 3.6.4 is effected as well.  Tried cleaning out the db, but can also confirm a restart is needed.

 

Is there a JIRA issue for this yet?

wroot KeyContributor 4,930 posts since
Jan 24, 2005
Currently Being Moderated
Jul 8, 2009 10:46 PM in response to: pberry
Re: Openfire 3.6.2 Admin console bug. Exception on muc-room-affiliations.jsp page
Is there a JIRA issue for this yet?

JM-1537

Guenther Niess KeyContributor 299 posts since
Jun 19, 2008
Currently Being Moderated
Jul 9, 2009 2:55 AM in response to: wroot
Re: Openfire 3.6.2 Admin console bug. Exception on muc-room-affiliations.jsp page

wroot wrote:

Is there a JIRA issue for this yet?

JM-1537

No, it's another bug. I will have a look on this.

Guenther Niess KeyContributor 299 posts since
Jun 19, 2008
Currently Being Moderated
Jul 20, 2009 7:43 AM in response to: Guenther Niess
Re: Openfire 3.6.2 Admin console bug. Exception on muc-room-affiliations.jsp page

I've added OF-41 and OF-42 for the reported bugs.

Guenther Niess KeyContributor 299 posts since
Jun 19, 2008
Currently Being Moderated
Aug 20, 2009 4:08 PM in response to: Guenther Niess
Re: Openfire 3.6.2 Admin console bug. Exception on muc-room-affiliations.jsp page

I've commited my patch for OF-41 to the trunk version which fixes the StringIndexOutOfBoundsException. In my opinion the OF-42 patch need a review bevor committing it.


More Like This

  • Retrieving data ...

Bookmarked By (0)