Commit graph

3,730 commits

Author SHA1 Message Date
Goffi
a8cadf7fc3 docker: don't move .egg_info files anymore:
moving `.egg_info` cause trouble, and doesn't seem necessary anymore.
2022-01-31 18:35:52 +01:00
Goffi
3801db7835 component AP gateway: split plugin in several files:
constants, HTTP server and Pubsub service have been put in separated files.

rel: 363
2022-01-31 18:35:49 +01:00
Goffi
643d491e80 component AP gateway: JID/node ⟺ AP outbox conversion:
- convert a combination of JID and optional pubsub node to AP actor handle (see
  `getJIDAndNode` for details) and vice versa
- the gateway now provides a Pubsub service
- retrieve pubsub node and convert it to AP collection, AP pagination is converted to RSM
- do the opposite: convert AP collection to pubsub and handle RSM request. Due to
  ActivityStream collection pagination limitations, some RSM request produce inefficient
  requests, but caching should be used most of the time in the future and avoid the
  problem.
- set specific name to HTTP Server
- new `local_only` setting (`True` by default) to indicate if the gateway can request or
  not XMPP Pubsub nodes from other servers
- disco info now specifies important features such as Pubsub RSM, and nodes metadata

ticket 363
2022-01-25 17:54:06 +01:00
Goffi
23640ed33f cli (blog/get): fix default output when a value is None 2022-01-25 17:27:39 +01:00
Goffi
01a1bf8691 plugin XEP-0060, XEP-0163, XEP-0277, text syntaxes: make those plugins usable with components 2022-01-25 17:26:05 +01:00
Goffi
9b5d3ea17d tools (common): new async_utils module with an async version of lru_cache 2022-01-25 17:25:10 +01:00
Goffi
ab4468a50a plugin XEP-0277: various fixes + async:
- `NS_ATOM` is now set at class level, so it can be accessed by other plugins
- set `author` to `None` when no `name` element is found
- make `data2entry` a corountine
- fix incorrect use of yield in `trigger.point`
2022-01-25 17:22:15 +01:00
Goffi
738ef6ccf4 plugin XEP-0060: None must not be used for getItems's node 2022-01-25 17:16:37 +01:00
Goffi
e94df887d4 component file sharing: set server name at render time 2022-01-25 17:15:00 +01:00
Goffi
0d214783a3 component file sharing: fix incorrect use of returnValue in items async method 2022-01-25 17:13:32 +01:00
Goffi
5c6bac6ade memory (sqla): fix complete setting when index is None in getItems 2022-01-25 17:09:54 +01:00
Goffi
d7945138f7 memory (sqla): don't set keys with None as value for RSM in getItems 2022-01-25 17:09:11 +01:00
Goffi
7ed5c0ff9d memory (disco), core (main): new hasIdentity method 2022-01-25 17:07:15 +01:00
Goffi
7216345e31 plugin XEP-0384: fix typo in attribute 2022-01-25 17:06:28 +01:00
Goffi
03ca0037f3 tools (xml_tools): implement list-multi in _dataFormField2XMLUIData:
`list-multi` was missing and thus these data form field type was not supported, resulting
in those fields shown as a text field.

Due to legacy, current implementation use a hack to split values, this should be fixed
later by using proper serialisation.
2021-12-08 15:45:57 +01:00
Goffi
7b05d97229 merge bookmark 0.9 2021-12-01 16:13:31 +01:00
Goffi
f9ee1f6bc9 Added tag v0.8.0 for changeset f97be63871e4 2021-11-30 23:31:09 +01:00
Goffi
9f66c8f769 v0.8.0 release 2021-11-30 23:31:07 +01:00
Goffi
9eecdc184c tools (common/async_process): use parent environment by default 2021-11-30 17:28:42 +01:00
Goffi
97f6d1010a core (memory/param): don't crash when getting unset int value 2021-11-30 17:28:03 +01:00
Goffi
68092dd2bb core (xmpp): specify profile when logging a connection problem 2021-11-30 17:27:26 +01:00
Goffi
14d00a9dda merge bookmark @ 2021-11-12 17:21:24 +01:00
Goffi
0008d3478e plugin events: store interest_id in data:
ID of the item in list of interest is needed to correctly modify (and notably retract) an
event.
2021-11-12 17:18:23 +01:00
Goffi
099128918d changelog: minor update following renaming 2021-11-12 17:16:40 +01:00
Goffi
2cc637cdfe cli (base): use XTERM_VERSION to detect XTerm:
Using `TERM` is not good as it is used by other terminal emulators which are incompatible
with ANSI sequences (seen with `cool-retro-term`).
2021-11-06 18:53:00 +01:00
Goffi
1419f29df6 cli (debug/theme): display currently used background 2021-11-06 17:09:28 +01:00
Goffi
b1529c1ebf cli (base): better background detection:
- ANSI escape code detection is only used on terminals known to be compatible (currently
  xterm, konsole, and all VTE based ones)
