Tigase XMPP Server Board

Tigase server development: RE: Adding support for XEP-0055

Wed, 11/19/2014 - 18:28

So whats the ideal way to find out if my phone contact is a registered user on the server?

Categories: Tigase Forums

Tigase server development: lookup for registered users

Wed, 11/19/2014 - 18:18

I am looking to sync all my phone contacts with my tigase XMPP server. I initially planned to use XEP-0055 but tigase server doesn't support it. The below code throws an "unsupported feature exception"

UserSearchManager search = new UserSearchManager(connection);
Form searchForm = search.getSearchForm( connection.getServiceName());
Form answerForm = searchForm.createAnswerForm();

So what's the best way (or any way!) to check if the contacts of my phone are registered users on my server?
All I need to know is if my contacts exist on the server.

I have been trying to solve this problem for last two weeks.

Thanks!

Categories: Tigase Forums

Tigase server development: RE: Adding support for XEP-0055

Wed, 11/19/2014 - 17:34

The XEP is not supported and we are hesitant to add it, because it generates lots of security and privacy issues. Even though the XEP is implemented on some other XMPP Servers, it is almost never activated on any public service running on these servers.
I understand that it might be useful and desired on some deployments, but, to be honest it has never been demanded before.

Categories: Tigase Forums

Tigase server development: RE: Adding support for XEP-0055

Wed, 11/19/2014 - 16:58

Hi Prashanth,
I am looking forward to support of XEP-0055 on tigase server. I am surprised this doesn't exist yet. Can you please let me know if you plan on creating a plugin to support it?

Categories: Tigase Forums

Tigase server administration: RE: Restricting number of resources for a user

Wed, 11/19/2014 - 03:44

It's not possible to limit number of connected resources for the JID out of the box.

Categories: Tigase Forums

Tigase server development: RE: Please help me regarding this patch https://projects.tigase.org/is...

Tue, 11/18/2014 - 23:30

Tested it today, the error persists.

StackTrace

MessageArchiveComponent.listColl
ections() SEVERE: Error listing collections
tigase.db.TigaseDBException: Cound not retrieve collections
at tigase.archive.db.JDBCMessageArchiveRepository.getCollections(JDBCMes
sageArchiveRepository.java:560)
at tigase.archive.MessageArchiveComponent.listCollections(MessageArchive
Component.java:307)
at tigase.archive.MessageArchiveComponent.processActionPacket(MessageArc
hiveComponent.java:257)
at tigase.archive.MessageArchiveComponent.processPacket(MessageArchiveCo
mponent.java:111)
at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessa
geReceiver.java:1490)
Caused by: java.sql.SQLException: 'date' is not a recognized built-in function n
ame.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.j
ava:372)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2894)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2334)
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:643)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement
.java:506)
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPrep
aredStatement.java:979)
at tigase.archive.db.JDBCMessageArchiveRepository.getCollectionsCount(JD
BCMessageArchiveRepository.java:740)
at tigase.archive.db.JDBCMessageArchiveRepository.getCollections(JDBCMes
sageArchiveRepository.java:527)
at tigase.archive.MessageArchiveComponent.listCollections(MessageArchive
Component.java:307)
at tigase.archive.MessageArchiveComponent.processActionPacket(MessageArc
hiveComponent.java:257)
at tigase.archive.MessageArchiveComponent.processPacket(MessageArchiveCo
mponent.java:111)
at tigase.server.AbstractMessageReceiver$QueueListener.run(AbstractMessa
geReceiver.java:1490)

Categories: Tigase Forums

Tigase server administration: Restricting number of resources for a user

Tue, 11/18/2014 - 23:04

Is it possible to restrict the number of connected resources to the server ?

Is there any configuration which helps us achieve this ?

I could not find any such configuration in the properties guide.

Categories: Tigase Forums

Tigase server development: RE: What is the right way to keep user's connection

Mon, 11/17/2014 - 11:07

Usually you have very little control on whether the user's connection stays open. There is "idle" timer in Tigase which closes connections after 24h of inactivity and to avoid closing connection by Tigase, then any kind of XMPP activity with 24h window is enough.
However, the connection is often closed outside of the XMPP server or client. Mobile network providers periodically cleanup all TCP/IP connections, regardless they are idle or busy, there are sometimes, network problems and/or errors which cause connection closure and many others. This often results in a connection broken in such a way that neither the client or the server knows about the problem, so both sides may still attempt to send data on the connection, and the data is lost.

So what you really need to do, is, you have to monitor whether the connection is still opened and working correctly. One of possible option is to send periodically XMPP ping and/or add support for stream resumption XEP in your client.

