--
--
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 on the web visit https://groups.google.com/d/msgid/irod-chat/516e7375-5a6a-4238-85e5-330ad1eddb51n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/irod-chat/2b185ef9-fb63-4bed-a64e-f6793cc4d500n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "iRODS-Chat" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/irod-chat/fOUemtxFjCE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to irod-chat+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/irod-chat/CAA-7h7n-oV7RSB30eHmyeo1MBx%3D55jpCvCGF1BgvjbJbeh%3DihA%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/irod-chat/CADU-iVjKwRO49HD3BH%2Bh7_Do9zo8CiNK_UUZVqo-P72EXsXibA%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/irod-chat/4f10e08c-0f12-4951-9d44-942af38bf683n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/irod-chat/CAA-7h7nj3qojCd%3Drdob9wy%3DsovJw%3DoxETJsXHocTQZ_4a0xyFQ%40mail.gmail.com.
@Kory, this fix will certainly resolve a large part of my issue. And I see that the fix has already been made on GitHub—well done! Is there any chance it will be included in a 5.0.X release?
Regardless of this univMSS issue (I'm asking one last time, sorry for being so insistent): is there a way to choose the name of the file written to the resource (for example in unixfilesystem mode), perhaps at the beginning of the put operation with a pre PEP or when creating the entry to the database?
To view this discussion visit https://groups.google.com/d/msgid/irod-chat/bb6add8e-5947-4b74-b32d-e8a95469b258n%40googlegroups.com.
I'm pretty sure what you're asking for can be done via a custom C++ plugin. That is because plugins have direct access to the API inputs. Of course, that would require someone to write C++.If we were to offer a way to adjust the filename at the physical level, we'd likely do that through a resource plugin because it allows us to keep the logic in one place.
The recent fix for the univmss resource plugin coupled with msiSetRandomScheme() could be enough to satisfy your needs. That unfortunately means waiting until 5.1.0 is released.
acSetVaultPathPolicy is the hook which controls the path scheme. We should be able to implement a new microservice which instructs iRODS to call a rule/function which you control/implement. That would give you the ability to modify the path or filename. If that sounds useful, we can look into getting that in for the release.
Questions for you:
- What organization are you with?
- You mentioned encoding the filename using base64. Does that mean reversing the encoding is desired?
- Do you need to modify the full path or just the filename?
- Do you need full control over the physical path? Can the problem be solved without full control over the path?
- Is there a fixed set of options which can achieve what you want?
- e.g. Appending the data id, replacing a set of characters with one character, using UUIDs
- Are there other features you feel would be helpful in resolving this?
Overall, I don't think we can achieve the solution you want without releasing a new version of iRODS. And outside of the solution from Bruno, I think your only option (until 5.1.0) is to reject paths which contain problematic characters.