Skip to content

Attachments with same name are not retrievable via pyral #198

@jamespet77

Description

@jamespet77

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.

Screenshot_20240807_081002
Screenshot_20240807_081049

Screenshot_20240807_080744
Screenshot_20240807_081856

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions