Forum Discussion
Hi Rich,
Here is the attachment.
Thanks
Hey ajitzephyr
thanks for the attachment - sorry - even though I've set Chrome to not allow re-directs - it's ignoring the setting for some reason.
Hey ajitzephyr
I was going to try reproducing the issue by using my own project's JIRA/Zephyr instance, but I finished my current contract and got locked out at 6pm, so I can't try and reproduce. However - I grabbed the secretKey and accessKey cos I wanna try and build it cos I still might spot something
Did you follow the instructions EXACTLY or did you deviate at all? (sorry I don't mean to be condescending - I'm just trying to work through the 'possibles' considering I cant try reproducing now) JIRA instructions change quite a bit over versions and the help online can often point to older versions .
You're getting a 401 so it's not even getting to parse your request - I'd guess there's a problem with the Authorization header on the request. even though I can't reproduce I'd like to get as far as I can - it might help diagnose the problem - I've cloned the zapi-cloud repo - but I haven't got access to the .jar file - would you mind attaching the .jar file to your response please?
Cheers,
Rich
- richie9 months agoCommunity Hero
Hey ajitzephyr
Been looking at the sampleJWTGenerator.java. Where did you get this part of the URI from "/public/rest/api/1.0/execution"?
In the screenshotted sampleJWTGenerator.java - there's 2 different URIs specified. in the one the URI is "/public/rest/api/1.0/cycle" and in the later screenshot - the same URI has 2 query parms ("/public/rest/api/1.0/cycle?expand&clonedCycleId=").
Reason I'm asking is that if I'm reading the java correctly (and for once, it doesn't look like martian to me) the jwt string value is generated in part by a method that takes these arguments --> zephyrBaseURL, accessKey, secretKey and accountId and another method that uses the zephyrBaseURL and a URI (whether it's "/public/rest/api/1.0/cycle" or "/public/rest/api/1.0/cycle?expand&clonedCycleId=" or even /public/rest/api/1.0/execution) to generate the final JWT token value.
I could be totally wrong - but I'd still like to nail all the possibilities down until we've found what the cause of your issue is.
Cheers
Rich
- ajitzephyr9 months agoNew Contributor
I cannot attach the file as it is more than 12 MB after compressing it.
- richie9 months agoCommunity Hero
Hey ajitzephyr
Is there any chance you can provide the full name of the .jar file please? I might be able to find it some other way if I have the full name of the .jar file.
I'm sorry that I can't access the webpage without the redirect - I've tried forcing both EDGE and Chrome to ignore redirects - but it's just not working and that link constantly redirects to the one I mentioned.
I still think I can help if I can get everything setup on my laptop however - so if you can provide the jar file full name (can't see the full name in the attached .pdf image file) - then I should be able to sort myself out with the rest.
Oh - one more thing - .jar files are already compressed - so .zipping or winraring a .jar file is just like zipping a .zip archive - it's already compressed so doesn't make much diff.
Anyway - if you can get me the .jar file name you'll be doing me a real favour!
Thanks!
Rich
Related Content
- 3 years ago