Long URLs cause crash
kirillt opened this issue · 1 comments
kirillt commented
Because URLs are pasted into filename.
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 36, kind: InvalidFilename, message: "File name too long" }', core/src/base/link.rs:31:44
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
We should encode URL with some hash function or BASE 32. We can use UUID or timestamps as well but then we need to check duplicates.