irods: msiSplitPath missing when used in pep

Bug Report

iRODS Version, OS and Version

  • IRODS 5.0.0 (self-build from 5.0.0 tag)
  • Please check whether it can be reproduced to exclude that something went wrong while building at our side

What did you try to do?

Use following pep:

pep_api_data_obj_unlink_pre(*INSTANCE_NAME, *COMM, *DATAOBJUNLINKINP) {
  *logical_path = *DATAOBJUNLINKINP.obj_path
  msiSplitPath(*logical_path, *coll_name, *data_name)
}

Expected behavior

No error when doing irm file

Observed Behavior (including steps to reproduce, if applicable)

[irods@dev-irods ~]$ irm version.json
remote addresses: 10.0.2.100 ERROR: rmUtil: rm error for /irods/home/rods/version.json, status = -1097000 status = -1097000 NO_RULE_OR_MSI_FUNCTION_FOUND_ERR 

iRODS Server Logs (if applicable)

  • error: cannot find rule for action “msiSplitPath” available: 46.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (15 by maintainers)

Most upvoted comments

The issue is present for NREP - PREP - default_policy; PREP - NREP - default_policy; NREP - default_policy - PREP.

The corresponding

def pep_api_data_obj_unlink_pre(rule_args, callback, rei):
    callback.msiSplitPath("/u0079275/home/col/file")

also fails for NREP - PREP - default_policy as well as for PREP - default_policy (sorry for the hardcoded path).