[ZBX-12825] error: Wrong value for url field. Created: 2017 Oct 05 Updated: 2024 Apr 10 Resolved: 2017 Dec 14 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 3.4.2 |
Fix Version/s: | 2.2.21rc2, 3.0.14rc2, 3.2.11rc2, 3.4.5rc2, 4.0.0alpha1, 4.0 (plan) |
Type: | Problem report | Priority: | Major |
Reporter: | sles | Assignee: | Miks Kronkalns |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Centos 7 |
Attachments: |
![]() ![]() |
||||||||||||||||||||
Issue Links: |
|
||||||||||||||||||||
Team: | |||||||||||||||||||||
Sprint: | Sprint 19, Sprint 21, Sprint 22, Sprint 23 | ||||||||||||||||||||
Story Points: | 4 |
Description |
After upgrade from 3.4.1 to 3.4.2 I see error: error: Wrong value for url field. While trying to update one of maps. Thank you! |
Comments |
Comment by Ingus Vilnis [ 2017 Oct 05 ] |
Hi, Where exactly in the maps do you see the problem? |
Comment by sles [ 2017 Oct 05 ] |
No, I see this only on one map. |
Comment by Natalja Romancaka [ 2017 Oct 05 ] |
Please check url field in map properties or in map element, it should contain http:// https:// |
Comment by sles [ 2017 Oct 05 ] |
I'll check. And error message is not informative - there is no info which element contains "wrong" url. |
Comment by sles [ 2017 Oct 05 ] |
I found element with url without http, so now map can be updated. |
Comment by Alexander Vladishev [ 2017 Oct 05 ] |
Will be fixed with ZBX-3783. |
Comment by Petr Vyhlidal [ 2017 Oct 20 ] |
In 3.4.3, this issue is still present. It will be great, if the url check for maps was not strict - if it only displayed message with information which object is affected. |
Comment by sles [ 2017 Oct 20 ] |
Petr, Natalja provided link here, according to it other url types can be added in configuration or check can be disabled, afair... |
Comment by Petr Vyhlidal [ 2017 Oct 20 ] |
sales, |
Comment by sles [ 2017 Oct 20 ] |
Well , you not asking me, but... |
Comment by Oleg Egorov (Inactive) [ 2017 Oct 20 ] |
Hello, sles! This changes we create according security audit, to make Zabbix safer. Sorry, but CHtmlUrlValidator will not allow use telnet in this case, they have a specific format. |
Comment by sles [ 2017 Oct 20 ] |
Oleg, thank you! well, if it is security feature, then I'm absolutely wrong that this can be disabled - just mixed it up.. |
Comment by Veselin Kutsarov [ 2017 Oct 24 ] |
I have macroses in my trigger urls like If I export that template and try to import - the url validation will prevent it. The only solution I found is to change ZBX_URI_VALID_SCHEMES by adding a comma after the last scheme in order to achieve an empty element and when parsing for : and not discovering scheme validation to pass. |
Comment by Oleg Egorov (Inactive) [ 2017 Oct 25 ] |
Zabbix is Open source project and you can made any changes. Official version is secure and support quality standards. |
Comment by sles [ 2017 Oct 25 ] |
>URL validation help to protect Zabbix frontend users from other Zabbix frontend users oops! really? is there any setup where non-trusted user can edit maps? |
Comment by Veselin Kutsarov [ 2017 Oct 25 ] |
Ok, Oleg, but my question was in future release will you evaluate the expression before validating it or not? |
Comment by Vjaceslavs Bogdanovs [ 2017 Oct 26 ] |
sles wrote:
Well, there are multiple user types in Zabbix. Monitoring -> Maps page is available for users without any permissions (no permissions at all or read-only permission to some single host) So there are reasons to make those changes. |
Comment by sles [ 2017 Oct 26 ] |
>So there are reasons to make those changes. No, if this is case you have to provide way for administrator to disable such anonymous maps creation and let administrator decide are such maps meet local security policy or not. |
Comment by Miks Kronkalns [ 2017 Nov 24 ] |
RESOLVED in |
Comment by Miks Kronkalns [ 2017 Nov 27 ] |
(2) Translation strings added for 3.0:
sasha CLOSED |
Comment by Miks Kronkalns [ 2017 Dec 05 ] |
(14) [D] by changes, URLs with invalid port numbers, like ftp://user@host:port are considered as invalid. In previous versions this would be valid URL. martins-v RESOLVED in the upgrade notes. sasha CLOSED |
Comment by Miks Kronkalns [ 2017 Dec 14 ] |
Fixed:
|
Comment by Ivo Kurzemnieks [ 2017 Dec 29 ] |
I don't think it's the right way to write in ChangeLog.
|
Comment by Pavel Zharkov [ 2018 Feb 27 ] |
I have this problem too. I have designed network maps for quick access to remote desktops through vnc protocol, so there are vnc:// and vvnc:// link templates in the system for remote control and remote view respectively. What can I do? Is there some option to bypass a zabbix server downgrade. |
Comment by Vjaceslavs Bogdanovs [ 2018 Feb 27 ] |
zzz, please refer to https://www.zabbix.com/documentation/3.4/manual/installation/upgrade_notes_345#configurable_uri_validation it describes the configuration procedure. |
Comment by Pavel Zharkov [ 2018 Feb 28 ] |
Vjaceslavs Bogdanovs, thanks a lot! |