Miranda NG Official Community Forum

Other languages speaking Miranda NG users => Polski => Topic started by: jojo87 on 22 03 2021, 21:53:04

Title: Jabber - nie działają listy prywatności
Post by: jojo87 on 22 03 2021, 21:53:04
Mirandy używam od połowy 2019 roku i od samego początku nie działają mi listy prywatności w dwóch Jabberach. Konta są na serwerze jix.im oraz wtw.im. Podobno komunikator sam powinien utworzyć listę prywatności po zalogowaniu się do Jabbera i ustawienia statusu ukryty. A u mnie Miranda nigdy tego nie robiła. Nawet jeśli sam utworzę taką listę, włączę ją i ustawię jako domyślną, to po restarcie programu aktywna jest pozycja "<brak>".

W tej chwili mam Mirandę NG 0.95.13 build #23791. Ale tak jak pisałem wcześniej, u mnie listy prywatności nigdy nie działały, od wersji takiej, która była około 2 lata wstecz.
Title: Re: Jabber - nie działają listy prywatności
Post by: dartraiden on 23 03 2021, 16:43:38
Works for me...
Tested on jabber.ru

Maybe it's server-related

Yes, <none> is selected after restart, but default and active list is "iiii" (act. def. + green star and green mark)
Title: Re: Jabber - nie działają listy prywatności
Post by: ghazan on 23 03 2021, 16:46:20
jojo87,
messenger hasn't to create its own hidden privacy list, some of them do (like Conversations), but it's not required.

it might depend on a server, more information could be gotten from a network log of privacy list saving (core + Jabber)
more info here: https://wiki.miranda-ng.org/index.php?title=Network_log
Title: Re: Jabber - nie dzia%u0142aj%u0105 listy prywatno%u015Bci
Post by: jojo87 on 23 03 2021, 18:04:28
Maybe it's server-related
I doubt it. I used this server on a different messenger before Miranda (I changed to Miranda because the previous messenger is not being developed anymore). In it, the privacy lists on jix.im worked.

ghazan, I create logs.
Core:
https://drive.google.com/file/d/1H2DZa46ivX2ifNGxZ-z1Nf_LU_7eXKPn/view?usp=sharing

Jabber #1:
https://drive.google.com/file/d/1stdVQWkC0QOUzDEspVRz733DIEwHFjTv/view?usp=sharing

Jabber #2:
https://drive.google.com/file/d/1O8QzDkvqdNZE30VXX1cgTKCyVsYsWz-A/view?usp=sharing

