Ticket #2133 (new task)

Opened 2 years ago

Last modified 5 months ago

Support XMPP URI query types (JEP-0147)

Reported by: beerfan Owned by: asterix
Priority: normal Milestone:
Component: None Version:
Severity: normal Keywords:
Cc: travis@… OS: All

Description

Websites are starting to use URIs which link to xmpp resources. Other applications also have a need to send a query to Gajim using an XMPP URI. Gajim should probably add support for the standard XMPP URI queries as detailed at the URL below.

http://www.jabber.org/registrar/querytypes.html

These URI queries would look like

xmpp:room@conference.jabber.org?join
xmpp:pubsub.shakespeare.lit?pubsub;action=subscribe;node=princely_musings

Attachments

gajim.fix2133.patch (3.2 kB) - added by misc 2 years ago.
Add preliminary of the xmpp uri support
gajim.2133update.patch (10.7 kB) - added by baggend 12 months ago.

Change History

Changed 2 years ago by asterix

  • summary changed from Consider supporting XMPP URI query types to Support XMPP URI

Changed 2 years ago by Liorithiel

Changed 2 years ago by misc

Here is a preliminary patch, that add two things :

  • a join_room command, that simply join a room
  • a handle_uri command, that take a uri and try to do the right thing ( ie, for the moment, join the room if there is ?join, or open a chat dialog ).

I plan to add more, but as smaller patch are easier to review, test ( and to write ), I try to keep this one as simple as possible.

What do you think about it ?

Changed 2 years ago by misc

Add preliminary of the xmpp uri support

Changed 2 years ago by jim++

  • milestone set to 0.12

Changed 2 years ago by asterix

(In [7748]) [misc] handle uri like room_jid?join. see #2133

Changed 2 years ago by asterix

it's in. I justmodified it a bit to not have room_jid initialized to room_jid?join in join room dialog.

Changed 12 months ago by baggend

  • os set to All

I've added a new module for handling XMPP URI's as defined in RFC 4622, xmppuri.py. I've also modified gajim-remote.py to use this module for the handle_uri function, as well as a minor fix to the argv length checking that was conflicting with how some URI's were being handled.

Currently supported methods for handle_uri are join, message (with body and subject support), roster, remove, and vcard.

xmppuri currently only implements about 30% of the the RFC spec. I will be adding more functionality as I have time. Most of it won't be directly applicable to the code in gajim-remote, but there's currently no RFC 4622 Python library out there so it needs to get done.

Changed 12 months ago by baggend

Changed 12 months ago by baggend

A few more bug fixes and added support for the 'type' key for the message querytype. Looking more at this code, I think this is the wrong way to be implementing this. I think moving forward the dbus handler should do the URI handling, not the gajim-remote frontend. This way other applications that talk to gajim over dbus could send URI's directly.

Changed 12 months ago by nicfit

  • cc travis@… added

Changed 5 months ago by steve-e

  • milestone 0.12 deleted

Sorry, no time.

Add/Change #2133 (Support XMPP URI query types (JEP-0147))

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.