-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[spaceship] Remove ensure_csrf in 'delete_provisioning_profile!' for more relability #13258
Conversation
…s returning the message '765: unexpected token at 'Bad Request''
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
CLAs look good, thanks! |
The error "765: unexpected token at 'Bad Request" was happening bacause the tokens not was sending in header of the post in the method "delete_provisioning_profile!". I saw that the function "repair_provisioning_profile" there were many people complaining the same error. I analyzed the code and I saw that at function "repair_provisioning_profile" removing this part of code bellow: ensure_csrf(Spaceship::Portal::ProvisioningProfile) do and this resolved the problem in "repair_provisioning_profile", then I apply the same fix in "delete_provisioning_profile". |
So this PR replicates what a different PR did as well? Can you link that PR for reference? |
@janpio No, I not have the link the PR that fix the function 'repair_provisioning_profile'. But I analyze the function 'repair_provisioning_profile' and the unique difference between function 'delete_provisioning_profile' and 'repair_provisioning_profile' was that the function 'delete_provisioning_profile' having this code 'ensure_csrf(Spaceship::Portal::ProvisioningProfile) do' and function 'repair_provisioning_profile' not have this code. After remove this code from function 'delete_provisioning_profile' I tested and the tokens worked. |
@julianoterres @janpio Here is the PR that removed this from the
It does look like this is a valid fix but I will do some testing on it before giving the 👍 just to make sure 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks legit and seems to still work 😊 Thanks for making this fix!
Hey @julianoterres 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
Congratulations! 🎉 This was released as part of fastlane 2.103.0 🚀 |
…more relability (fastlane#13258) * Fixed error of token of method 'delete_provisioning_profile!' that was returning the message '765: unexpected token at 'Bad Request'' * Removed Trailing whitespace
Fixed error of token of method 'delete_provisioning_profile!' that was returning the message '765: unexpected token at 'Bad Request''
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
Description
closes #13256