3535#include < iterator>
3636#include < algorithm>
3737#include < typeinfo>
38+ #include < stdexcept>
3839
3940// =-=-=-=-=-=-=-
4041// boost includes
@@ -415,19 +416,9 @@ namespace {
415416 if (auto * p = getValByKey ( &obj_inp->condInput , FORCE_FLAG_KW); p != 0 ) { rm_force_kw = p; }
416417 indices_for_rm_coll = get_indices_for_delete_by_query (*_rei->rsComm , obj_inp->objPath , false );
417418 }
418- else if (// "pep_api_mod_access_control_pre" == _rn ||
419- " pep_api_mod_access_control_post" == _rn ) {
420-
419+ else if (" pep_api_mod_access_control_post" == _rn ) {
421420 irods::indexing::indexer idx{_rei, config->instance_name_ };
422-
423- auto it = _args.begin ();std::ostringstream s;
424- /*
425- for (const auto & i :_args) {
426- s << i.type().name() << " dwm\n";
427- }
428-
429- rodsLog(LOG_NOTICE,"DWM: %s ---> %s",_rn.c_str(),s.str().c_str());
430- */
421+ auto it = _args.begin ();
431422 std::advance (it, 2 );
432423 if (_args.end () == it) {
433424 THROW (
@@ -437,39 +428,31 @@ namespace {
437428 try {
438429 const auto * access_ctl = boost::any_cast<modAccessControlInp_t*>(*it);
439430 if (access_ctl) {
440- const auto &[recursive,level,userN,zone,logical_path] = *access_ctl;
441- s << " recurs " << recursive <<" "
442- << " accessLvl " <<level<<" "
443- << " userName " <<userN<<" "
444- << " zone " <<zone<<" "
445- << " path " <<logical_path<<" \n " ;
446- rodsLog (LOG_NOTICE," DWM: --- %s" ,s.str ().c_str ());
447- // dwm-
431+ const auto &[recursive, level_, userN_, zone_, logical_path] = *access_ctl;
432+
448433 namespace fsvr = irods::experimental::filesystem::server;
449434 if (recursive && fsvr::is_collection (*_rei->rsComm ,logical_path)) {
450435 idx.schedule_collection_operation (
451436 irods::indexing::operation_type::index,
452437 logical_path,
453438 _rei->rsComm ->clientUser .userName
454- , " ::metadata" // value // DWM -> Empty fields for index_name , index_type ,
455- , " " // units // DWM and index technology will signal that the collection
456- ); // operation should search upward in hierarchy for indexing tags
439+ , " ::metadata" // value // -> Empty fields for index_name , index_type ,
440+ , " " // units // and index technology will signal that the collection
441+ ); // operation should search upward in hierarchy for indexing tags
457442 }
458443 else {
459444 idx.schedule_metadata_indexing_event (
460445 logical_path,
461446 _rei->rsComm ->clientUser .userName ,
462- " null" // attribute,
447+ " null" // attribute,
463448 " bb" // value,
464449 " cc" // units
465- );
450+ );
466451 }
467452 }
468453 }
469- catch (...){
470- rodsLog (LOG_NOTICE," DWM: **- pep_api_data_obj_unlink_post **- ERROR" );
471- }
472- rodsLog (LOG_NOTICE," DWM: --- %s ---" ,_rn.c_str ());
454+ catch (const std::exception &e){ const char * message = e.what ();
455+ rodsLog (LOG_NOTICE," Exception during pep_api_data_obj_unlink_post: %s" ,message); }
473456 }
474457 else if (" pep_api_data_obj_unlink_post" == _rn) {
475458 auto it = _args.begin ();
0 commit comments