Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Handle NotImplementedError raised by acl_win#1077

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
ikus060 wants to merge1 commit intomaster
base:master
Choose a base branch
Loading
frompatrik-fix-acl-win-not-implemented-error

Conversation

@ikus060
Copy link
Contributor

Changes done and why

Change error handling arround acl_win.py to catchNotImplementedError that get raised byacl.GetAce() when the ACL type is not supported.

This issue was repported by a Minarca User.
https://gitlab.com/ikus-soft/minarca/-/issues/324

Self-Checklist

  • [-] changes to the code have been reflected in the documentation
  • [-] changes to the code have been covered by new/modified tests
  • [-] commit contains a description of changes relevant to users prefixed by DOC:, FIX:, NEW: and/or CHG:

@ikus060
Copy link
ContributorAuthor

@ericzolf If you could tkae a look at this one.

I did not write unit test as I dont see any specific test for acl_win...

@ericzolfericzolf marked this pull request as draftJune 27, 2025 06:02
@ericzolfericzolf changed the titleWIP: Handle NotImplementedError raised by acl_winHandle NotImplementedError raised by acl_winJun 27, 2025
@ericzolf
Copy link
Member

I made this PR a draft and removed the WIP prefix, you old GitLab afficionado! 😏

More seriously:

  1. I need a fresh mind to understand this one, few words of explanation might help
  2. Good occasion to add acl_win tests! In a separate file so they can be included in tox_win only.

@ikus060
Copy link
ContributorAuthor

@ericzolf The git diff looks a bit weird, but honestly, I didn't change much.

I just moved most of the code interacting with the DACL into a try...except block and added a new exception type to catch: NotImplementedError.

This is all to handle an exception raised by acl.GetAce() when it encounters an unsupported ACE type:
https://github.com/mhammond/pywin32/blob/0c7297b861b962a00e0a14a6d995f339663429e0/win32/src/PyACL.cpp#L148

@ericzolf
Copy link
Member

My comment was definitely more about my foggy brain that about your change.

Signed-off-by: Patrik Dufresne <patrik@ikus-soft.com>
@ericzolfericzolfforce-pushed thepatrik-fix-acl-win-not-implemented-error branch from749d06b toe1c3078CompareJune 29, 2025 06:51
Copy link
Member

@ericzolfericzolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I allowed myself to rebase your branch to make the comparison easier locally.
The code itself looks all good to me. Two little things:

  1. change the commit message to add a FIX explaining the change
  2. would you mind creating a new test file for win_acl and adding a test (or two)?

@ikus060ikus060 closed thisJul 9, 2025
@ikus060ikus060 deleted the patrik-fix-acl-win-not-implemented-error branchJuly 9, 2025 17:25
@ericzolf
Copy link
Member

Out of curiosity, why did you close this PR?

@ikus060ikus060 restored the patrik-fix-acl-win-not-implemented-error branchJuly 11, 2025 11:20
@ikus060ikus060 reopened thisJul 11, 2025
@ikus060
Copy link
ContributorAuthor

I might have delete the branch my mistake.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ericzolfericzolfericzolf requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ikus060@ericzolf

[8]ページ先頭

©2009-2025 Movatter.jp