Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error adding document2

Status
Not open for further replies.

gref81

Programmer
Apr 18, 2007
8
GB
I start a new thread because i can't reply in the old one, due to html problem, i suppose. sorry.

1)I can't find any difference between the two type of directory. I can post the dtree row if it may help, but are similar.
2)This are connection log?
2007-06-08 13:28:49 XXX.XXX.XXX.XXX gab XXX.XXX.XXX.XXX 80 GET /llink/livelink.exe func=ll&objType=144&objAction=create&parentId=61773727&nextURL=%2Fllink%2Flivelink%2Eexe%3Ffunc%3Dll%26objId%3D61773727%26objAction%3Dbrowse%26sort%3Dname%26viewType%3D1 200 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0;+.NET+CLR+1.1.4322)

Thank you
 
my USD 0.02
The situation could occur if this condition is met
Either you are NOT using an ADMIN context where container creation permissions are not being checked by livelink(easily checked out by using an admin context)
OR
The container has 'ADD ITEM' privilege but the 'RESERVE' bitmask is not present.See this artiocle in the KB

Compare the dtreeacl entries of the folder that works vs the
folder that does not and will show you some info.It couldn't be an additional node attribute could it ?




Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Here is my dtreeacl. DATAID=52755985 is good directory.

OWNERID|PARENTID|DATAID|RIGHTID|PERMISSIONS|ACLTYPE|SEE
-2000|52755983|52755985|267069|258207|1|4
-2000|52755983|52755985|26908|36995|2|2
-2000|52755983|52755985|-1|258191|3|4
-2000|52755983|52755985|-2|16777215|4|4
-2000|52755983|52755985|9539245|118919|0|3
-2000|61773725|61773727|9089324|258207|1|4
-2000|61773725|61773727|26908|36995|2|2
-2000|61773725|61773727|-1|258191|3|4
-2000|61773725|61773727|-2|16777215|4|4

Many thanks for your help
 
It is pretty difficult to explain livelink permissions one on one in this forum.However I have for you some suggestions.If you have sysadmin perms or can get with a sysadmin open up tthe permissions bit for all user,group others and see the difference.I think you are missing a priv on one of them groups.
Code:
258207 translates to See,See Contents  thru Edit permissions the full gamut of perms
36995 translates to See,See contents and like wise

On the dataid 61773727 if you are adding this as this user 9089324 you should have no problem

however if you were this user 9539245 you have Add Items and Delete Versions but no Reserve
hence would violate the rule

If you were owner (258191) should have no problem

The permissions are a bitmask so you should not compare the decimal representation but use in built oscript methods for bitwise manipulation.For this very same purpose OT has a utility routine that allots an Admin context so be very stringent of its use.

See if my analysis is correct and helps you out

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
thank you for your explanation, it is clear and very useful, but the problem is that i can't add document neither with admin perms neither with creator perms neither with any other user/group.
 
Unfortunately at this point I would not be able to give you anymore help unless I can debug it thru builder.This is not a hit and a miss correct ? You can reproduce this time and again correct.How is your storage (FSM) set up .Any specific rule that is different or could cause heartburn there.Probably open a ticket with OT after checking the obvious stuff like FSM,patches,provider space etc.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
I have process map (created in visio ) and given to link to another process. The problem is i publish that document as htm. when i upload the document onto livelink my links doesnt work.
How can i make it work?
Thanks in advance
 
Here is my problem. I discovered this behaviour, but i don't know why.

I create with this code 2 custom folder:
---------------------------------------------------------
rtnval = folder1.NodeAlloc( node, "aaa" )
if ( !rtnval.OK )
return ( rtnval )
end

createInfo1.name = "aaa"
createInfo1.parent = node
createInfo1.InheritNode = node
createInfo1.DapiCtx = prgCtx.DSession()
rtnval = folder1.NodeCreate( rtnval.node, node, createInfo1 )

if ( !rtnval.OK )
return ( rtnval )
end

rtnval = folder2.NodeAlloc( node, "bbbbbbbbbbb" )

if ( !rtnval.OK )
return ( rtnval )
end

createInfo2.name = "bbbbbbbbbbb"
createInfo2.parent = node
createInfo2.InheritNode = node
createInfo2.DapiCtx = prgCtx.DSession()
rtnval = folderReport.NodeCreate( rtnval.node, node, createInfo2 )

if ( !rtnval.OK )
return ( rtnval )
end
--------------------------------------------------------
They are identical except for the length of the name. In the one with the short name it is possible to add document, in the other it isn't. I'm sure of this, i've tried to change name, swap between folder 1 and 2, ecc.
This beacuse they are created in a custom folder, created in this way:
---------------------------------------------------------
Dynamic GContainer = $LLIAPI.LLNodeSubsystem.GetItem( $TypeFolderG )
---------------------------------------------------------
I'm investigating on what is wrong in this folder creation.
 
Looks like you have a custom folder object and it could be the business rules.how about this ,create the nodes,making sure the allocation is correct.In the place where it fails
call a rename command and see.

A bit of snippet from my code
Code:
I am actually creating a document
// Ste up the LLNode subsystem for Documents
		LLNode = $LLIAPI.LLNodeSubsystem.GetItem ( $TypeDocument )
// Allocate a new node.  Pass the parent node and the name of the new node.
			wfStorageDocument = LLNode.NodeAlloc( wfStorageFolder, wfReportName )
wfStorageDocument = LLNode.NodeAlloc( wfStorageFolder, wfReportName )
 Set up the data about the version...versionFile is the path to the document
			fileData.comment = "A report of the workflow --- contains attributes, step and comments information."
			fileData.versionFile = fileName
// Create the node.  Pass the parent node, the dapi node of the object, and the data just set up.
			nodeStatus = LLnode.NodeCreate( wfStorageDocument,wfStorageFolder,fileData )

in the above code the LLNODE object would be a document object similar to what your $TypeFolderG's business rules would dictate.If somebody were to write code in your custom folder object to look for a length of a new name allocated you would be in trouble wouldn't it.See if node allocation is happening or not

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top