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

Cannot wildcard match directories / not working #1552

Closed
Rubber-Duckie opened this issue May 27, 2024 · 5 comments
Closed

Cannot wildcard match directories / not working #1552

Rubber-Duckie opened this issue May 27, 2024 · 5 comments
Labels
bug TYPE: a report on something that isn't working stale ATTRIBUTE: this issue has not had recent activity

Comments

@Rubber-Duckie
Copy link

Rubber-Duckie commented May 27, 2024

What happened:

Various applications can spawn executables that need internet access. These executables can be created in sub directories which are generated with a random name.

Take for example visual studio, rather notorious for this, where it uses the temporary directory in which it will create subdirectories with random names, a new name every time it runs.

i.e.
C:\Users\User1\AppData\Local\Temp\uogzuxa0.jm3\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service

This happens every few hours thus the Portmaster creates a new profile for each unique path it sees, forever. This effectively destroys the ability for the application to be of any use.

image

Despite having edited the profile for the executable, and having inserted a wildcard into the path within the edit profile option, it does not function as expected.

see the screen shot below.
image

What did you expect to happen?:

Edit the profile, insert a asterisk for 'match any string' within the file path. From then on, the file path matching logic will use that single profile for the matching instances detected.

i.e.
C:\Users\User1\AppData\Local\Temp\*\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service

@Rubber-Duckie Rubber-Duckie added the bug TYPE: a report on something that isn't working label May 27, 2024
Copy link

Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you:

  • 🗣️ Our community on Discord is super helpful and active. We also have an AI-enabled support bot that knows Portmaster well and can give you immediate help.
  • 📖 The Wiki answers all common questions and has many important details. If you can't find an answer there, let us know, so we can add anything that's missing.

@Rubber-Duckie
Copy link
Author

Rubber-Duckie commented May 27, 2024

  • I notice there is a regular expression capability.

  • I have merged all the duplicates into a single master.

  • I have created a regex to attempt to undertake the same match.

image

  • Will update here if this works for reference for other people with similar expectations.

  • I am anticipating this will be marked expected behavour since you have NOT implemented wildcard matching strings in the fingerprint feature, and regex is the only way...

@Rubber-Duckie
Copy link
Author

Confirm Regex provides the expected behavour. Might be worth adding notes to the exclamation if the intent is for path matching not to support any string wildcards

Copy link

This issue has been automatically marked as inactive because it has not had activity in the past two months.

If no further activity occurs, this issue will be automatically closed in one week in order to increase our focus on active topics.

@github-actions github-actions bot added the stale ATTRIBUTE: this issue has not had recent activity label Jul 30, 2024
Copy link

github-actions bot commented Aug 7, 2024

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.

If the issue has not been resolved, you can find more information in our Wiki or continue the conversation on our Discord.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TYPE: a report on something that isn't working stale ATTRIBUTE: this issue has not had recent activity
Projects
None yet
Development

No branches or pull requests

1 participant