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

fix: Ensure tab characters in policy files are parsed as white-space #324

Merged
merged 3 commits into from
Aug 4, 2023

Conversation

janpieterz
Copy link
Contributor

@janpieterz janpieterz commented Aug 3, 2023

If the policy file has tabs in it, the change to use the CSV parser meant that the policies were parsed incorrect.

I have a unit test that proves this that I can add if wanted (seems very low level but might be good to ensure regressions).

@casbin-bot
Copy link
Member

@sagilio please review

@casbin-bot casbin-bot requested a review from sagilio August 3, 2023 17:14
@CLAassistant
Copy link

CLAassistant commented Aug 3, 2023

CLA assistant check
All committers have signed the CLA.

@hsluoyz
Copy link
Member

hsluoyz commented Aug 3, 2023

@janpieterz plz add the unit test, thx!

@janpieterz
Copy link
Contributor Author

@hsluoyz sorted!

@hsluoyz
Copy link
Member

hsluoyz commented Aug 4, 2023

@janpieterz fix:

image

@janpieterz
Copy link
Contributor Author

@hsluoyz should be fixed now

@hsluoyz
Copy link
Member

hsluoyz commented Aug 4, 2023

@janpieterz the benchmark CI is too slow. Can you remove it?

image

@janpieterz
Copy link
Contributor Author

@hsluoyz you mean remove it from running as a pull request check?

@hsluoyz
Copy link
Member

hsluoyz commented Aug 4, 2023

@janpieterz remove Build / benchmark (pull_request) from the code in a new PR

@janpieterz
Copy link
Contributor Author

Sure, done here

@hsluoyz hsluoyz merged commit 766bf05 into casbin:master Aug 4, 2023
6 checks passed
@github-actions
Copy link

github-actions bot commented Aug 4, 2023

🎉 This PR is included in version 2.0.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants