[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [xacml-dev] Policy editor? Gui?
Ok, I put complete Target elements with all Any* stuff, still it's throwing exception, e.g. if I click on the Rule: ==================== See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.Binding.FormatObject(Object value) at System.Windows.Forms.Binding.PushData() at System.Windows.Forms.Binding.UpdateIsBinding() at System.Windows.Forms.Binding.CheckBinding() at System.Windows.Forms.ListManagerBindingsCollection.AddCore(Binding dataBinding) at System.Windows.Forms.BindingsCollection.Add(Binding binding) at System.Windows.Forms.BindingContext.UpdateBinding(BindingContext newBindingContext, Binding binding) at System.Windows.Forms.Control.UpdateBindings() at System.Windows.Forms.Control.OnBindingContextChanged(EventArgs e) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.TextBoxBase.WndProc(Message& m) at System.Windows.Forms.TextBox.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- Xacml.ControlCenter Assembly Version: 0.0.0.6 Win32 Version: 0.0.0.6 CodeBase: file:///D:/tmp/xacml.net/Xacml.ControlCenter.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c5 61934e089/system.windows.forms.dll ---------------------------------------- System Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/syst em.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50 a3a/system.drawing.dll ---------------------------------------- Xacml.Core Assembly Version: 0.0.0.6 Win32 Version: 0.0.0.6 CodeBase: file:///D:/tmp/xacml.net/Xacml.Core.DLL ---------------------------------------- System.Xml Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/ system.xml.dll ---------------------------------------- Accessibility Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a 3a/accessibility.dll ---------------------------------------- ************** JIT Debugging ************** To enable just in time (JIT) debugging, the config file for this application or machine (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: <configuration> <system.windows.forms jitDebugging="true" /> </configuration> When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the machine rather than being handled by this dialog. ==================== > -----Original Message----- > From: Kuketayev, Argyn > Sent: Friday, November 12, 2004 11:33 AM > To: Seth Proctor > Cc: diego gonzalez; xacml-dev@lists.oasis-open.org > Subject: RE: [xacml-dev] Policy editor? Gui? > > > I was suspecting that. > > First I copied policies from RBAC profile doc. They didn't > work with SunXACML, because of Target elements incomplete. > So, I put all Any* stuff there, it started working. Then I > removed elements one by one until it stopped working. That's > how I got my minimal policy :) > > > -----Original Message----- > > From: Seth Proctor [mailto:Seth.Proctor@Sun.COM] > > Sent: Friday, November 12, 2004 11:30 AM > > To: Kuketayev, Argyn > > Cc: diego gonzalez; xacml-dev@lists.oasis-open.org > > Subject: RE: [xacml-dev] Policy editor? Gui? > > > > > > On Fri, 2004-11-12 at 11:03, Kuketayev, Argyn wrote: > > > here's a policy, it's a part of my version of RBAC profile > > > implementation > > > > > > ====================== > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > <PolicySet xmlns="urn:oasis:names:tc:xacml:1.0:policy" > > > PolicySetId="RBAC:PPS:role:default" > > > > > > > > > PolicyCombiningAlgId="urn:oasis:names:tc:xacml:1.0:policy-combining-al > > > go > > > rithm:permit-overrides"> > > > > > > <Target/> > > > <Policy PolicyId="RBAC:Permissions:role:default" > > > > > > > > > RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algori > > > th > > > m:permit-overrides"> > > > <Target/> > > > > > > <Rule RuleId="FinalRule" Effect="Deny"/> > > > </Policy> > > > </PolicySet> > > > ====================== > > > > The problem is that this is not a valid 1.x policy. The > > Target may not be empty. Instead, you need to specify all > > three Target sections with the Any* elements (eg, > > <AnySubject/>). The SunXACML code doesn't complain because it > > doesn't try to reproduce all the error-checking that can be > > done using schema validation, which would recognize your > > policy as invalid. Try running your policy through a schema > > checker and it should complain. > > > > > > seth > > > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]