Condo is an Open Source property management SaaS that allows users to manage tickets, resident contacts, properties, payment tracking, create invoices, and oversee a service marketplace, all while offering an extension system for mini-apps, making it an ideal platform for property management companies and those servicing shared properties.
MIT License
111
stars
28
forks
source link
Duplicate Document Names Overwrite Each Other on Property Documents Tab #5446
Bug: Duplicate Document Names Overwrite Each Other on Property Documents Tab
Description:
When adding documents on the "Property" tab (<baseUrl>/property/<propertyId>), files with identical names overwrite each other, leading to unexpected behavior and 500 error.
Reproduction Cases:
Adding two documents with the same name:
Steps:
Upload a document with a specific name (e.g., "document.pdf").
Upload another document with the same name.
Delete the second document.
Result: When attempting to download the first document, the user is redirected to <baseUrl>/api/files/document/<documentName>, which returns a 500 error.
Adding documents with the same name in different properties:
Steps:
Upload a document with a specific name (e.g., "document.pdf") to one property.
Upload a different document with the same name to another property.
Result: The file is overwritten, causing one document to replace the other, despite them being associated with different properties.
Issue: If the document is deleted in one property, it still appears in the other, but navigating to it leads to a 500 error.
Proposed Solution:
To prevent overwriting, append the property address to the document's file name upon upload, ensuring unique identifiers for each file.
Bug: Duplicate Document Names Overwrite Each Other on Property Documents Tab
Description:
When adding documents on the "Property" tab (
<baseUrl>/property/<propertyId>
), files with identical names overwrite each other, leading to unexpected behavior and 500 error.Reproduction Cases:
Adding two documents with the same name:
<baseUrl>/api/files/document/<documentName>
, which returns a 500 error.Adding documents with the same name in different properties:
Proposed Solution:
To prevent overwriting, append the property address to the document's file name upon upload, ensuring unique identifiers for each file.
Thank you for looking into this issue!