Categories: Tigase Forums

Tigase server development: What is the right way to keep user's connection

Mon, 11/17/2014 - 07:51

What is the right way to keep user's connection?

Is it enough to send TCP keep alive packets periodically?
Or should user send presence packets periodically, for example each 1 min?

Categories: Tigase Forums

Tigase server development: Packet.toString() issue in Tigase 5.2

Mon, 11/17/2014 - 05:10

Hi there,
I found one case where Packet.toString() returns wrong data

Let's say I have a packet
<message id="5469f208" type="groupchat" to="..."><body>test.</body><extra xmlns="jabber:client"><subject>my best subject</subject></extra></message>

Then I removed the extra child

Element extra = packet.getElement().getChildStaticStr(EXTRA_KEY); boolean s = packet.getElement().removeChild(extra); // s is true here

Then I log a packet entity and it still shows that a packet contains extra child

I looked quickly into toStringFull implementation and found that packetToString is generated once

public String toStringFull() { if (packetToString == null) { String elemData = elemToString(elem); packetToString = calcToString(elemData); } return "from=" + packetFrom + ", to=" + packetTo + packetToString; }

Is it a correct behaviour?

Categories: Tigase Forums

Tigase server administration: RE: Brute-force security precautions for Tigase

Sat, 11/15/2014 - 12:24

Actually, we have very effective protection from admin accounts attacks. What we normally do is, admin accounts are usually created in a separate domain. Then Tigase accepts connections for this domain only on a specified TCP/IP port. Then you can restrict access to this port on your proxy on firewall only for selected range of IPs. This effectively protects your admin accounts.

Categories: Tigase Forums

Tigase server administration: RE: Brute-force security precautions for Tigase

Fri, 11/14/2014 - 22:35

Thank you very much for reply,

Actually, our first concern is Brute-fore attack, to be more specific, we are worried that some one might try to get the Tigase Admin password with Brute-force attack.
As you mentioned security is very broad topic, I thought there might be a few links/scripts focused on XMPP/Tigase server.

Thank you Again,

Categories: Tigase Forums

Tigase server administration: RE: Tigase High Performance Configurations

Fri, 11/14/2014 - 11:44

My suggestion is to update to just released 5.2.3 version which may improve performance. Except this, my other suggestion is to look at the Tigase metrics for queues and average processing time for potential bottlenecks.

Categories: Tigase Forums

Tigase server administration: RE: Tigase High Performance Configurations

Fri, 11/14/2014 - 06:45

Hi,

Thanks for your suggestions. We have shifted tigase to network optimized AWS instance with default linux settings and tigase settings provided in previous mail. Now auth and bind process are pretty fast but we still see a noticeable delay while sending message packets but receive is fast. If messages are sent using desktop client using web-sockets then the communications is fast both way. We have 10K for web-socket (5290) and 50K connections for TCP (5222).

Do we require to do some settings on tigase end?

Thanks
Kulshreshth Dhiman

Categories: Tigase Forums

Tigase server administration: RE: Mysql connection error

Fri, 11/14/2014 - 03:33

Btw. I've tired latest nightly (http://build.tigase.org/nightlies/dists/2014-11-14/) and tigase in OSGi mode with MySQL works without any problem.

Categories: Tigase Forums

Tigase server administration: RE: messages archived through Message Archiving cannot be removed b...

Fri, 11/14/2014 - 03:18

I rechecked this issue and I was able to replicate it. It appears that implementation in component was in place and was working fine while issue was with forwarding requests to component. I fixed it in this commit https://projects.tigase.org/projects/message-archiving/repository/revisions/07e3eda7f87a8ceeedb2a506653b1b50941b5cf0, so it will be fixed in next nightly build.

Categories: Tigase Forums

Tigase server administration: RE: Mysql connection error

Fri, 11/14/2014 - 02:59

Thank you for reporting with OSGi/MySQL - we will look into it.

Given that OSGi mode is still new and requires some more polishing it may has some rough edges. If not needed it's recommended not to enable OSGi mode (i.e. OSGI=${osgiEnabled} or OSGI=false).

Categories: Tigase Forums

Tigase server development: RE: Please help me regarding this patch https://projects.tigase.org/is...

Fri, 11/14/2014 - 02:49

This issue is related to #2442 and it will be fixed under it.

Categories: Tigase Forums

Pages

Get in touch

We provide software products, consulting and custom development services

Tigase, Inc.
100 Pine Street, Suite 1250
San Francisco, CA 94111, USA
Phone: (415) 315 9771

Follow us on:

Twitter

Back to Top