Skip to content

fix: reject empty resource_id when constructing resource clients - #1274

Closed
theluckystrike wants to merge 1 commit into
apify:masterfrom
theluckystrike:fix/reject-empty-resource-id
Closed

theluckystrike wants to merge 1 commit into
apify:masterfrom
theluckystrike:fix/reject-empty-resource-id

Conversation

@theluckystrike

Copy link
Copy Markdown

Addresses #1178.

Resource clients accepted resource_id='' at construction time and only failed later on the first request inside to_path_segment, while UserClient / UserClientAsync silently fell back to 'me' via resource_id or 'me'. Validate resource_id != '' in _ResourceClientBase.__init__ and check resource_id is None in UserClient and UserClientAsync.

@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Dec 2, 2026
@vdusek

vdusek commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

breaking change, next major version issue

@vdusek vdusek closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants