caosdb-server issueshttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues2024-03-04T08:35:37Zhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/300LinkAhead renaming: Allow but deprecate old CAOSDB_CONFIG_ environment variab...2024-03-04T08:35:37ZDaniel HornungLinkAhead renaming: Allow but deprecate old CAOSDB_CONFIG_ environment variables.From `README_SETUP.md`:
> All configuration environment variables should be change from `CAOSDB_CONFIG_...` to
`LINKAHEAD_CONFIG_...`. The old environment variables will remain deprecated but valid for some
time, but mixing old and new...From `README_SETUP.md`:
> All configuration environment variables should be change from `CAOSDB_CONFIG_...` to
`LINKAHEAD_CONFIG_...`. The old environment variables will remain deprecated but valid for some
time, but mixing old and new variables is forbidden: If you rename one, you have to rename all.
- [ ] Deprecation and consistency check (either CAOSDB or LINKAHEAD, not both) is implemented.
- [ ] Followup issues created if necessaryLinkAhead RelaunchHenrik tom WördenHenrik tom Wördenhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/331Extern: Querying for entities with property fails if using ID2024-03-18T00:05:06ZDaniel HornungExtern: Querying for entities with property fails if using ID---
extern: https://gitlab.com/linkahead/linkahead-server/-/issues/248
---
https://gitlab.com/linkahead/linkahead-server/-/issues/248
Possible duplicate of https://gitlab.com/linkahead/linkahead-server/-/issues/247
- [ ] Reproduced
- ...---
extern: https://gitlab.com/linkahead/linkahead-server/-/issues/248
---
https://gitlab.com/linkahead/linkahead-server/-/issues/248
Possible duplicate of https://gitlab.com/linkahead/linkahead-server/-/issues/247
- [ ] Reproduced
- [ ] Fixed or documented (if intentional behavior)
- [ ] Followup issues created if necessaryBatCAT WP4 - Knowledge IntegrationTimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/295Extern: Server accepts any string for DATETIME properties.2024-03-18T00:05:06ZDaniel HornungExtern: Server accepts any string for DATETIME properties.https://gitlab.com/caosdb/caosdb-server/-/issues/205
The server does not properly check if datetime properties follow some format.https://gitlab.com/caosdb/caosdb-server/-/issues/205
The server does not properly check if datetime properties follow some format.BatCAT WP4 - Knowledge IntegrationTimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/269Extern: Max length of paths currently at 2552023-01-09T17:03:43ZDaniel HornungExtern: Max length of paths currently at 255Fix external issue
https://gitlab.com/caosdb/caosdb-server/issues/50
- [ ] Ist gefixtFix external issue
https://gitlab.com/caosdb/caosdb-server/issues/50
- [ ] Ist gefixtRefactoring of File Storage APITimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/237Review file-storage refactoring2024-03-18T00:05:06ZFlorian SpreckelsenReview file-storage refactoringRefactoring of File Storage APITimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/222Update of file when not setting "size" leads to an unknown server error2022-03-11T08:46:55ZAlexander SchlemmerUpdate of file when not setting "size" leads to an unknown server errorThe following reproducibly leads to an unknown server error:
The entity with id=174 is a File.
rt can be an arbitrary RecordType.
```python
f = db.File(id=174).retrieve()
f._size = None
f.add_parent(rt)
f.update()
```
The error does n...The following reproducibly leads to an unknown server error:
The entity with id=174 is a File.
rt can be an arbitrary RecordType.
```python
f = db.File(id=174).retrieve()
f._size = None
f.add_parent(rt)
f.update()
```
The error does not occur when setting _checksum to None.Refactoring of File Storage APITimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/215FileStorage: Implement Import2022-10-17T10:02:51ZTimm Fitschent.fitschen@indiscale.comFileStorage: Implement Import* Implement new subclass of `LocalFileSystem` for a read-only by the server but writable by others file system.
* Implement import function which creates a new `File` entity for a file which already exists on the back-end
* implementatio...* Implement new subclass of `LocalFileSystem` for a read-only by the server but writable by others file system.
* Implement import function which creates a new `File` entity for a file which already exists on the back-end
* implementation in pylibRefactoring of File Storage APITimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/194DOC: Insert file in dir2022-11-28T10:01:34ZAlexander SchlemmerDOC: Insert file in dirIs there a function analogous to https://docs.indiscale.com/caosdb-server/_apidoc/org/caosdb/server/jobs/core/InsertFilesInDir.html?highlight=insert%20files%20dir#org.caosdb.server.jobs.core.InsertFilesInDir.job(String)
that would allow ...Is there a function analogous to https://docs.indiscale.com/caosdb-server/_apidoc/org/caosdb/server/jobs/core/InsertFilesInDir.html?highlight=insert%20files%20dir#org.caosdb.server.jobs.core.InsertFilesInDir.job(String)
that would allow inserting a single file as a symlink into the CaosDB file system?
Something like this would be needed for the new crawler design.
Could there be a workaround with a manual insertion of a symlink into the CaosDB file system using the python interface? How would that look like?Refactoring of File Storage APITimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/127Documentation for file upload API is outdated2022-02-07T09:53:17ZAlexander SchlemmerDocumentation for file upload API is outdatedSome information on the following doc page is outdated:
https://docs.indiscale.com/caosdb-server/specification/Fileserver.html
- "destination" has been renamed to "path"
- "FileRepresentation" must be the first entry in the form data (t...Some information on the following doc page is outdated:
https://docs.indiscale.com/caosdb-server/specification/Fileserver.html
- "destination" has been renamed to "path"
- "FileRepresentation" must be the first entry in the form data (this is not mentioned in the docs)
- currently the $temporary_identifier must not contain slashes... see: #126Refactoring of File Storage APITimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/126Server does not accept file upload identifiers containing slashes2022-02-07T09:53:10ZAlexander SchlemmerServer does not accept file upload identifiers containing slashesUploading the following file form data currently does not work:
```
-----------------------------118239662738460814643246749165
Content-Disposition: form-data; name="FileRepresentation"
<Request><File upload="tf/test.txt" name="test.txt...Uploading the following file form data currently does not work:
```
-----------------------------118239662738460814643246749165
Content-Disposition: form-data; name="FileRepresentation"
<Request><File upload="tf/test.txt" name="test.txt" path="/DataAnalysis/tf/test.txt"></File></Request>
-----------------------------118239662738460814643246749165
Content-Disposition: form-data; name="tf/test.txt"; filename="tf/test.txt"
Content-Type: application/octet-stream
hi
-----------------------------118239662738460814643246749165--
```
However, it does work, using a version without slashes:
```
-----------------------------395145887815014542773023851246
Content-Disposition: form-data; name="FileRepresentation"
<Request><File upload="file1" name="test.txt" path="/DataAnalysis/tf/test.txt"></File></Request>
-----------------------------395145887815014542773023851246
Content-Disposition: form-data; name="file1"; filename="file1"
Content-Type: application/octet-stream
hi
-----------------------------395145887815014542773023851246--
```
Apparently the changed identifier from "tf/test.txt" to "file1" did solve the issue.Refactoring of File Storage APITimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/26UniqueNamesError when updating files2022-06-07T12:05:22ZHenrik tom WördenUniqueNamesError when updating files*Created by: Quazgar*
Somehow files in our CaosDB where inserted with names (e.g. name="analysis.py"). In contrast to the usual situation many files have the same name. If one now tries to update one of these (e.g. to add a parent="Sour...*Created by: Quazgar*
Somehow files in our CaosDB where inserted with names (e.g. name="analysis.py"). In contrast to the usual situation many files have the same name. If one now tries to update one of these (e.g. to add a parent="Source"), the following error is thrown:
```
Traceback (most recent call last):
File "./crawl.py", line 65, in <module>
c.crawl(files)
File "/home/professional/.local/lib/python3.7/site-packages/caosadvancedtools/crawler.py", line 49, in crawl
cfood.treat_match(crawled_file, match)
File "/home/professional/.local/lib/python3.7/site-packages/caosadvancedtools/cfood.py", line 113, in treat_match
self.update_identifiables(entities, crawled_file, match)
File "/home/professional/CaosDB/caosdb-bmp/converter_scripts/specification_crawler/rheo_ana_cfood.py", line 132, in update_identifiables
fi.update()
File "/home/professional/.local/lib/python3.7/site-packages/caosdb/common/models.py", line 879, in update
flags=flags)[0]
File "/home/professional/.local/lib/python3.7/site-packages/caosdb/common/models.py", line 2520, in update
raise_errors(cresp)
File "/home/professional/.local/lib/python3.7/site-packages/caosdb/common/models.py", line 3301, in raise_errors
raise t
File "/home/professional/.local/lib/python3.7/site-packages/caosdb/common/models.py", line 3275, in raise_errors
raise_errors(e)
File "/home/professional/.local/lib/python3.7/site-packages/caosdb/common/models.py", line 3257, in raise_errors
raise r
File "/home/professional/.local/lib/python3.7/site-packages/caosdb/common/models.py", line 3239, in raise_errors
raise UniqueNamesError(error=e, entity=arg0)
caosdb.exceptions.UniqueNamesError: FILE (362608,'cluster_ad_hoc_model.py') CAUSED UniqueNamesError: Name is already in use. Choose a different name or reuse an existing entity.
```
**Imported comments:**
*By Timm Fitschen on 2020-10-28T13:36:41.614Z*
problem is in InsertFilesInDir.java
```java
final String targetPath = root + sub.getName();
final Entity newFileEntity = new Entity(sub.getName(), Role.File);
final long size = sub.length();
```
*By Alexander Schlemmer on 2020-10-28T13:36:27.649Z*
A procedure in the server automatically assigns names to files. This should be changed.
*By Timm Fitschen on 2019-09-03T06:28:19.746Z*
changed due date to October 02, 2019
*By Timm Fitschen on 2019-08-29T13:28:12.716Z*
changed due date to September 04, 2019
*By Timm Fitschen on 2019-08-29T13:27:58.292Z*
assigned to @timm.fitschen and unassigned @henrik_indiscale
*By Quazgar on 2019-08-13T09:44:29.167Z*
assigned to @henrik_indiscale and unassigned @quazgarRefactoring of File Storage APIhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/36Extern: Cannot update entity permissions if file is missing.2024-02-05T11:41:53ZHenrik tom WördenExtern: Cannot update entity permissions if file is missing.---
extern: https://gitlab.com/caosdb/caosdb-server/-/issues/36
...
*Created by: Timm Fitschen*
On demo server, when I
```python
import caosdb
f = caosdb.execute_query("FIND FILE ...")[0]
f.update_acl()
```
this happened:
```
caos...---
extern: https://gitlab.com/caosdb/caosdb-server/-/issues/36
...
*Created by: Timm Fitschen*
On demo server, when I
```python
import caosdb
f = caosdb.execute_query("FIND FILE ...")[0]
f.update_acl()
```
this happened:
```
caosdb-server_1 | REQUEST: PUT https://localhost:10443/Entity?uniquename=true HTTPS/1.1
caosdb-server_1 | REQUEST HEADERS: [Cookie: SessionToken=["PAM","admin",1569232708088,600000,"0f81e347-0acd-4a3d-8ed2-170a50da110d","4ad3ff5af267181b9df1d07f89a9cb2c556bbf16e5b1164a8d9a9d7b2ced5c230453f6a0657e6b2ad78e6824f0ebfb92aa1c3b26ce891ae04ad2d4538b80bb13"];][Host: localhost:10443][Accept-Encoding: identity][Content-Length: 3208]
caosdb-server_1 | REQUEST ENTITY: <Update>
caosdb-server_1 | <File id="126" cuid="126--1ae8640c-45a6-42ad-9a09-81e88210b3dd" name="Report G / 2019-023" path="/reports/report_g_2019-023.pdf" size="38130">
caosdb-server_1 | <EntityACL>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:PROPERTY:ADD"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="RETRIEVE:ACL"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="USE:AS_DATA_TYPE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="RETRIEVE:OWNER"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="RETRIEVE:ENTITY"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:QUERY_TEMPLATE_DEFINITION"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:PROPERTY:REMOVE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:NAME"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="RETRIEVE:FILE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="DELETE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:ROLE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="RETRIEVE:HISTORY"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:FILE:REMOVE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:FILE:MOVE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:DATA_TYPE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:DESCRIPTION"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:VALUE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="USE:AS_PARENT"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="EDIT:ACL"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:PARENT:REMOVE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:FILE:ADD"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="USE:AS_REFERENCE"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="USE:AS_PROPERTY"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Grant priority="False" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:PARENT:ADD"/>
caosdb-server_1 | </Grant>
caosdb-server_1 | <Deny priority="True" username="admin" realm="PAM">
caosdb-server_1 | <Permission name="UPDATE:*"/>
caosdb-server_1 | </Deny>
caosdb-server_1 | </EntityACL>
caosdb-server_1 | </File>
caosdb-server_1 | </Update>
caosdb-server_1 |
caosdb-server_1 | RESPONSE: HTTPS/1.1 - Internal Server Error (500) - The server encountered an unexpected condition which prevented it from fulfilling the request
caosdb-server_1 | RESPONSE ENTITY:<?xml version="1.0" encoding="UTF-8"?>
caosdb-server_1 | <?xml-stylesheet type="text/xsl" href="https://localhost:10443/webinterface/webcaosdb.xsl" ?>
caosdb-server_1 | <Response username="admin" realm="PAM" srid="840d31a4aeaa90a5bb092134aba55e51" timestamp="1569232708107" baseuri="https://localhost:10443">
caosdb-server_1 | <UserInfo username="admin" realm="PAM">
caosdb-server_1 | <Roles>
caosdb-server_1 | <Role>administration</Role>
caosdb-server_1 | </Roles>
caosdb-server_1 | </UserInfo>
caosdb-server_1 | <Error code="500" description="An unexpected server error has occurred.">SRID = 840d31a4aeaa90a5bb092134aba55e51
caosdb-server_1 |
caosdb-server_1 | Please report this server error to and include the SRID into your report.</Error>
caosdb-server_1 | </Response>
caosdb-server_1 |
caosdb-server_1 | caosdb.server.CaosDBException: File not in file system. File system is not consistent with the data base!!! reports/report_g_2019-023.pdf
caosdb-server_1 | at caosdb.server.entity.FileProperties.retrieveFromFileSystem(FileProperties.java:253) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
```
**Imported comments:**
*By Timm Fitschen on 2019-09-23T10:05:09.395Z*
changed due date to October 02, 2019Refactoring of File Storage APITimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/38NullPointerException when accessing db.Info() due to missing read permissions...2022-07-08T11:21:07ZHenrik tom WördenNullPointerException when accessing db.Info() due to missing read permissions in DropOffBox*Created by: Henrik tom Wörden*
The following error
```
2019-09-30 10:24:34 10.218.100.146 - 10.3.128.3 10443 GET /Info - 401 - 0 1 https://dumiatis01 - -
2019-09-30 10:24:34 10.218.100.146 - 10.3.128.3 10443 POST /login - 200 - 41 35 h...*Created by: Henrik tom Wörden*
The following error
```
2019-09-30 10:24:34 10.218.100.146 - 10.3.128.3 10443 GET /Info - 401 - 0 1 https://dumiatis01 - -
2019-09-30 10:24:34 10.218.100.146 - 10.3.128.3 10443 POST /login - 200 - 41 35 https://dumiatis01 - -
UNKNOWN ERROR
java.lang.NullPointerException
at caosdb.server.utils.Info.getFlatList(Info.java:101)
at caosdb.server.utils.Info.toElement(Info.java:181)
at caosdb.server.utils.Info.toElement(Info.java:158)
at caosdb.server.resource.InfoResource.httpGetInChildClass(InfoResource.java:41)
at caosdb.server.resource.AbstractCaosDBServerResource.httpGet(AbstractCaosDBServerResource.java:250)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:511)
at org.restlet.resource.ServerResource.get(ServerResource.java:723)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:603)
at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:662)
at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:348)
at org.restlet.resource.ServerResource.handle(ServerResource.java:1020)
at org.restlet.resource.Finder.handle(Finder.java:236)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.routing.Router.doHandle(Router.java:422)
at org.restlet.routing.Router.handle(Router.java:641)
at caosdb.server.CaosDBServer$2.handle(CaosDBServer.java:524)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.routing.Router.doHandle(Router.java:422)
at org.restlet.routing.Router.handle(Router.java:641)
at caosdb.server.CaosDBServer$3.handle(CaosDBServer.java:542)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:140)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:202)
at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:77)
at org.restlet.Application.handle(Application.java:385)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.routing.Router.doHandle(Router.java:422)
at org.restlet.routing.Router.handle(Router.java:641)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.routing.Router.doHandle(Router.java:422)
at org.restlet.routing.Router.handle(Router.java:641)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:140)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.routing.Filter.doHandle(Filter.java:150)
at org.restlet.routing.Filter.handle(Filter.java:197)
at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:202)
at org.restlet.Component.handle(Component.java:408)
at caosdb.server.CaosDBComponent.handle(CaosDBServer.java:880)
at org.restlet.Server.handle(Server.java:507)
at org.restlet.engine.connector.ServerHelper.handle(ServerHelper.java:63)
at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:143)
at org.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettyServerHelper.java:256)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:748)
2019-09-30 10:24:34 10.218.100.146 - 10.3.128.3 10443 GET /Info - 500 - 0 12 https://dumiatis01 - -
10:24:34.408 [qtp1232373427-213] ERROR REQUEST_ERRORS_LOGGER - SRID: bfb5eb86b5bc7d4690815c9b12b22ffc
REQUEST: GET https://dumiatis01/Info HTTPS/1.1
REQUEST HEADERS: [Cookie: SessionToken=["PAM","henrik",1569839074364,43200000,"1bba9185-022d-4fa5-96b3-1ea8471d398c","20f664369157f2111cd932add088625de52a9fa8228d7878b07d3a2779118861da59f79693aa17481b390d1144c2dafccbccfb8e8e6670e5aa90cf5636618f40"];][Host: dumiatis01][Accept-Encoding: identity]
RESPONSE: HTTPS/1.1 - Internal Server Error (500) - The server encountered an unexpected condition which prevented it from fulfilling the request
RESPONSE ENTITY:<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://dumiatis01/webinterface/webcaosdb.xsl" ?>
<Response username="henrik" realm="PAM" srid="bfb5eb86b5bc7d4690815c9b12b22ffc" timestamp="1569839074395" baseuri="https://dumiatis01">
<UserInfo username="henrik" realm="PAM">
<Roles>
<Role>administration</Role>
</Roles>
</UserInfo>
<Error code="500" description="An unexpected server error has occurred.">SRID = bfb5eb86b5bc7d4690815c9b12b22ffc
Please report this server error to and include the SRID into your report.</Error>
</Response>
java.lang.NullPointerException: null
at caosdb.server.utils.Info.getFlatList(Info.java:101) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at caosdb.server.utils.Info.toElement(Info.java:181) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at caosdb.server.utils.Info.toElement(Info.java:158) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at caosdb.server.resource.InfoResource.httpGetInChildClass(InfoResource.java:41) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at caosdb.server.resource.AbstractCaosDBServerResource.httpGet(AbstractCaosDBServerResource.java:250) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:511) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.resource.ServerResource.get(ServerResource.java:723) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:603) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:662) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:348) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.resource.ServerResource.handle(ServerResource.java:1020) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.resource.Finder.handle(Finder.java:236) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Router.doHandle(Router.java:422) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Router.handle(Router.java:641) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at caosdb.server.CaosDBServer$2.handle(CaosDBServer.java:524) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Router.doHandle(Router.java:422) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Router.handle(Router.java:641) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at caosdb.server.CaosDBServer$3.handle(CaosDBServer.java:542) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:140) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:202) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:77) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.Application.handle(Application.java:385) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Router.doHandle(Router.java:422) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Router.handle(Router.java:641) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Router.doHandle(Router.java:422) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Router.handle(Router.java:641) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:140) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:202) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.Component.handle(Component.java:408) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at caosdb.server.CaosDBComponent.handle(CaosDBServer.java:880) [caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.Server.handle(Server.java:507) [caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.engine.connector.ServerHelper.handle(ServerHelper.java:63) [caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:143) [caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettyServerHelper.java:256) [caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) [caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) [caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) [caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) [caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) [caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
```
occured when db.Info() was called in a python client. The problem was resolved after adding missing read permissions to the DropOffBox Folder.
**Imported comments:**
*By Alexander Schlemmer on 2020-06-12T15:11:21.060Z*
Server-version: acc6fbde
*By Alexander Schlemmer on 2020-06-12T15:11:01.273Z*
We think it might be related to inconsistencies in the file system, e.g. broken symlinks, but couldn't reproduce it with a clean container (unfortunately).
*By Alexander Schlemmer on 2020-06-12T15:08:05.931Z*
We are currently having problems with a similar issue: `db.Info()` leads to an unknown server error, but the dropoffbox exists and seems to have the correct permissions.
However, the exception on the server looks different:
```
linkahead | RESPONSE: HTTPS/1.1 - Internal Server Error (500) - The server encountered an unexpected condition which prevented it from fulfilling the request
linkahead | RESPONSE ENTITY:<?xml version="1.0" encoding="UTF-8"?>
linkahead | <?xml-stylesheet type="text/xsl" href="(...)" ?>
linkahead | <Response username="(...)" realm="PAM" srid="(...)" timestamp="(...)" baseuri="(...)">
linkahead | <UserInfo username="admin" realm="PAM">
linkahead | <Roles>
linkahead | <Role>administration</Role>
linkahead | </Roles>
linkahead | </UserInfo>
linkahead | <Error code="500" description="An unexpected server error has occurred.">SRID = 2429317594ce4a6bb989c4fd29963176
linkahead |
linkahead | Please report this server error to and include the SRID into your report.</Error>
linkahead | </Response>
linkahead |
linkahead | java.lang.NullPointerException: null
linkahead | at caosdb.server.database.misc.TransactionBenchmark.called_from(TransactionBenchmark.java:431) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at caosdb.server.database.misc.JdomConverter.convert(TransactionBenchmark.java:239) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at caosdb.server.database.misc.JdomConverter.convert(TransactionBenchmark.java:256) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at caosdb.server.database.misc.TransactionBenchmark.toElement(TransactionBenchmark.java:366) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at caosdb.server.resource.InfoResource.httpGetInChildClass(InfoResource.java:51) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at caosdb.server.resource.AbstractCaosDBServerResource.httpGet(AbstractCaosDBServerResource.java:258) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[?:?]
linkahead | at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
linkahead | at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
linkahead | at org.restlet.resource.ServerResource.doHandle(ServerResource.java:511) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at org.restlet.resource.ServerResource.get(ServerResource.java:723) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at org.restlet.resource.ServerResource.doHandle(ServerResource.java:603) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:662) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:348) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at org.restlet.resource.ServerResource.handle(ServerResource.java:1020) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at org.restlet.resource.Finder.handle(Finder.java:236) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at org.restlet.routing.Filter.doHandle(Filter.java:150) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at org.restlet.routing.Filter.handle(Filter.java:197) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at org.restlet.routing.Router.doHandle(Router.java:422) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at org.restlet.routing.Router.handle(Router.java:641) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
linkahead | at caosdb.server.CaosDBServer$2.handle(CaosDBServer.java:530) ~[caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar:?]
(...)
```
(Some information left out intentionally with "(...)".)
Is this a new bug?Refactoring of File Storage APITimm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/50Max length of paths currently at 2552022-06-07T12:00:39ZHenrik tom WördenMax length of paths currently at 255*Created by: Alexander Schlemmer*
Please increase the max length for path to > 2000.
```
alter table files modify path varchar(21844) not null;
```
Can be tested with:
```python
fi=db.File(file="./aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...*Created by: Alexander Schlemmer*
Please increase the max length for path to > 2000.
```
alter table files modify path varchar(21844) not null;
```
Can be tested with:
```python
fi=db.File(file="./aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
...: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
...: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
...: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", path="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
...: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
...: a/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
...: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
fi.insert()
**Imported comments:**
*By Henrik tom Wörden on 2021-01-05T10:19:47.926Z*
changed the description
*By Alexander Schlemmer on 2019-10-22T12:02:41.727Z*
changed due date to October 29, 2019Refactoring of File Storage APIhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/58BUG: no reasonable error when caosroot does not exist2022-06-07T12:05:55ZHenrik tom WördenBUG: no reasonable error when caosroot does not exist*Created by: Henrik tom Wörden*
I stumbled over a problem where caosroot points to a mount that was not accessible (maybe in general simply a path that does not exist?) and started the server. There was a time out after some time with a...*Created by: Henrik tom Wörden*
I stumbled over a problem where caosroot points to a mount that was not accessible (maybe in general simply a path that does not exist?) and started the server. There was a time out after some time with an HTTP related error message but no meaningful error.
**Imported comments:**
*By Quazgar on 2020-05-27T14:10:00.196Z*
changed the description
*By Quazgar on 2020-01-08T16:02:50.253Z*
Should probably go to caosdb-deploy
*By Quazgar on 2019-12-18T14:20:47.605Z*
changed milestone to %"Health checks"Refactoring of File Storage APIDaniel HornungDaniel Hornunghttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/103CaosDB accepts empty File XML in PUT request2022-06-07T12:02:00ZHenrik tom WördenCaosDB accepts empty File XML in PUT request*Created by: Alexander Schlemmer*
This issue is related to bug 103 in caosdb-webui:
https://gitlab.com/caosdb/caosdb-webui/-/issues/103
Sending a PUT request for an existing file with ID 130 to the CaosDB server
```xml
<Request><File i...*Created by: Alexander Schlemmer*
This issue is related to bug 103 in caosdb-webui:
https://gitlab.com/caosdb/caosdb-webui/-/issues/103
Sending a PUT request for an existing file with ID 130 to the CaosDB server
```xml
<Request><File id="130"/></Request>
```
leads to a defect File Entity where path, checksum and size are removed.
Such a broken request for a file entity must not be accepted.
**Imported comments:**
*By Alexander Schlemmer on 2020-10-28T19:35:19.647Z*
mentioned in issue caosdb-webui#121
*By Alexander Schlemmer on 2020-10-28T16:13:29.984Z*
mentioned in issue caosdb-webui#103Refactoring of File Storage APIhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/107Allow to download files of size 02022-06-07T12:05:28ZHenrik tom WördenAllow to download files of size 0*Created by: Henrik tom Wörden*
In the webinterface, clicking on a link to a file with size=0, which would normally start the download, simply has no effect.
In python the following happens:
```
In [3]: db.File(id=6636).download()
----...*Created by: Henrik tom Wörden*
In the webinterface, clicking on a link to a file with size=0, which would normally start the download, simply has no effect.
In python the following happens:
```
In [3]: db.File(id=6636).download()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-baf54aec0251> in <module>
----> 1 db.File(id=6636).download()
~/CaosDB/caosdb-pylib/src/caosdb/common/models.py in download(self, target)
1622 else:
1623 file_ = NamedTemporaryFile(mode='wb', delete=False)
-> 1624 checksum = File.download_from_path(file_, self.path)
1625
1626 if self._checksum is not None and self._checksum.lower() != checksum.hexdigest().lower():
~/CaosDB/caosdb-pylib/src/caosdb/common/models.py in download_from_path(target_file, path)
1633 def download_from_path(target_file, path):
1634
-> 1635 _log_request("GET (download): " + path)
1636 response = get_connection().download_file(path)
1637
TypeError: can only concatenate str (not "NoneType") to str
```
Eventhough, it is pretty useless to download a file with 0B. This case should be treated properly. I think it should not behave differently than other downloads, i.e. a file with the correct name of size=0 should be created.Refactoring of File Storage APIhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/336Extern: Value in string queries may not start with large number of digits2024-02-20T13:47:45ZDaniel HornungExtern: Value in string queries may not start with large number of digits---
extern: https://gitlab.com/linkahead/linkahead-server/-/issues/253
---
```
db.execute_query("FIND Record WITH some_prop = '0123456789012345678901234567890123456789world'")
```
This is interpreted as a large number somehow and fed t...---
extern: https://gitlab.com/linkahead/linkahead-server/-/issues/253
---
```
db.execute_query("FIND Record WITH some_prop = '0123456789012345678901234567890123456789world'")
```
This is interpreted as a large number somehow and fed to SQL, which chokes.
- [ ] Fixed this bug
- [ ] Followup issues created if necessaryDaniel HornungDaniel Hornunghttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/335Investigate: Job Failed #2644852024-03-18T00:05:06ZHenrik tom WördenInvestigate: Job Failed #264485Job [#264485](https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/jobs/264485) failed for b7cdc7f5a82b10bc6cf77e1c2e46592d90124563:
Job is flaky. What can be done?Job [#264485](https://gitlab.indiscale.com/caosdb/src/caosdb-server/-/jobs/264485) failed for b7cdc7f5a82b10bc6cf77e1c2e46592d90124563:
Job is flaky. What can be done?Timm Fitschent.fitschen@indiscale.comTimm Fitschent.fitschen@indiscale.comhttps://gitlab.indiscale.com/caosdb/src/caosdb-server/-/issues/330Extern: Unexpected Server Error when updating an Entity with a FILE Property2024-03-04T08:35:34ZHenrik tom WördenExtern: Unexpected Server Error when updating an Entity with a FILE Propertyhttps://gitlab.com/linkahead/linkahead-server/-/issues/246https://gitlab.com/linkahead/linkahead-server/-/issues/246Henrik tom WördenHenrik tom Wörden