View previous topic :: View next topic |
Author |
Message |
dlaroche-ca
Joined: 03 Jul 2013 Posts: 32 Location: Montréal, Québec, Canada
|
Posted: Fri Oct 17, 2014 9:23 pm Post subject: vms.starlet.get_security not working on version 2.7.8 |
|
|
I found another thing not working with the new version:
Code: |
from vms.ossdef import OSS__PROTECTION
from vms.starlet import get_security
from vms.itemList import itemList, il_noType
itl = [itemList(code=OSS__PROTECTION, dtype=il_noType)]
status, ctx, resdic = get_security('FILE', objnam='tfc$user:[ex36672]login.com', itmlst=itl)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: need more than 2 values to unpack
|
The same example works fine on version 2.7.2+. This is for VMS 8.3 on an Integrity server.
Thanks in advance. |
|
Back to top |
|
 |
jfp
Joined: 12 Jul 2004 Posts: 636
|
Posted: Sun Oct 19, 2014 9:01 am Post subject: |
|
|
Correct,
in the new interface when there is no context the result doesn't include it.
So get_security only returns status and resdic.
But if you call it with "contxt=0" the results include the updated context.
I will take a look to add some flag to keep the compatibility with previous version.
JF |
|
Back to top |
|
 |
dlaroche-ca
Joined: 03 Jul 2013 Posts: 32 Location: Montréal, Québec, Canada
|
Posted: Tue Oct 21, 2014 2:32 pm Post subject: |
|
|
Ok thanks. I will revise all the calls I make to vms.starlet functions to add the ctx argument. Please don't spend too much time to make it backward compatible just for me. |
|
Back to top |
|
 |
jfp
Joined: 12 Jul 2004 Posts: 636
|
Posted: Tue Oct 21, 2014 4:41 pm Post subject: |
|
|
I think it's better to remove the ctxt result, adding a non null context may result in memory leak (at least for some system services). |
|
Back to top |
|
 |
|