You are viewing limited content. For full access, please sign in.

Question

Question

How to clear access rights in LF 10.4

asked on April 19, 2022 Show version history

I've come across an article here with a tool that I thought would help - Access Rights |Clear Entry Access Rights (laserfiche.com)

When I attempted to use the tool on a smaller folder it worked as expected. I then tried to use the tool on a larger folder and the application appeard to lock up, after a period of time the application errors with an unhandled exception. 

Is there a way to run this within laserfiche yet? Or is there a way to update this tool to work properly?

LF 10.4
Windows server 2019
When attempting to run tool from a different computer it immediately errors

Text in debug log - 

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0xC004235B): The specified operation is not recognized.
   at LFSO82Lib.LFEntryListingClass.get_DatumByColType(Int32 Row, Column_Type ColType)
   at AccessRightsCleanUp.Form1.ClearAccessRights(LFDatabase db, Int32 currentID, Boolean recursion)
   at AccessRightsCleanUp.Form1.ClearAccessRights(LFDatabase db, Int32 currentID, Boolean recursion)
   at AccessRightsCleanUp.Form1.Ok_Button_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9044 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
AccessRightsCleanUp
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/itp/Downloads/AccessRightsCleanUpSource/Prebuilt%20x86%20Executables/82/AccessRightsCleanUp.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.9031 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9042 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9038 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Interop.LFSO82Lib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/itp/Downloads/AccessRightsCleanUpSource/Prebuilt%20x86%20Executables/82/Interop.LFSO82Lib.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (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 computer
rather than be handled by this dialog box.


 

0 0

Replies

replied on April 20, 2022

I'm not familiar with the tool, but I would guess that it's running into trouble with some large folders. "The specified operation is not recognized" probably refers to a folder listing it was trying to use, which may have been cleaned up. I don't recall who maintains Solution Exchange applications, but it looks like this one could use an update.

0 0
replied on April 21, 2022 Show version history

I have left a VM for laserfiche, which was then forwarded to citiesdigital who claims that the solution exchange applications are akin to a github and state that there is no way to automate clearing entry access rights and resetting inherit to true. 

I had thought something like this might be possible using workflow rules, and considering setting permissions recursively is something that can be done on any platform I'm very surprised to see that changing permissions recursively is not possible. On any windows or Linux platform this is a relatively simple task. 

Is there any other way to accomplish this goal?  

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.