Copy dashboard to user not working on usernames containing special characters


#1

Dear matomo team / community,

We might have run into a bug when trying to copy custom dashboard layouts to other users. When updating to the latest version at least there was an error message that might provide a hint why it fails, saying:

“Cannot copy dashboard to user […]%40[…], user not found or user does not have access to same site.”

Copying dashboard layouts to users that do not contain special characters in their usernames does work flawlessly though. Therefore we are assuming that there might be an encoding / decoding error at some point during the process of copying dashboard layouts.

We are using two premium plugins (white label + roll-up reporting) and overall, our custom dashboard layouts all use widgets being available by default.

Finally, why exactly might copying dashboard layouts fail when a user does not have access to the same site as mentioned in the above error message? Ain’t those layouts in general independent from user rights towards sites? :thinking:

Thanks for any feedback on the above


(Lukas Winkler) #2

Hi,

I can reproduce the issue and have therefore forwarded it here:


#3

Thank you for immediately looking into this. Really does seem to be a new bug as you could successfully reproduce the error. Hopefully, a fix can be included into a next stable release soon :slightly_smiling_face:

Best regards


(Lukas Winkler) #4

In case you didn’t notice:

This will be fixed in Fix dashboard copy to user with special chars by sgiehl · Pull Request #14197 · matomo-org/matomo · GitHub and the error message is incorrect. (It only checks if the user exists)


#5

Thanks for the notice :slightly_smiling_face: