Issue in metadata manager in python-irodsclient 3.3.0

32 views
Skip to first unread message

Bruno Santos

unread,
Sep 7, 2026, 6:07:53 AMSep 7
to iRODS-Chat
Hi,

When we upgraded the python-irodsclient to 3.3.0, this issue popup in our regression test.
The metadata manager keeps the admin flag value from the previous call, even from a different irods session.

```
from my_connect_method import connect

irods_json_file_normal_account = '(...)/.irods/norm_user_environment.json'
irods_json_file_admin_account = '
(...) /.irods/admin_user_environment.json'

logical_path = '/ZONE/home/norm_user/a.txt'
meta_name, meta_value = 'att_name_39', 'att_value_39'


def set_metadata_with_normal_user():
  session = connect(irods_json_file_normal_account)

  data_object = session.data_objects.get(logical_path)
  # As the admin flag is not set, it should be False?
  data_object.metadata.set(meta_name, meta_value)

  # To make it work ALWAYS, the admin flag needs to be set!
  # data_object.metadata(admin=False).set(meta_name, meta_value)


def set_metadata_with_admin_user():
  session = connect(irods_json_file_admin_account)

  data_object = session.data_objects.get(logical_path)
  data_object.metadata(admin=True).set(meta_name, meta_value)


# This order works:
# set_metadata_with_normal_user()
# set_metadata_with_admin_user()

# This order does not work
set_metadata_with_admin_user()
set_metadata_with_normal_user()

#
# python-irodsclient 3.3.0
# With 3.2.0 it works fine
#
```


Regards,
Bruno

dmoore.renci

unread,
Sep 8, 2026, 4:45:09 PMSep 8
to iRODS-Chat
Hi Bruno ,
  - what error is generated and from which call?
  - what does your connect( ) function look like
D. Moore 

Kory Draughn

unread,
Sep 9, 2026, 9:01:11 AMSep 9
to irod...@googlegroups.com
Hi Bruno,


Thanks,

Kory Draughn
Chief Technologist
iRODS Consortium


--
--
The Integrated Rule-Oriented Data System (iRODS) - https://irods.org
 
iROD-Chat: http://groups.google.com/group/iROD-Chat
---
You received this message because you are subscribed to the Google Groups "iRODS-Chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/irod-chat/c4b33bb4-69dc-404b-8b41-7eb2074418e6n%40googlegroups.com.

Bruno Santos

unread,
Sep 10, 2026, 3:03:36 AMSep 10
to iRODS-Chat
Hi there, 

I was away, but now I see that you already look and it and replicated it.
Sorry for not including all the details in the first message.

Thank you
Reply all
Reply to author
Forward
0 new messages