Explanation:
I have set the status "hidden" as startup. I turned off Miranda and just turned it on.
Title: Re: Jabber - nie działają listy prywatności
Post by: jojo87 on 30 03 2021, 06:39:16
Someone (I won't write who :P) told me it was probably a parsing error in Miranda.

From jabber 1.txt:
Quote
[2021-03-23 18:24:50 1374] [JABBER_1] parsing error 6: Error=XML_ERROR_PARSING_ELEMENT Err
orID=6 (0x6) Line number=1: XMLElement name=item

From jabber 2.txt:
Quote
[2021-03-23 18:24:50 1434] [JABBER_2] parsing error 6: Error=XML_ERROR_PARSING_ELEMENT Err
orID=6 (0x6) Line number=1: XMLElement name=item
Title: Re: Jabber - nie działają listy prywatności
Post by: ghazan on 30 03 2021, 19:12:04
jojo87,
that's okay with parser, when the packet length exceeds current buffer size, Miranda expands a buffer, reads the rest and starts parsing from scratch

PS: well, in both cases the server simply did not return anything about privacy lists, like they don't exist at all
Title: Re: Jabber - nie działają listy prywatności
Post by: dartraiden on 30 03 2021, 19:12:31
The server response is very large: <group>@wtw.im</group></item><item → parsing error → Miranda cannot parse → we need more memory → increasing network buffer size to 4096 → another attempt: </item><item ask='subscribe' name → parsing error → increasing network buffer size to 8192 → attempt #3 → success
Title: Re: Jabber - nie działają listy prywatności
Post by: jojo87 on 31 03 2021, 11:07:26
PS: well, in both cases the server simply did not return anything about privacy lists, like they don't exist at all
In fact, I don't have any privacy list at the moment. But as I wrote in the first post (in Polish) - if I create a privacy list, turn it on and set it as default, after Miranda restart I have "<none>" active anyway. Make a second log when starting Miranda when I create the privacy list myself,
activate it and set it as default?

The server response is very large: <group>@wtw.im</group></item>
That `s bad? I use the jix.im server on a daily basis anyway, so I could quit with wtw.im.
Title: Re: Jabber - nie działają listy prywatności
Post by: ghazan on 31 03 2021, 14:16:04
l
sure. how else could we debug this issue? :D

That `s bad? I
no, that's ok, that's how it should be
Title: Re: Jabber - nie działają listy prywatności
Post by: jojo87 on 01 04 2021, 18:38:21
So, I set the status "hidden" as the default for jix.im and wtw.im, for both servers I created a privacy list (but I don't know if it's correct for hidden), disabled Miranda and restarted it a second time.

Upon startup, it turned out that the privacy list for wtw.im is set as default, for jix.im it is not.

Core:
https://drive.google.com/file/d/1OtGJ2Wy_TMvvrw1hqM-NxZYWzgufp5od/view?usp=sharing

Jabber #1 (jix.im):
https://drive.google.com/file/d/1cD4K8MZC1-2xhLTt_XiG3iO7DDes00m9/view?usp=sharing

Jabber #2 (wtw.im):
https://drive.google.com/file/d/1WB15kEAk0lqE0nPC4hwuGvAtJOgiGhIs/view?usp=sharing
Title: Re: Jabber - nie działają listy prywatności
Post by: ghazan on 14 04 2021, 15:05:26
jojo87,
yes, looks like a problem at the first server with setting active list.
dunno, usually it works without problems
Title: Re: Jabber - nie działają listy prywatności
Post by: ghazan on 14 04 2021, 15:09:23
jojo87,
maybe I could find some info in a network of assigning active list at  jix.im?
which server software is installed there?
Title: Re: Jabber - nie działają listy prywatności
Post by: jojo87 on 14 04 2021, 21:18:44
ghazan, at this moment ejabberd 21.01.
Title: Re: Jabber - nie działają listy prywatności
Post by: ghazan on 17 04 2021, 15:06:00
jojo87,
, at this moment ejabberd 21.01.
hmm... it doesn't explain why it fails to handle active privacy list...[
Title: Re: Jabber - nie działają listy prywatności
Post by: Beherit on 17 04 2021, 18:07:56
it doesn't explain why it fails to handle active privacy list...

What exactly information do you need? The server has the mod_privacy module enabled with no additional options. I don't see errors in config file, the server has standard config - very similar to ejabberd sample config file.
Title: Re: Jabber - nie działają listy prywatności
Post by: Beherit on 17 04 2021, 18:25:06
Anyway, I checked privacy lists on my server jix.im by connecting from other IMs and everything work perfect. I have strong suspicions that the problems is with Miranda.
Title: Re:Jabber - nie działają listy prywatności
Post by: jojo87 on 17 04 2021, 18:35:21
The privacy list in wtw.im them works perfectly. In jix.im - no. In wtw.im I can disconnect from the server, then set the status to hidden immediately and I can see who is online. If I set my privacy list as default and active before disconnecting from jix.im, then after reconnecting (as hidden) it is only default but not enabled.
Title: Re: Jabber - nie działają listy prywatności
Post by: ghazan on 19 04 2021, 16:15:35
Beherit,
frankly speaking, an account at your server :) you can send me credentials in the private message
Title: Re: Jabber - nie działają listy prywatności
Post by: Beherit on 19 04 2021, 17:45:34
I sent credentials in pm.
Title: Re: Jabber - nie działają listy prywatności
Post by: ghazan on 19 04 2021, 17:48:52
Beherit,
got it, thanks
Title: Odp: Jabber - nie działają listy prywatności
Post by: ghazan on 19 04 2021, 17:55:05
jojo87,
dunno, but for me it works okay. what have I done:
- added a privacy list with a rule "Subscription none - deny";
- saved it with name "mylist";
- clicked on "Make active" & "make default"

