Skip to content

[Bug] backupCase uses hardcoded path instead of Config.DATA_STORAGE #241

@lil-aditya

Description

@lil-aditya

Summary

The backupCase endpoint in UploadRoute.py uses a hardcoded filesystem path:

Path('WebAPP', 'DataStorage', case)

### Expected behavior


The `backupCase` endpoint should:

1. Use the configured storage directory defined by `Config.DATA_STORAGE`.
2. Work correctly regardless of where the data storage directory is located.
3. Create ZIP archives with relative paths so they can be extracted cleanly on other systems.

### Reproduction steps

1. Configure `DATA_STORAGE` in `Config.py` to a custom directory (e.g. `/mnt/storage`).
2. Start the server.
3. Call the backup endpoint:


### Environment

OS: Windows 11  
Python: 3.x  
Project branch: main  
Server: Flask development server

### Logs or screenshots

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions