Skip to content

[Bug]: Path filter not working as expected for fs events #2220

Description

@Joly0

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration issue.
  • This issue is not already reported on Github (I've searched it).

Bug description

I am trying to setup mail notifications for specific users/paths when files are uploaded or deleted. I already configured the rule and the action in the event manager, but i cannot get the Path filter to work. I started specific with the path being "E:\sftpgo-users\external\USERNAME**" (without exclamation marks), but that didnt trigger. So i tried to get more unspecific to somehow trigger this event, but even with "E:" it doesnt trigger. I tried removing the path filter alltogethter and then it worked. But i need the filter to specify which user uploaded or what path was uploaded too.

I also tried with paths like "E:/", "E:\" or "E:\\" but doesnt work either.

Steps to reproduce

  1. Configure filesystem events rule
  2. Configure with file path on windows disk
  3. Try to trigger the event

Expected behavior

Should work with the normal windows file paths

SFTPGo version

2.7.1 1312348

Data provider

SQLite

Installation method

Other

Configuration

config

Relevant log output

What are you using SFTPGo for?

Medium business

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions