Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
[x] I am running the latest version
[x] I checked the documentation and found no answer
[x] I checked to make sure that this issue has not already been filed
Issue Details
Version of AdGuard Home server:0.104.3
How did you setup DNS configuration: IoT
If it's a router or IoT, please write device model:Raspberry Pi 3 Model B
Operating system and version:Raspbian GNU/Linux 10 (buster)
Expected Behavior
Create a block list in any location (in this case /tmp/block-my-hosts.txt)
Add the file path through the UI using an absolute path
It should be accepted
Actual Behavior
Error: control/filtering/add_url | Invalid URL or file path | 400
Additional Information
The issue seems to be here, however, looking at isValidUrl, it seems the only thing that can go wrong is when the file does not exist, but I've confirmed the it definitely does:
$ ls -la /tmp/block-my-hosts.txt
-rw-r--r-- 1 adguardhome adguardhome 0 Nov 28 09:49 /tmp/block-my-hosts.txt
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Issue Details
0.104.3
Raspberry Pi 3 Model B
Raspbian GNU/Linux 10 (buster)
Expected Behavior
Create a block list in any location (in this case
/tmp/block-my-hosts.txt
) Add the file path through the UI using an absolute path It should be acceptedActual Behavior
Additional Information
The issue seems to be here, however, looking at
isValidUrl
, it seems the only thing that can go wrong is when the file does not exist, but I've confirmed the it definitely does: