possible network issue warning

Moderator: crythias

Post Reply
gsalin
Znuny newbie
Posts: 36
Joined: 10 Mar 2023, 16:38
Znuny Version: znuny 6.5.1
Real Name: Gérald Salin
Company: INRAE - GeT-PlaGe

possible network issue warning

Post by gsalin »

Hi,
I upgraded from OTRS 6.0.29 to znuny 6.5.1 (with znuny 6.1, 6.2, 6.3 and 6.4 upgrades in between).
We encounter a strange behaviour (non blocking) which is reproducible.

If we open a ticket, create an answer : if we delete an email address in the To or Cc field, we get the following message in a popup :
Znuny detected possible network issues. You could either try reloading this page manually or wait until your browser has re-established the connection on its own
If we reload the page clicking on the corresponding button of the popup, the deleted email address appears again (seems normal), if we click on "Close this dialog" button, we get the folowwing message fw seconds later :
The connection has been re-established after a temporary connection loss. Due to this, elements on this page could have stopped to work correctly. In order to be able to use all elements correctly again, it is strongly recommended to reload this page.
here is a gif showing this behavior
GIF.gif
Any idea what can cause this behavior?

Thank you for your help
You do not have the required permissions to view the files attached to this post.
--
znuny 6.5.6
postgresql 13
Rocky 8
gsalin
Znuny newbie
Posts: 36
Joined: 10 Mar 2023, 16:38
Znuny Version: znuny 6.5.1
Real Name: Gérald Salin
Company: INRAE - GeT-PlaGe

Re: possible network issue warning

Post by gsalin »

the message "The connection has been re-established after a temporary connection loss. Due to this, elements on this page could have stopped to work correctly. In order to be able to use all elements correctly again, it is strongly recommended to reload this page." appears when I type 2 letters in the "To" or "Cc" field...not after few seconds in fact
--
znuny 6.5.6
postgresql 13
Rocky 8
gsalin
Znuny newbie
Posts: 36
Joined: 10 Mar 2023, 16:38
Znuny Version: znuny 6.5.1
Real Name: Gérald Salin
Company: INRAE - GeT-PlaGe

Re: possible network issue warning

Post by gsalin »

in dev tools of the browser, there are no javascript error, nor network issues......

don't understand
--
znuny 6.5.6
postgresql 13
Rocky 8
skullz
Znuny superhero
Posts: 621
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: possible network issue warning

Post by skullz »

System log?
gsalin
Znuny newbie
Posts: 36
Joined: 10 Mar 2023, 16:38
Znuny Version: znuny 6.5.1
Real Name: Gérald Salin
Company: INRAE - GeT-PlaGe

Re: possible network issue warning

Post by gsalin »

thanks for the reply
nothing appears in system log when I get this warning, nor in the otrs.log on the server
--
znuny 6.5.6
postgresql 13
Rocky 8
gsalin
Znuny newbie
Posts: 36
Joined: 10 Mar 2023, 16:38
Znuny Version: znuny 6.5.1
Real Name: Gérald Salin
Company: INRAE - GeT-PlaGe

Re: possible network issue warning

Post by gsalin »

better, inserted debugger and console.log

I find :
TargetNS.ApplicationError ErrorMessage Error during AJAX communication. Status: parsererror, Error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

I keep go on debug
--
znuny 6.5.6
postgresql 13
Rocky 8
gsalin
Znuny newbie
Posts: 36
Joined: 10 Mar 2023, 16:38
Znuny Version: znuny 6.5.1
Real Name: Gérald Salin
Company: INRAE - GeT-PlaGe

Re: possible network issue warning

Post by gsalin »

usefull dev tools!!

watched for control and xhr events.
clicking on the minus icon (a#RemoveCustomerTicket_1.RemoveButton.CustomerTicketRemove) to remove an email address, an xhr call is done, with a status code 200.
looking at its content, shows some nteresting lines :

Insufficient Rights
Message: No Permission to use this frontend module!


the xhr request which seems to cause the error is : Action=RS_AdminCustomerUser2&Subaction=GetNewButton&ChallengeToken=XXXXX


any idea for what can cuase this issue?
--
znuny 6.5.6
postgresql 13
Rocky 8
gsalin
Znuny newbie
Posts: 36
Joined: 10 Mar 2023, 16:38
Znuny Version: znuny 6.5.1
Real Name: Gérald Salin
Company: INRAE - GeT-PlaGe

Re: possible network issue warning

Post by gsalin »

looking at the code server side, the faulty code is from a package RS4OTRS_NewCustomerFromTicket-6.0.1
so no bug from znuny ;)
I will check if there is a more recent version....
--
znuny 6.5.6
postgresql 13
Rocky 8
skullz
Znuny superhero
Posts: 621
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: possible network issue warning

Post by skullz »

Great you figure it out..
Do you have 3rd party addon installed?
Something regarding customer user?

I dont think RS_AdminCustomerUser is part of the default znuny / otrs
gsalin
Znuny newbie
Posts: 36
Joined: 10 Mar 2023, 16:38
Znuny Version: znuny 6.5.1
Real Name: Gérald Salin
Company: INRAE - GeT-PlaGe

[SOLVED]Re: possible network issue warning

Post by gsalin »

yes RS4OTRS_NewCustomerFromTicket-6.0.1
we wrote at the same time ;)
--
znuny 6.5.6
postgresql 13
Rocky 8
Post Reply