powered by Jive Software

Looking for Disclaimer message plugin

Does anyone know of a plugin for automatic disclaimer messages? In

our situation we are logging corporate IM traffic and we need to be

able to put a message on chats saying somthing like "This message is

being logged by COMPANY NAME HERE" I would like it to only appear on

the first chat per person per day. I know somthing exists because

other companies that we talk to are putting disclaimers on all thier

chats. I don’t think they are using openfire though. I think their

message gets put on by a seperate IM security Appliance - like Akonix.

I thought about adapting the message of the day plugi, but I was hoping

somthing was out there that I am not finding…Thanks for your help.

Greg

I gave making your disclaimer plugin a shot. It is very similiar to the Message of the day plugin, except for your request for the disclaimer message only showing up once per day. Use the Disclaimer Service Settings page to configure it. Note, this plugin requires you to have Openfire v.3.4.x, because I have only tested with 3.4.1. If this won’t work for you tell me the version of Openfire that you are using and I will try to get it working for that version. This is my first shot at compiling a plugin, so hopefully everything works out.

Just unzip the attached zip file and place the disclaimer.jar file in your openfire plugins directory. I also included the source with it.

It is attached as a zip.

-Dan Nelson

Hi, Dan.

Maybe you should post you plugin as a document in Community plugins section as well? http://www.igniterealtime.org/community/community/plugins/commplugins?view=docum ents

Or maybe this could be incorporated in a MoTD plugin. I will talk to Ryan about this.

Btw, i’m getting exception when trying to check plugins settings

Exception:

java.lang.NullPointerException

at org.jivesoftware.openfire.plugin.disclaimer.disclaimer_002dservice_jsp._jspServ ice(disclaimer_002dservice_jsp.java:79)

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

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

at org.jivesoftware.openfire.container.PluginServlet.handleJSP(PluginServlet.java: 228)

at org.jivesoftware.openfire.container.PluginServlet.service(PluginServlet.java:86 )

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

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1093)

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)

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

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va: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:712)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollect ion.java:211)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

at org.mortbay.jetty.Server.handle(Server.java:313)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)

at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.j ava:830)

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:381)

at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)

at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

Wroot,

What version of Openfire are you using? Let me try to reproduce this.

-Dan

Openfire 3.4.1

I am having troubles trying to get that error. You will have to bare with me as I am not a java/jsp developer. A few questions for you.

  1. How did you install the plugin? Did you place the JAR file in the openfire plugins directly or did you use the plugin upload form located on the plugins page?

  2. Would you mind giving me a screen shot of the Server Information section that is located in the Openfire admin console.

Could this be a java version issue?

Thanks,

-Dan

I uploaded the plugin and it works as it should. Thanks! Logged in and got the message, then logged out and back in and did not get it a second time.

This will cover us internally notifying our users that they are being logged. I have also updated a project implovement request to add the functonality to send a disclaimer to external contacts automatically. We use IM’s to negotiate pricing and need to send a standard desclaimer to the external contacts that we talk to through the IM gateway.

The issue can be found here

http://www.igniterealtime.org/issues/browse/ENT-258

Thanks for all your help

Greg

I could try and add your second request into the disclaimer plug-in. I

am just not sure on how to tackle this one. Probably something to do with

a packet interceptor. Anyone have any ideas on how I would want to

approach tackling this.

-Dan

dnelson wrote:

I am having troubles trying to get that error. You will have to bare with me as I am not a java/jsp developer. A few questions for you.

  1. How did you install the plugin? Did you place the JAR file in the openfire plugins directly or did you use the plugin upload form located on the plugins page?

I’ve used upload form.

  1. Would you mind giving me a screen shot of the Server Information section that is located in the Openfire admin console.

Could this be a java version issue?

dont know, i use external latest jre

worked out. have deleted plugins directory and renamed jar to disclaimer.jar (without space in name), now it works

Very nice Plugin!

Thanks for that. Working fine.

It’s possible to have Disclaimer plugin for 3.3.3 version of Openfire? Thanks

Sure,

Give me a few days and I will work on getting it to work for 3.3.3

-Dan Nelson

Awesome plugin Dan, now my chat audit is bogged down with MoTD logs. Thanks!!

Is it possible to have Disclaimer plugin for 4.0.2 version of openfire? Thanks