Skip to content

Issue with search users with GDPR #2350

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

Open
2 of 4 tasks
outrider-jhaskel opened this issue May 6, 2025 · 1 comment
Open
2 of 4 tasks

Issue with search users with GDPR #2350

outrider-jhaskel opened this issue May 6, 2025 · 1 comment

Comments

@outrider-jhaskel
Copy link

Bug summary

The search users function has the keyword username in the params dict which is used in the rest api
The issue seems to be that the search users function includes the username param whether it is used or not (probably to be deprecated)
Fixes could be to remove it completely, ignore it if not used either in search users or potentially more robust to remove dict keys that arent used in params from inside _fetch_pages

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.10.1'

Python Interpreter version

3.13

Which operating systems have you used?

  • Linux
  • macOS
  • Windows

Reproduction steps

When calling search_users with query=assignee
The error 
Failed to assign with email: JiraError HTTP 400 url: https://outrider.atlassian.net/rest/api/2/user/search?username=637e94d79e48f2b9a61227d1&includeActive=True&includeInactive=False&maxResults=50
	text: The query parameter 'username' is not supported in GDPR strict mode.
	
	response headers = {'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Date': 'Mon, 05 May 2025 20:33:49 GMT', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': '461ad52a0b9847dd90d1b120ca187737', 'X-Aaccountid': '5fac14a7c8247300707ce913', 'Cache-Control': 'no-cache, no-store, no-transform', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': '27bf825dec474531958496d4172babc3', 'Atl-Request-Id': '27bf825d-ec47-4531-9584-96d4172babc3', '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"}', 'Server-Timing': 'atl-edge;dur=97,atl-edge-internal;dur=15,atl-edge-upstream;dur=83,atl-edge-pop;desc="aws-eu-central-1"', 'X-Cache': 'Error from cloudfront', 'Via': '1.1 1b93a7bbdf7c2baf5bb30e8f9c3066b2.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'JNB51-P1', 'X-Amz-Cf-Id': 'NLc-bZFiIe296HqlX0JK_FV_WHcpi2YRDWJu0pOqHx0SpD5KgeWmfw=='}
	response text = {"errorMessages":["The query parameter 'username' is not supported in GDPR strict mode."],"errors":{}}

Stack trace

Failed to assign with email: JiraError HTTP 400 url: https://outrider.atlassian.net/rest/api/2/user/search?username=637e94d79e48f2b9a61227d1&includeActive=True&includeInactive=False&maxResults=50
	text: The query parameter 'username' is not supported in GDPR strict mode.
	
	response headers = {'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Date': 'Mon, 05 May 2025 20:33:49 GMT', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': '461ad52a0b9847dd90d1b120ca187737', 'X-Aaccountid': '5fac14a7c8247300707ce913', 'Cache-Control': 'no-cache, no-store, no-transform', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': '27bf825dec474531958496d4172babc3', 'Atl-Request-Id': '27bf825d-ec47-4531-9584-96d4172babc3', '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"}', 'Server-Timing': 'atl-edge;dur=97,atl-edge-internal;dur=15,atl-edge-upstream;dur=83,atl-edge-pop;desc="aws-eu-central-1"', 'X-Cache': 'Error from cloudfront', 'Via': '1.1 1b93a7bbdf7c2baf5bb30e8f9c3066b2.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'JNB51-P1', 'X-Amz-Cf-Id': 'NLc-bZFiIe296HqlX0JK_FV_WHcpi2YRDWJu0pOqHx0SpD5KgeWmfw=='}
	response text = {"errorMessages":["The query parameter 'username' is not supported in GDPR strict mode."],"errors":{}}

Expected behaviour

Expected behaviour is to return the user

Additional Context

python 3.13

@EugeneLugovtsov
Copy link

same for me

Image
jira.exceptions.JIRAError: JiraError HTTP 400 url: https://*****.atlassian.net/rest/api/2/user/search?username=******&includeActive=True&includeInactive=False&maxResults=50
	text: The query parameter 'username' is not supported in GDPR strict mode.
	response headers = {'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Date': 'Wed, 14 May 2025 08:47:16 GMT', 'Server': 'AtlassianEdge', 'Timing-Allow-Origin': '*', 'X-Arequestid': '51b8eafbb970de315682b14fd0c693b5', 'X-Aaccountid': '5ef30c2860d3c80ac9048fc4', 'Cache-Control': 'no-cache, no-store, no-transform', 'X-Content-Type-Options': 'nosniff', 'X-Xss-Protection': '1; mode=block', 'Atl-Traceid': 'e27786426c1f441e84b18d40e56a1759', 'Atl-Request-Id': 'e2778642-6c1f-441e-84b1-8d40e56a1759', '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"}', 'Server-Timing': 'atl-edge;dur=90,atl-edge-internal;dur=16,atl-edge-upstream;dur=75,atl-edge-pop;desc="aws-eu-central-1"', 'X-Cache': 'Error from cloudfront', 'Via': '1.1 6115ccbf06ce7bea7cea8806dfa86752.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'IAD79-C3', 'X-Amz-Cf-Id': 'zlz8FBVhd3nXsBcLU0WLkCaczim3LB5AiMnLqHtEQR_Izqu9CJD3dg=='}
	response text = {"errorMessages":["The query parameter 'username' is not supported in GDPR strict mode."],"errors":{}}

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

2 participants