This aging is custom field which provide by advanced custom field plugin .As
some user are not able to see these value for aging field Can you please help me for these issu
Hi @SVCA JIRA,
I believe the problem here is with the below line:
conn.setRequestProperty("user","myuser@mydomain.com:apitokenhere");
When in Curl you pass the authentication credentials using the -u (or --user) argument, what Curl is doing is to base64 encoding the USERNAME:API_TOKEN string and adding the header "Authorization: Basic XXXXX" where XXXXX is the base64 encoded string.
This is the way HTTP Basic authentication works and it is explained in further details in the below page:
Therefore, in order to fix your code, please do the following:
Authorization header with content Basic followed by the encoded string. For example, the string myuser@mydomain.com:apitokenhere encodes to ZnJlZDpmcmVk in base64, so you would replace the line:conn.setRequestProperty("user","myuser@mydomain.com:apitokenhere");with
conn.setRequestProperty("Authorization: Basic ZnJlZDpmcmVk");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.