NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Network and Storage Protocols

Bug in CifsShareAclInfo, ShareName always null

hoogland
2,737 Views

Hi,

I think I have found a little bug in ontap 4.1 .net bindings.

If I want to create a list or a single item from type CifsShareAclInfo the ShareName is always null.

 

Below a sample of my application:

--------------------------------Begin Sample--------------------------------------------------------

CifsShareAclListIterStart NAShareACStart = new CifsShareAclListIterStart();

CifsShareAclListIterStartResult NAShareACStartResult;

NAShareACStartResult = NAShareACStart.Invoke(this.ServerObj);

long? ShareItems = NAShareACStartResult.Records;

String ShareTag = NAShareACStartResult.Tag;

 

CifsShareAclListIterNext NAShareNext = new CifsShareAclListIterNext();

NAShareNext.Tag = ShareTag;

NAShareNext.Maximum = 100;

CifsShareAclListIterNextResult NAShareNextResult;

 

//Get all the ranges from Next shares.

if(ShareItems != null)

{

     long AddedToList = 0;

     while(AddedToList < ShareItems)

     {

          NAShareNextResult = NAShareNext.Invoke(this.ServerObj);

          ShareACList.AddRange(NAShareNextResult.CifsShareAcls.);

          AddedToList += 100;

     }

}

 

//End the Shares session

CifsShareAclListIterEnd NAShareEnd = new CifsShareAclListIterEnd();

NAShareEnd.Tag = ShareTag;

CifsShareAclListIterEndResult NAShareEndResult = NAShareEnd.Invoke(this.ServerObj);

-----------------------------------------End Sample---------------------------------------------------------

So now you know the permissions on a share but haven’t got a clue with share it is….

Is it a bug or am I doing something wrong here?

0 REPLIES 0
Public