Server cannot handle insertion of file with path "/generated/"
Created by: Quazgar
Currently, if a file with this kind of file was inserted, the server does not answer to Filesystem requests properly any more:
Code to reproduce:
import caosdb as db
file = db.File(path="/generated/", file=filename)
file.insert()
Then request https://localhost:10443/FileSystem/
, and the server responds with:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://localhost:10443/webinterface/webcaosdb.xsl" ?>
<Response srid="6469e6986373d497ffa03e4428d5aa6e" timestamp="1570710371730" baseuri="https://localhost:10443">
<UserInfo>
<Roles>
<Role>anonymous</Role>
</Roles>
</UserInfo>
<Error code="500" description="An unexpected server error has occurred.">SRID = 6469e6986373d497ffa03e4428d5aa6e
Please report this server error to and include the SRID into your report.</Error>
</Response>
Note that downloading https://localhost:10443/FileSystem/generated/
works, but https://localhost:10443/FileSystem/generated
also produces an error. On the caosroot file system, the saved file is named just generated
, without the trailing slash.
Imported comments:
By Quazgar on 2019-10-10T12:37:00.049Z
changed the description
By Quazgar on 2019-10-10T12:35:46.647Z
changed the description