Closed hoti06600 closed 5 years ago
Those issues are fixed in the new version (development branch). They are being merged to 3.17 and 3.90 branches. Here are the exported files with the development branch: saiku-export.xlsx saiku-export.txt
It's already fixed at the development branch.
Is this a bug report?
Yes
Environment
java -version
: java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)Operating system: MacOS
Browser and version (if relevant):Firefox 67.0.2 (64 bits)
Saiku plugin to Pentaho or Saiku Standalone: Saiku Standalone
Saiku CE or Saiku EE:Saiku EE
Saiku version: Saiku 3.8.3-EE
Steps to Reproduce
New roles do not work. Only the default roles "ROLE_USER" and "ROLE_ADMIN" work.
We modify the already existing "foodmart" data source, using the advanced mode with the content of the file : roles_ok.txt
We modify the already existing "foodmart4" schema with the content of the file : foodmart4.txt
We refresh the cubes
If we check the logs from the file "saiku.log" we see that some lines appear : log_ok.txt
So we understand that the "security.mapping" parameter defined in the datasource is working for the already existing roles "ROLE_USER" and "ROLE_ADMIN".
We modify once again the "foodmart" data source with the content of the file : roles_nok.txt
We refresh the cubes
If we check the logs from the file "saiku.log" we see that some lines appear : log_nok.txt
In this case, we have the same lines as before :
Setting role to datasource:foodmart role:ROLE_ADMIN,ROLE_USER
So we understand that the new role "ROLE_TEST" is not taken into account by Saiku.
Indeed, if we try to use the role "ROLE_TEST" in the mondrian schema, it does not work, due to the previous problem.
I could add two roles in a previous version of Saiku EE (downloaded in 2016), but I could not add anymore in the new version. Nonetheless, the two roles created in the previous version still work now. The problem is only about adding new roles.
Maybe, the method of adding role is not correct (perhaps I have forgotten how to do this) ?
Or is it that there is a bug in the new versions of Saiku EE ?