PHPJasper / phpjasper

A PHP report generator
MIT License
457 stars 161 forks source link

Password with special characters issue #301

Open montanhes opened 2 years ago

montanhes commented 2 years ago

Describe the bug In my case the issue was happening because the password that I was using has special characters and I think it could be and issue for most of the users. I could solve it just by changing my MySQL password.

To Reproduce Steps to reproduce the behavior:

  1. just add a password with special characters like: )

Expected behavior It will display the message: "Your report has an error and couldn 't be processed!\ Try to output the command using the function output(); and run it manually in the console."

Desktop (please complete the following information):

Whendryo commented 2 years ago

Hi!

I've had the same issue, it's caused by escape character "&" in my DB password.

To solve it, I put double quote " in "password" params like in the example bellow:

$options = [ 
        'db_connection' => [
            'password' => '"%aN1ma@klap&6a@iWYgGf$)89!"'
            ]
];

it worked for me