Jump to content

Users without an account can't close tickets on Blesta 4.3.0


panormitis

Recommended Posts

I have upgraded to Blesta 4.3.0

I'm using support manager.  On some departments I have unchecked the "Allow only clients to open or reply to tickets", because I want also non-clients (without an account in Blesta) to create tickets via sending an e-mail.

If someone without an account in Blesta, visits a ticket via {update_ticket_url} he/she can't close it.

A 401 jquery error is generated when clicking the Close button and the ticket remains open.

If it's a client with an account, everything works normally.

Looks like a session issue

Please see the attached pictures

blesta2.jpg

blesta1.jpg

Link to comment
Share on other sites

Hi Tiny & Paul,

I upgraded from Blesta 4.2 and I'm positive I overwritten all files. Actually I restored a backup and tried the upgrade twice (in case something went wrong the first time) and this issue is reproducible.

I don't know if it matters, I'm using PHP 7.2.8 and on Blesta 4.2 I was using support manager pro. Now on Blesta 4.3 I have uninstalled support manager pro and using the regular support manager.

Link to comment
Share on other sites

I'm not sure what the issue is with not being able to close the ticket, although it's possible it could have something to do with the support manager pro plugin. In any case, you should revert jQuery back to the original file since v3.3.1 is a different major release from what is included with Blesta and that may break other JavaScript.

Link to comment
Share on other sites

16 hours ago, Tiny said:

I have the feeling, the error is caused by some file(s) not overwritten when upgrading. I had similar, no ticket was changing status, but updates where stored

 

 

Have you tried accessing the upgrade url again? Does it still show you an upgrade option?

Link to comment
Share on other sites

1 hour ago, panormitis said:

In my case the files were overwritten correctly and the database seems ok.

 Perhaps there is some bug/incompatibility with PHP 7.2.8.

 Or perhaps the issue is occurring because I'm using reverse-proxy NGINX + Apache (I'm starting to suspect that's it).

and you can change/create tickets and also change the status?

Link to comment
Share on other sites

Hi Tiny,

I performed some tests.

On some departments of support manager, I have unchecked the "Allow only clients to open or reply to tickets", because I want also non-clients (without an account in Blesta) to create tickets via sending an e-mail.

The issue only occurs on non-clients, not for everybody. If someone without an account in Blesta, visits a ticket via {update_ticket_url} he/she can't close it.

A 401 jquery error is generated when clicking the Close button and the ticket remains open.

However, clients with an account (they are required to log in to access the tickets) are not affected.

Looks like a session issue.

I have edited my first post for clarification. I didn't know it only affects users without an account.

Link to comment
Share on other sites

On 8/4/2018 at 7:29 AM, panormitis said:

Can I perform a clean install and import the clients/packages/services etc.

Is that possible? Is there an export - import function?

This should be quite easy to make:

Backup/download the mysql database, create a new one, back it up is well.

With a tool like meld, you can move all over to the new one, just don't overwrite. After,  restore the changed datbase

Link to comment
Share on other sites

  • 2 months later...

Turns out it is an issue with permission for fetching the modal.  To fix you can alter app/client_controller.php starting at line 17 from

// Allow states to be fetched without login
if ($class_name == 'ClientMain' && (in_array(strtolower($this->action), ['getstates', 'setlanguage']))) {
    return;
}

to

// Allow states and dialog to be fetched without login
if ($class_name == 'ClientMain' && (in_array(strtolower($this->action), ['getstates', 'setlanguage']))
    || $class_name == 'ClientDialog'
) {
    return;
}

This fix will be included in v4.4.  See CORE-2850

Link to comment
Share on other sites

  • Tyson locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...