In the network log I see that everything worked fine:

Code: [Select]
[20:51:57 2CD0] [JABBER_6] (0000000004569C60:1644) Data sent
<iq type="get" id="mir08b35d47801170a2_19"><query xmlns="jabber:iq:privacy"/></iq>
[20:51:57 3B0C] [JABBER_6] (0000000004569C60:1644) Data received
<iq xml:lang='en' to='mtest@jix.im/Miranda' from='mtest@jix.im' type='result' id='mir08b35d47801170a2_19'><query xmlns='jabber:iq:privacy'><active name='mylist'/><default name='mylist'/><list name='mylist'/></query></iq>
Title: Odp: Jabber - nie działają listy prywatności
Post by: ghazan on 19 04 2021, 17:59:00
Beherit,
jojo87 is right: after restart Miranda loses active privacy list:

Code: [Select]
[20:56:25 0F04] [JABBER_6] (0000000004480200:1424) Data received
<iq xml:lang='en' to='mtest@jix.im/Miranda' from='mtest@jix.im' type='result' id='mira0291555dd2b108b_7'><query xmlns='jabber:iq:privacy'><active/><default name='mylist'/><list name='mylist'/></query></iq>

Something goes wrong: active list really remains active only during current session...
Title: Re: Odp: Jabber - nie działają listy prywatności
Post by: jojo87 on 20 04 2021, 05:59:11
jojo87 is right: after restart Miranda loses active privacy list:
Not only during Miranda restart. If I have the Mirande enabled, I will enable/set my default privacy list to jix.im, I will set the offline status on this server (but Miranda is still enabled), then after trying to set the status to "invisible" my privacy list is default but not enabled.
So it's not about the process of turning on Miranda, but connecting to the Jabber network.
However, the same situation in wtw.im makes the privacy list work perfectly.
Title: Re: Jabber - nie działają listy prywatności
Post by: Beherit on 20 04 2021, 06:17:46
Something goes wrong: active list really remains active only during current session...

The most important information for me - do you think the problem is with the server? If yes, I will report it on the ejabberd github.
Title: Re: Jabber - nie działają listy prywatności
Post by: ghazan on 20 04 2021, 13:36:00
Beherit,
yes, I do think so, because that is the only server which behaves this way

PS: maybe that's a problem with database? wrong/unpatched database structure, for example, which prevents a server from updating data? dunno, just a hypothesis
Title: Re: Jabber - nie działają listy prywatności
Post by: Beherit on 20 04 2021, 20:16:39
Strange because I checked privacy lists on other IM and there everything works okay ;) Anyway I will double check database and logs.
Title: Re: Jabber - nie działają listy prywatności
Post by: jojo87 on 04 05 2021, 04:10:26
In 0.95.13.1 build #23799 privacy list in:
Title: Re: Jabber - nie działają listy prywatności
Post by: jojo87 on 16 05 2021, 20:32:14
Privacy lista in jix.im in Miranda 0.95.13.1 build #23806 still doesn't work. And additionally, the window with the privacy lists broke.
Screen: https://www.dropbox.com/s/ydv4jd914afcstl/1%20%282%29.png?dl=0
Title: Re: Jabber - nie działają listy prywatności
Post by: jojo87 on 28 08 2021, 15:29:59
Privacy lista in jix.im in Miranda 0.95.13.1 build #23806 still doesn't work. And additionally, the window with the privacy lists broke.
Screen: https://www.dropbox.com/s/ydv4jd914afcstl/1%20%282%29.png?dl=0 (https://www.dropbox.com/s/ydv4jd914afcstl/1%20%282%29.png?dl=0)
This little bug has already been fixed recently.

But Miranda's privacy lists in jix.im still don't work. Please. Fix it. In my opinion, Miranda is to blame.
Jix.im + Miranda - privacy lists not working.
Wt.im + Miranda - Privacy lists are working.
Jix.im + AQQ - privacy lists work - AQQ has not been an expandable communicator for a long time!
Jix.im + Gaijim - privacy lists work.