Filenames ending with .package.lst are causing problems #61
```
$ rpm -qa > /tmp/foo-server.package.lst
$ curl -F'file=@/tmp/foo-server.package.lst' https://0x0.st
https://0x0.st/o9YF.package.
```
```
$ curl "https://0x0.st/o9YF.package."
<!doctype html>
<html lang=en>
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
```
```
$ curl "https://0x0.st/o9YF.package"
Process 83 stopped
* thread #1: tid = 83, 0x00007f1a62c8ae00, name = 'fhost'
frame #0:
Process 83 stopped
* thread #8: tid = 83, 0x00007f1a62c8aad0 fhost`get(path='/o9YF.package') + 27 at fhost.c:139, name = 'fhost/responder', stop reason = invalid address (fault address: 0x30)
frame #0: {3:#018x} fhost`get(path='/o9YF.package') + 27 at fhost.c:139
136 get(SrvContext *ctx, const char *path)
137 {
138 StoredObj *obj = ctx->store->query(shurl_debase(path));
-> 139 switch (obj->type) {
140 case ObjTypeFile:
141 ctx->serve_file_id(obj->id);
142 break;
(lldb) q
```
Fix handling double file name extensions
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mia/0x0#61
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?