Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

We used plugin advanced custom field facing issue as not able to see field data

Madhuri Patil
November 6, 2023

 

 

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 issuScreenshot 2023-11-06 175917.png

1 answer

1 vote
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 7, 2018

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:

  1. BASE64 encode the string myuser@mydomain.com:apitokenhere
  2. Supply an 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");

     

Suggest an answer

Log in or Sign up to answer