Deleting a map over the admin page does not delete the underlying files

Bug #1751244 reported by kaputtnik on 2018-02-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Widelands Website
Medium
kaputtnik

Bug Description

While working on an other branch i found some bad things:

1. Deleting a map does not removes the underlying files(minimap and mapfile). This is not really problematic since uploading a new file with the same mapname works. But after trying to solve this i found:

2. The column minimap stores a faulty path to the minimap. The problem is here that the path begins with a slash: Trying to use os.path.join fails here because paths beginning with a slash are treated as absolute path and concatenating a base path with the image path fails. It fails because the base path will be omitted when the image path is treated as absolute path (begins with a slash).

Tags: map Edit Tag help
kaputtnik (franku) on 2018-02-23
summary: - Deleting a map over the admin page does not delete the underlying file
+ Deleting a map over the admin page does not delete the underlying files
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers