-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attachments with same name are not retrievable via pyral #198
Comments
I have tested and working with OID.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you have multiple attachments with the same name the getAttachments function fails to retrieve them.
I added a try/except around the code in pyral to allow for the app not to crash, but the images are still not able to be returned. For example I have two image.png attached to a task. When calling getAttachments the app will crash. Adding the try/except allowed one of them to be returned, but an exception was called on the other. I have included screenshots and the code that I updated with the try/except. This is clearly related to the names being the same since in getAttachment it uses the filename as a variable. This seems to be the root cause of the issue. I might suggest having getAttachments iterate via OID or some other mandatory distinct value.
The text was updated successfully, but these errors were encountered: