Page 1 of 1

Cognos Express Element Security limitations?

Posted: Fri Jun 15, 2012 11:44 am
by moonhead
Hi there,

Apologies if this is a know limitation or problem, I've been trying to search for a similar problem now for quite some time without any luck.

We've set up (well we've had someone set up for us), a number of cubes and dimensions within Cognos Express 9.5, for the most part they're working fine. One issue we identified after implementation was the security around the "staff" cube was insufficient. Given the sensitive nature of this cube (it contains salaries, bonuses and other information), we decided it needs to be locked down pretty tight.

After a little investigation we came to the conclusion the only way (we could see) to achieve our required level of lock-down was to set permissions at the element level. In the test environment this worked well, providing the granular level of security we need for this kind of detail.

However when moving to the production environment, along with the "real world" security model, we've found it doesn't work. Not the security itself, but the Web interface for accessing these views on this cube.

The problems is as follows, I've set element level security for a number of different groups. Essentially each element will only have 1 or 2 groups that have (write) access to it, everyone else is "none". As you can imagine, we then put users into the appropriate groups depending on who's details they need to see. However, when the users go to view these details the web interface doesn't bring up anything. It just sits there with it's spinning "working" indicator forever. If I log in to Architect using the same user account, I CAN browse this view fine. It shows the elements we are expecting just fine.

I've had a look through the tm1web.log, even increased the logging level to DEBUG. this is the only message that is given for this issue (I guess it's good we're getting something).

Code: Select all

2012-06-15 15:56:01,796 [9] ERROR Applix.TM1.Web.Page.TM1WebError - Error in: http://servername/TM1Web/TM1WebMain.aspx?action=OpenObject&type=Cubeviewer&value=Staff$$p Staff Planning$$PUBLIC&aid={7ed86632-2672-4814-8dbd-db64d2e0eaa4}&nodeID=[Division].[79]&index=0
2012-06-15 15:56:01,796 [9] ERROR Applix.TM1.Web.Page.TM1WebError - Request Info -  Browser: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 3.0.04506.648; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; .NET4.0C; .NET4.0E; CognosRCP), User Host Name: 192.168.100.36, Method: GET, Encoding: System.Text.UTF8Encoding, Content Length: 0, Content Type: 
2012-06-15 15:56:01,812 [9] ERROR Applix.TM1.Web.Page.TM1WebError - Action Type: 
2012-06-15 15:56:01,812 [9] ERROR Applix.TM1.Web.Page.TM1WebError - Value: 
2012-06-15 15:56:01,812 [9] ERROR Applix.TM1.Web.Page.TM1WebError - Error Details:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Applix.TM1.Web.WebControls.CubeViewer.TM1CubeView.GetElementsNameArray(TM1ViewPageData pageData, Int32 row, Int32 col)
   at Applix.TM1.Web.WebControls.CubeViewer.TM1CubeView.CollectCellDrillList(TM1ViewPageData pageData, String[][]& cellDrillStrs)
   at Applix.TM1.Web.WebControls.CubeViewer.TM1CubeView.GetViewArrayData()
   at Applix.TM1.Web.WebControls.CubeViewer.TM1CubeView.LoadView()
   at Applix.TM1.Web.WebControls.CubeViewer.TM1CubeView..ctor(TM1CubeViewerControl parent, String viewName, _TM1Server servObj)
   at Applix.TM1.Web.WebControls.CubeViewer.TM1CubeViewerControl..ctor(String viewStr, _TM1Server serverObj, TM1WebApplication app, String appID, String nodeID, Int32 index)
   at Applix.TM1.Web.WebControls.TM1WebApplication.OpenPlanningView(String viewStr, String appID, String nodeID, Int32 index)
   at Applix.TM1.Web.Page.TM1WebMain.ExecuteActionFromUrl(TM1WebApplication app, ITM1WebDisplayObject obj)
   at Applix.TM1.Web.Page.TM1WebMain.Page_Init(Object sender, EventArgs e)
   at System.Web.UI.Control.OnInit(EventArgs e)
   at System.Web.UI.Page.OnInit(EventArgs e)
   at Applix.TM1.Web.Page.TM1WebMain.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
