{"action":"closed","issue":{"url":"https://api.github.com/repos/eclipse/paho.mqtt.java/issues/130","repository_url":"https://api.github.com/repos/eclipse/paho.mqtt.java","labels_url":"https://api.github.com/repos/eclipse/paho.mqtt.java/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/paho.mqtt.java/issues/130/comments","events_url":"https://api.github.com/repos/eclipse/paho.mqtt.java/issues/130/events","html_url":"https://github.com/eclipse/paho.mqtt.java/issues/130","id":131358394,"number":130,"title":"Allow Client Ids longer than 23 characters","user":{"login":"jpwsutton","id":1068763,"avatar_url":"https://avatars.githubusercontent.com/u/1068763?v=3","gravatar_id":"","url":"https://api.github.com/users/jpwsutton","html_url":"https://github.com/jpwsutton","followers_url":"https://api.github.com/users/jpwsutton/followers","following_url":"https://api.github.com/users/jpwsutton/following{/other_user}","gists_url":"https://api.github.com/users/jpwsutton/gists{/gist_id}","starred_url":"https://api.github.com/users/jpwsutton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpwsutton/subscriptions","organizations_url":"https://api.github.com/users/jpwsutton/orgs","repos_url":"https://api.github.com/users/jpwsutton/repos","events_url":"https://api.github.com/users/jpwsutton/events{/privacy}","received_events_url":"https://api.github.com/users/jpwsutton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-04T14:11:04Z","updated_at":"2016-02-04T14:11:05Z","closed_at":"2016-02-04T14:11:05Z","body":"migrated from Bugzilla [#414857](https://bugs.eclipse.org/bugs/show_bug.cgi?id=414857)\nstatus RESOLVED severity *normal* in component *MQTT-Java* for *---*\nReported in version *unspecified* on platform *All*\nAssigned to: Al Stockdill-Mander\n\nOriginal attachment names and IDs:\n- _[org.eclipse.paho.mqtt.java.patch](https://bugs.eclipse.org/bugs//attachment.cgi?id=237255)_ (ID 237255)\n\nOn 2013-08-12 06:55:41 -0400, Obermaier Dominik wrote:\n\n> It would be great to allow client Ids longer than 23 characters. At the moment Paho Java and Paho Javascript enforce the artifical limit.\n> \n> Many MQTT brokers ignore that limitation and most client libraries are also capable of using longer client ids.\n> \n> At least it would be great to configure Paho to allow more than 23 characters if needed, even when the current behaviour would remain the default behaviour.\n\nOn 2013-09-10 12:20:05 -0400, Obermaier Dominik wrote:\n\n> Seems like only the Javascript and Java version of Paho have these restrictions. Any progress on this issue?\n\nOn 2013-11-07 01:27:10 -0500, Zhang Yang wrote:\n\n> Created attachment 237255\n> remove the restriction of \"clientId is no longer than 23\".\n\nOn 2013-11-12 18:56:20 -0500, Nicholas O'Leary wrote:\n\n> As paho is meant to be a reference  implementation, I don't think we want to get into supporting things not permitted by the spec.\n> \n> Of course, the OASIS version lifts this limit so once that is finalised and we add v3.1.1 support into the paho clients will be resolved.\n\nOn 2013-11-13 03:05:42 -0500, Andy Piper wrote:\n\n> (In reply to Nicholas O'Leary from comment # 3)\n> > As paho is meant to be a reference  implementation, I don't think we want to\n> > get into supporting things not permitted by the spec.\n> >\n> > Of course, the OASIS version lifts this limit so once that is finalised and\n> > we add v3.1.1 support into the paho clients will be resolved.\n> \n> Well one option could be to add a configuration flag to enable these features, but off by default?\n\nOn 2013-11-13 03:53:47 -0500, Dave Locke wrote:\n\n> Work will start shortly to create a versions of the client that are compliant with the OASIS MQTT standard.  This will allow characters > 23.\n\nOn 2013-12-17 05:03:28 -0500, Ian Craggs wrote:\n\n> So, my thought is that there would be a connect option that would select MQTT 3.1.1 standard behaviour, so that you would be able to use the same library for both new and old protocols.\n> \n> If we go down that route, the question is, what should be the default?  I would think MQTT 3.1 - that is, the old specification, so that existing programs would carry on working to existing MQTT servers.\n> \n> This does cause a problem in that the clientid is on the create, so to enforce the 23 character limit for 3.1, we would now have to wait until the connect call.\n\nOn 2014-04-01 12:30:27 -0400, Al Stockdill-Mander wrote:\n\n> There is a fix in the develop branch; http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.java.git/commit/?h=develop&id=SHA: 10a54a9fad659ca82dfe87eae7e5d884b6917b33\n\nOn 2014-04-01 12:38:13 -0400, Al Stockdill-Mander wrote:\n\n> I should expand on that, the fix is that we allow client ids longer that 23 characters no matter the version, as some 3.1 servers already allow client ids longer than 23 characters so it seems churlish to not allow it and servers that don't support client ids longer than 23 chars can already indicate their rejection with the appropriate return code.\n\n"}}