- `COLORFGBG` environment variable is used as fallback
- if both methods fail, `dark` is used

This should avoid problems with incompatible terminals (e.g. on QTerminal, users had to
press `[ENTER]` each time).

fix 406
2021-11-06 17:08:50 +01:00
Goffi
b374f17eb6 tests (e2e/web): add basic tests for generic lists 2021-11-05 18:11:24 +01:00
Goffi
b7c1579919 tests (e2e/run_e2e): fix inappropriate use of -T option 2021-11-05 18:11:24 +01:00
Goffi
38ec47a4da plugin comp file sharing: don't use Deferred in return value 2021-11-05 18:11:24 +01:00
Goffi
ecc6f96990 plugin email invitations: re-use existing invitation for a given email:
if an invitation is done on an email which has already received an invitation, it is
re-used and no new XMPP account or Libervia profile is created (the name is modified
though).

This is currently done in an inefficient way due to `LazyPersistentBinaryDict` limitations
(all invitations are loaded and checked to find the email). A more efficient check should
be easier to implement with storage changes in 0.9 .
2021-11-05 18:11:18 +01:00
Goffi
d39a80ee5f plugin XEP-0264: replace SIZE_FULL_SCREEN by SIZE_BIG:
`SIZE_FULL_SCREEN` may result in large files, and BoB is currently used to transfer them,
resulting in potentially large stanza. As a result, Libervia profile can be disconnected
from server if stanza max size is reached.

As a temporary workaround, `SIZE_BIG` is now the maximum size used. This should be fixed
in 0.9 with a proper way to transfer large thumbnails (i.e. not BoB).
2021-11-05 18:08:39 +01:00
Goffi
7c37f32dc4 core: don't callback self.conn_deferred if already called:
if the connection has been lost (e.g. forced disconnection by server),
`self.conn_deferred` may have already been called, thus this is now checked to avoid an
exception.
2021-11-04 18:27:36 +01:00
Goffi
3838f04169 install: requirements update 2021-11-04 18:13:55 +01:00
Goffi
bdbf4596da plugin XEP-0384: fix encryption for user own devices:
our own jid is added automatically by OMEMO library, but during the generation of the
stanza, our list of jids was used to get the keys (and thus our own jid and devices keys
was missing).

fix 402
2021-10-22 18:46:51 +02:00
Goffi
22db0b9880 docker (prosody): don't use tmpfs for /var/lib/prosody (it prevents the container to start) 2021-10-22 10:40:24 +02:00
Goffi
770d4e8f35 docker (prosody): remove unused entrypoint.sh file and sed from Dockerfile:
The `sed` is not necessary anymore in recent Docker images, since
https://github.com/prosody/prosody-docker/pull/65 has been merged.
2021-10-22 10:39:05 +02:00
Goffi
28b0a91fc7 plugin text syntaxes: remove id attributes and whitelist allowed classes:
for now, the only allowed classes are the one used for code highlighting.

fix 389
2021-10-21 11:55:39 +02:00
Goffi
e529391500 docker (web-demo): fix prosody tmpfs instruction 2021-10-21 11:53:56 +02:00
Goffi
6f0ecc0105 docker (docker-compose-e2e): fix tmpfs instruction for prosody 2021-10-20 17:24:09 +02:00
Goffi
0ba1709bb5 docker: use @ instead of tip for dev images:
`tip` links to most recent commit which may be on an other bookmark than the main one.
By using `@`, we're sure that the main bookmark is used.
2021-10-20 17:23:22 +02:00
Goffi
60f3f89883 docker: fix use of REVISION in FROM instruction 2021-10-20 17:21:54 +02:00
Goffi
7c31c279e4 docker: fix use of File Sharing component following entry point renaming 2021-10-20 17:19:57 +02:00
Goffi
5903aaf29b misc (.hgignore): exlude e2e tests reports 2021-09-30 10:33:09 +02:00
Goffi
24ce06eedf install (setup): set minimum version of python-dateutil to 2.8.1:
`dateutil.parser.ParserError` is only available from `2.8.1`, thus this become the minimum
required version.
2021-09-30 10:32:04 +02:00
Goffi
f52cc88ae2 plugin XEP-0054: fix wrongly used await:
`_checkAvatarHash` was incorrectly awaited. This method is only called once, the code has
been moved directly to `update`.
2021-09-30 10:30:43 +02:00
Goffi
bd47586527 component AP gateway: fix wrong operator when testing HTTP code 2021-09-27 08:29:09 +02:00
Goffi
aa4e6004e8 doc (components): base documentation for AP Gateway:
fix: 362
2021-09-26 16:41:58 +02:00
Goffi
76c98da073 comp AP Gateway: ActivityPub Component first draft:
this implement the base component, it is for the moment usable only through a developer
API.

rel: 362
2021-09-26 16:41:55 +02:00
Goffi
d7d40a6d50 merge bookmark @ 2021-09-26 16:41:49 +02:00