At this point I started getting suspicious it was something to do with security (getting a null value from the GetElementsNameArray method). So as a test I set all the elements in this dimension to give "READ" access to another group my test user was a member of. Upon doing this, it worked. The web interface opened just fine, now displaying the data I had write access to correctly, and, as expected, also showing all the other staff with read access. I un-did my changes and it reverted back to before. Still not loading in the web interface.

Now for the strange part. I then re-set all the security to "READ" for my second group. Again, working fine in the web interface. However I then went through one by one hiding each element this user shouldn't have access to. I got to 51 out of 368 elements before the problem appeared again. As soon as I set the 52nd element to "NONE", the web interface doesn't work. I've tired numerous different elements, all unremarkable, all with the same result.

Has anyone seen this happen before? And if so, how do I fix/work around it?

Thanks a lot,

Cameron

Re: Cognos Express Element Security limitations?

Posted: Fri Jun 15, 2012 12:02 pm
by lotsaram
By the sounds of it you have done enough testing to raise this as a bug.

Re: Cognos Express Element Security limitations?

Posted: Fri Jun 15, 2012 1:21 pm
by moby91
Did you ever get a timeout error message ?


When you got 51 out of 368 elements, how long did it take to open the websheet or the web cubeview ?
When you got only 1 out of 368 elements, how long did it take to open the websheet or the web cubeview ?

I assume the more elements you got out of 368 elements, the longer it took to open the websheet or the web cube view.

Is this correct ?

If so, what happens when you increase the timeout settings of TM1 Web ?


Regarding the timeout settings of TM1 Web see the IBM Technote 1407112 ->

http://www-304.ibm.com/support/docview. ... wg21407112
How to change TM1 Web and TM1 client Timeout

Re: Cognos Express Element Security limitations?

Posted: Sat Jun 16, 2012 1:24 am
by moonhead
moby91 wrote:Did you ever get a timeout error message ?


When you got 51 out of 368 elements, how long did it take to open the websheet or the web cubeview ?
When you got only 1 out of 368 elements, how long did it take to open the websheet or the web cubeview ?

I assume the more elements you got out of 368 elements, the longer it took to open the websheet or the web cube view.

Is this correct ?

If so, what happens when you increase the timeout settings of TM1 Web ?


Regarding the timeout settings of TM1 Web see the IBM Technote 1407112 ->

http://www-304.ibm.com/support/docview. ... wg21407112
How to change TM1 Web and TM1 client Timeout
Sorry to say I never got a timeout error message. There was no noticable difference in load time between hiding 1 element and 51 elements. Split second to load, it takes more time to render the page than it does to open it. The cube itself is really quite small. Only 4 dimensions, The biggest having 368 elements (the one I am attempting to secure), the other have 60, 50, 6. So as you can imagine it's really quite quick normally.

I did just try adjusting the timeouts though as suggested, no difference sorry.

lotsaram wrote: By the sounds of it you have done enough testing to raise this as a bug.
That's what I was thinking my next step would be. I don't suppose anyone knows the process of reporting a bug do they (again, I'm very new to this, been thrown in the deep end)?

Re: Cognos Express Element Security limitations?

Posted: Sat Jun 16, 2012 6:41 am
by moby91
moonhead wrote:
lotsaram wrote: By the sounds of it you have done enough testing to raise this as a bug.
That's what I was thinking my next step would be. I don't suppose anyone knows the process of reporting a bug do they (again, I'm very new to this, been thrown in the deep end)?
http://www.youtube.com/user/IBMElectronicSupport
IBM Electronic Support Channel


http://www.youtube.com/watch?v=ekDYA9y8PK0
IBM Service Request streamlined problem submission process

This video demonstrates how to use IBM Service Request (or SR) to open a problem online with IBM Support.

Re: Cognos Express Element Security limitations?

Posted: Sat Jun 16, 2012 7:35 am
by moonhead
moby91 wrote:
http://www.youtube.com/user/IBMElectronicSupport
IBM Electronic Support Channel


http://www.youtube.com/watch?v=ekDYA9y8PK0
IBM Service Request streamlined problem submission process

This video demonstrates how to use IBM Service Request (or SR) to open a problem online with IBM Support.
Thanks!

Now the hard task of tracking down our IBM Customer number...... At least we can do it online.