[ZBX-16228] Zabbix HTTP Agent - Header Field Value max length 255 characters Created: 2019 Jun 07  Updated: 2024 Apr 10  Resolved: 2019 Sep 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.2.1
Fix Version/s: 4.0.13rc1, 4.2.7rc1, 4.4.0alpha3, 4.4 (plan)

Type: Problem report Priority: Major
Reporter: Aigars Kadikis Assignee: Andrejs Verza
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File http-agent-header-value-limited-to-255.png    
Issue Links:
Sub-task
Team: Team B
Sprint: Sprint 56 (Sep 2019), Sprint 55 (Aug 2019)
Story Points: 0.25

 Description   

Item type HTTP agent allows setting the Header value within the length of 255 characters.

In order to perform Azure REST API calls it is required to install key with a length of 1156 characters.

 



 Comments   
Comment by Morten Bech Christensen [ 2019 Jun 07 ]

Addition to this case is the lack off 1156 characters in a Macro så i can use the access_token into the header of a new Item created in low level discovery.

so in Azure REST API.

i get the access Token using a URL and adding a few parameters in body.
https://login.microsoftonline.com/$tenant_id/oauth2/token

this Return the access Token. 1156 Characters Long.
 
then i need to LLD Pipelines in a Factory.

"https://management.azure.com/subscriptions/$subscription_id/resourceGroups/$resource_group/providers/Microsoft.Logic/workflows?api-version=2016-06-01"
i need to add the access Token into a Headers Parameter (1156 characters long) 
 
 
So to manage that i need to save the Access_token into a Macro, use it i Headers in LLD then get all Pipeline names and use it as a Name for each item created.

then use a different URL to get Status for each PipelineRun using another URL again using this Access_Token in Headers Parameter.
 
 
so what i would need is 2 things to support more then 255 Characters:

  • Macro
  • Headers parameter value
     
     
     
Comment by Valdis Murzins [ 2019 Jun 10 ]

In scope of ZBX-15816, max-length for Header value field was already extended to 1000 characters.
While it is not solving problem with Azure REST API, it is not 255 characters as well.

Comment by Vladislavs Sokurenko [ 2019 Jun 18 ]

Looks like frontend issue only, removing server component.

Comment by Aigars Kadikis [ 2019 Jul 10 ]

Thank you vmurzins

I have noticed in version 4.2.4 and 4.0.10 the limit is 1000. Can we please push the button a little more? A number 1536 sounds good enough.

 

Comment by Andrejs Verza [ 2019 Aug 23 ]

Resolved in development branch feature/ZBX-16228-4.0.

Comment by Andrejs Verza [ 2019 Sep 13 ]

Fixed in:

Comment by Angel Dabov [ 2020 Aug 19 ]

Hi,

Is there a problem to increase the max-length to 3000. I've to put x509 certificate to header and in version 4.4.5 limit is 1000.

Thank You

Generated at Sat May 04 13:35:29 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.