You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Thank you for looking into this issue!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: