bihealth / sodar-server

SODAR: System for Omics Data Access and Retrieval
https://github.com/bihealth/sodar-server
MIT License
14 stars 3 forks source link

Hardcoded path length in landing_zone_move flow #1888

Closed mikkonie closed 5 months ago

mikkonie commented 5 months ago

While working on #1882 and #1883 I noticed that we use a hardcoded value to split iRODS collections to subpaths in the landing_zone_move flow: '/'.join(p.split('/')[10:])

This works if SODAR data is placed directly under /yourZone/, but if IRODS_ROOT_PATH is set it will fail horribly. This is a simple case of a sloppy developer (that's me).

mikkonie commented 5 months ago

Fixed.