szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.

Home Page:https://microbin.eu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Burn After -> First Read gets 2 reads to create content

pilasguru opened this issue · comments

Steps to reproduce problem:

NEW
BURN AFTER -> First Read
SAVE
[display content to get link, edit or remove]
Read 2 times, last just now

Description

When NEW content is created and BURN AFTER is set "First Read", just after SAVE and show content to recover LINK the system reports:

Read 2 times, last just now

Problem

It is unuseful to get the link because the content has been deleted and the link shows 404 always.

same here with Version 2.0.4, Build 20230711

As you can see in nginx logs - which is used as local reverse Proxy in front - the upload Link (upload/fish-pig-mole) is accessed twice:

2023-12-01T19:48:02.791386+01:00 share1 nginx: 2a00:ca::fe [-] - "POST https://share.url.net/upload HTTP/1.1" 302 195 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" 0.003
2023-12-01T19:48:02.813182+01:00 share1 nginx: 2a00:ca::fe [-] - "GET https://share.url.net/upload/fish-pig-mole HTTP/1.1" 200 2379 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" 0.002
2023-12-01T19:48:02.885010+01:00 share1 nginx: 2a00:ca::fe [-] - "GET https://share.url.net/upload/fish-pig-mole HTTP/1.1" 200 2379 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" 0.004
2023-12-01T19:48:02.956462+01:00 share1 nginx: 2a00:ca::fe [-] - "GET https://share.url.net/static/aes.js HTTP/1.1" 200 63933 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" 0.001
2023-12-01T19:48:03.000732+01:00 share1 nginx: 2a00:ca::fe [-] - "GET https://share.url.net/static/highlight/highlight.min.js HTTP/1.1" 200 191570 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" 0.001
2023-12-01T19:48:03.003929+01:00 share1 nginx: 2a00:ca::fe [-] - "GET https://share.url.net/static/highlight/highlight.min.css HTTP/1.1" 200 1490 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" 0.000

From my point of view, this is one time too much - so all further accesses end up with 404

Hey guys. Any possible fixes there?

Any update on this? Thank you very much to push microbin further!