collection name in PEP pep_api_rm_coll_pre

14 views
Skip to first unread message

Andre Parent

unread,
Aug 19, 2026, 5:41:01 PM (14 days ago) Aug 19
to iRODS-Chat
Hi,

I want to write a PEP pep_api_rm_coll_pre in core.re but I can't get the collection name.

Using:

pep_api_rm_coll_pre(*INSTANCE_NAME, *COMM, *COLL_INP, *REI) {
    # Extract the collection path being removed
    *path = *COLL_INP.collName;

    # Example: Write it to the server log for debugging
    writeLine("serverLog", "pep_api_rm_coll_pre triggered for collection: *path");
}

I get the following error log:

{"log_category":"legacy","log_level":"error","log_message":"executeRuleAction Failed for assign status = -313000 UNMATCHED_KEY_OR_INDEX","request_api_name":"RM_COLL_AN","request_api_number":679,"request_api_version":"d","request_client_user":"rods","request_host":"10.244.146.136","request_proxy_user":"rods","request_release_version":"rods5.0.2","server_host":"irods-provider","server_pid":269630,"server_timestamp":"2026-08-19T20:42:41.253Z","server_type":"agent","server_zone":"banqZone"}
{"log_category":"legacy","log_level":"info","log_message":"executeRuleBody: Microservice or Action assign Failed with status -313000","request_api_name":"RM_COLL_AN","request_api_number":679,"request_api_version":"d","request_client_user":"rods","request_host":"10.244.146.136","request_proxy_user":"rods","request_release_version":"rods5.0.2","server_host":"irods-provider","server_pid":269630,"server_timestamp":"2026-08-19T20:42:41.253Z","server_type":"agent","server_zone":"banqZone"}
{"log_category":"legacy","log_level":"info","log_message":"execRuleNodeRes: applyRule Failed: pep_api_rm_coll_pre with status -313000","request_api_name":"RM_COLL_AN","request_api_number":679,"request_api_version":"d","request_client_user":"rods","request_host":"10.244.146.136","request_proxy_user":"rods","request_release_version":"rods5.0.2","server_host":"irods-provider","server_pid":269630,"server_timestamp":"2026-08-19T20:42:41.253Z","server_type":"agent","server_zone":"banqZone"}
Aug 19 20:42:41 pid:269630 DEBUG: unmatched key collName
line 602, col 12, rule base core
    *path = *COLL_INP.collName;
            ^

{"log_category":"legacy","log_level":"error","log_message":"unmatched key collName\nline 602, col 12, rule base core\n    *path = *COLL_INP.collName;\n            ^\n\n","request_api_name":"RM_COLL_AN","request_api_number":679,"request_api_version":"d","request_client_user":"rods","request_host":"10.244.146.136","request_proxy_user":"rods","request_release_version":"rods5.0.2","server_host":"irods-provider","server_pid":269630,"server_timestamp":"2026-08-19T20:42:41.253Z","server_type":"agent","server_zone":"banqZone"}

In core.dvm there is:
# collection info
collName||rei->coi->collName

Am I missing something?

Thanks
Andre

Terrell Russell

unread,
Aug 19, 2026, 6:56:48 PM (14 days ago) Aug 19
to irod...@googlegroups.com
Hi Andre,

Try...
    *path = *COLL_INP.collName;

You can see it if you print out the structure itself...

  writeLine("serverLog", *COLL_INP);

giving something like...

 {"log_category":"legacy","log_level":"info","log_message":"writeLine: inString = coll_name=/tempZone/home/rods/deleteme++++flags=++++opr_type=++++translatedPath=\n","request_api_name":"RM_COLL_AN","request_api_number":679,...}

Terrell



--
--
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/e4ffc4ea-a630-4b89-bab7-04cb11ab80ben%40googlegroups.com.

Terrell Russell

unread,
Aug 19, 2026, 7:06:46 PM (14 days ago) Aug 19
to irod...@googlegroups.com
Well, I goofed the actual answer...

Try...

    *path = *COLL_INP.coll_name;

Terrell

Andre Parent

unread,
Aug 19, 2026, 7:55:54 PM (13 days ago) Aug 19
to iRODS-Chat
Thank you Terrell, with  coll_name  it's working.

Printing out the structure with writeLine("serverLog", *COLL_INP);   will be very useful for the next ones.

Thanks
Andre

Reply all
Reply to author
Forward
0 new messages