Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't integrate azure devops with reportportal #64 #2055

Open
maciekpazola opened this issue Aug 28, 2024 · 4 comments
Open

Can't integrate azure devops with reportportal #64 #2055

maciekpazola opened this issue Aug 28, 2024 · 4 comments

Comments

@maciekpazola
Copy link

Good afternoon,

I attempted to integrate ReportPortal with our on-premise Azure DevOps, but encountered an issue. The request to trigger the integration contains forbidden characters—specifically, the request call is named "Azure%20DevOps." Our Azure DevOps configuration blocks such characters by default.

Is there any workaround available from ReportPortal, or is it possible to adjust the naming convention within ReportPortal to avoid this issue?

Request url: http://serverurl/api/v1/integration/Azure%20DevOps
Request status: 409 Conflict
Response:
{
"errorCode": 40302,
"message": "Unable to interact with the integration. Unable to connect to Azure DevOps. Code: 400, Message: A potentially dangerous Request.Path value was detected from the client (:)."
}

Under this link you can find ticket about the specific issue:
https://learn.microsoft.com/en-us/answers/questions/1509257/how-to-solve-error-a-potentially-dangerous-request

Best regards,
Maciej Pazoła

@Pink-Bumblebee
Copy link

@maciekpazola , I have a weird idea for you : could you please try to rename directly in Postgres database?
Table name is "integration_type", in 'name' field change "Azure DevOps" to "AzureDevOps".

@maciekpazola
Copy link
Author

maciekpazola commented Aug 28, 2024

@maciekpazola , I have a weird idea for you : could you please try to rename directly in Postgres database? Table name is "integration_type", in 'name' field change "Azure DevOps" to "AzureDevOps".

I have tried it, now the request looks correct, but I got 400 error with message: {
"errorCode": 40016,
"message": "Error in handled Request. Please, check specified parameters: 'Plugin for isn't installed'"
}
url: http://serverurl/api/v1/integration/AzureDevOps
So there is probably so more complexity or more tables to update with corrected plugin name

@maciekpazola
Copy link
Author

maciekpazola commented Aug 29, 2024

Why in payload of the integration call it's OAUTH instead of PAT?
In the documentation it's written to copy PAT and paste this to integraiton.
I'm just wondering if it's the issue, on-premise azure devops can't use OAUTH and it's recommended to use PAT
https://developercommunity.visualstudio.com/t/Oauth-20-support-with-ADO-serverTFS-R/10492547?entry=myfeedback&sort=newest
{
"enabled": true,
"integrationParameters": {
"authType": "OAUTH",
"integrationName": "Global integration for azure",
"url": "http://projecturl",
"project": projectName,
"oauthAccessKey": PersonalAccessToken
},
"name": "Global integration for azure"
}

@kaushall
Copy link

kaushall commented Jan 7, 2025

Build using following patch: reportportal/plugin-bts-azure#70, it might work for you as well. We are currently running it with ADO 2019 On-prem and ADO Cloud together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants