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

Unable to paginate search_issues with properties #1862

Open
3 of 4 tasks
kharigardner opened this issue May 22, 2024 · 0 comments
Open
3 of 4 tasks

Unable to paginate search_issues with properties #1862

kharigardner opened this issue May 22, 2024 · 0 comments

Comments

@kharigardner
Copy link

Bug summary

A issue occurs when paginating through JQL issue responses when including a properties parameter (has never occured without the properties parameter)

Is there an existing issue for this?

  • I have searched the existing issues

Jira Instance type

Jira Cloud (Hosted by Atlassian)

Jira instance version

No response

jira-python version

3.8.0

Python Interpreter version

3.11.7

Which operating systems have you used?

  • Linux
  • macOS
  • Windows

Reproduction steps

# 1. Given a Jira client instance
jira: JIRA
# 2. When I call the function with argument x
jql = 'my jql query'
properties = 'relatedSalesforceEntities'
expand = 'changelog'
jira.search_issues(jql_str=jql,properties=properties,expand=expand,json_result=False)

## Triggers a JiraError 500 for a URL way down during pagination

Stack trace

JIRAError: JiraError HTTP 500 url: <redacted>
	text: Duplicate key 2618528 (attempted merging values com.atlassian.jira.issue.comments.ImmutableComment@48c05b and com.atlassian.jira.issue.comments.ImmutableComment@48c05c)
	
	response headers = {'Date': 'Wed, 22 May 2024 16:51:11 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': '3616485ea01aa7a87798f50fb7f659be', 'X-Aaccountid': '712020%3Aa3f8693a-d5f6-4217-b972-6fcd823f3ab0', 'Cache-Control': 'no-cache, no-store, no-transform', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': '67442f46c51046448150054267bd5e0f', 'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload', 'Report-To': '{"endpoints": [{"url": "https://dz8aopenkvv6s.cloudfront.net"}], "group": "endpoint-1", "include_subdomains": true, "max_age": 600}', 'Nel': '{"failure_fraction": 0.001, "include_subdomains": true, "max_age": 600, "report_to": "endpoint-1"}', 'Transfer-Encoding': 'chunked'}
	response text = {"message":"Duplicate key 2618528 (attempted merging values com.atlassian.jira.issue.comments.ImmutableComment@48c05b and com.atlassian.jira.issue.comments.ImmutableComment@48c05c)","status-code":500,"stack-trace":""}

Expected behaviour

A result list to be returned with no error. When entering the URL manually to a requests.get or within a authenticated browser session, no error is returned.

Additional Context

No response

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

No branches or pull requests

1 participant