Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using more than 6 letters results in "Error: Invalid ID" #22

Open
Zeklyn opened this issue Apr 16, 2020 · 1 comment
Open

Using more than 6 letters results in "Error: Invalid ID" #22

Zeklyn opened this issue Apr 16, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Zeklyn
Copy link

Zeklyn commented Apr 16, 2020

Hello! If you try to use more than 6 letters in the links/text tab it results in "Error: Invalid ID", do this with files and it'll result in a "Bad gateway 502" error. URLs are somehow capped at 6 letters.

Config

database_url = "/home/cdn/.local/share/filite/database.db"
pool_size = 4
files_dir = "/home/cdn/.local/share/filite/files"

[highlight]
theme = "github"
languages = ["rust"]

Logs

(when doing the example below)

[2020-04-16T17:38:55Z INFO  actix_web::middleware::logger] 127.0.0.1:57806 "GET /f HTTP/1.0" 200 684 "https://example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" 0.000285
[2020-04-16T17:38:55Z INFO  actix_web::middleware::logger] [::1]:35722 "GET /l HTTP/1.0" 200 225 "https://example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" 0.000264
[2020-04-16T17:38:55Z INFO  actix_web::middleware::logger] 127.0.0.1:57810 "GET /t HTTP/1.0" 200 335 "https://example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" 0.000219
[2020-04-16T17:39:14Z INFO  actix_web::middleware::logger] [::1]:35726 "PUT /f/4578329478932743982 HTTP/1.0" 400 10 "https://example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" 0.000080
[2020-04-16T17:39:14Z INFO  actix_web::middleware::logger] 127.0.0.1:57814 "PUT /f/4578329478932743982 HTTP/1.0" 400 10 "https://example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0" 0.000046

Example

1Xe2zOS

@raftario
Copy link
Owner

This is normal, as internally IDs are stored as 32 bits integers. However, the web UI should warn you and disable submission if the ID is invalid, which is visibly not happening. I'll look into it.

I also plan to rework most of the internal structure to remove that limitation as soon as I have more time.

@raftario raftario added the bug Something isn't working label Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants