-
Notifications
You must be signed in to change notification settings - Fork 318
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
Comments
Will look into this. |
Hi @SaifuddinMerchant, At least some (failing) skeleton would be great, as I was not able to reproduce your error. Thanks, Georg |
Hi, I will provide another comment that will have the test case in the Integration Test format. Here a general Rest API way to reproduce the error
// Exception message for listWithPagination is ... 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' |
Here is a stab at the failing integration test. I have validated this code compiles, I have not run the integration test as I can't get the code to compile locally
|
If possible, I would like to submit the fix (one line change in import) and the updated integration test via a pull request. However I do not have an empty cloud foundry installation. I am able to verify the fix with the Rest End point test that I added to my own code base. Could I submit a PR without running the integration test locally? I'm hoping to understand the process so I can contribute other changes in the further |
You can create a pull request without testing the code beforehand. Just label / comment the pull request accordingly. If the purpose is to transfer some code sample, you should clearly state that you do not want this change to be merged. Thanks, Georg |
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
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 codeCF Java Client Version: 5.12.2.RELEASE
CF API version: 3.166.0
The text was updated successfully, but these errors were encountered: