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

cloudfoundry-client: V3.securitygroups _ListSecurityGroupsRequest extends the wrong pagination request #1242

Open
SaifuddinMerchant opened this issue Oct 7, 2024 · 0 comments

Comments

@SaifuddinMerchant
Copy link

Version 3 List Security Groups is extending the wrong version of pagination request
import org.cloudfoundry.client.v2.PaginatedRequest;

See _ListSecurityGroupsRequest.java#L17

Error when using the client to make a ListSecurityGroupRequest

org.cloudfoundry.client.v3.ClientV3Exception: CF-UnprocessableEntity(10008): Unknown query parameter(s): 'results-per-page'. Valid parameters are: 'page', 'per_page', 'order_by', 'created_ats', 'updated_ats', 'guids', 'names', 'running_space_guids', 'staging_space_guids', 'globally_enabled_running', 'globally_enabled_staging'
	at org.cloudfoundry.reactor.util.ErrorPayloadMappers.lambda$null$2(ErrorPayloadMappers.java:62)

The generated class ListSecurityGroupsRequest also has the wrong imports, but I am guessing if we fix the import in _ListSecurityGroupsRequest.java that will automatically fix the generated code

CF Java Client Version: 5.12.2.RELEASE
CF API version: 3.166.0

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