Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
3.68k stars 511 forks source link

Problems with Filter\Search #6065

Closed southeasterntech closed 2 months ago

southeasterntech commented 2 months ago

Problem: Search is not working for many users

We have been having problems with multiple users with search\filter not working at all. For one user (happens to be admin) it's working fine. -We have tried in incognito mode : FAIL -Tried granting user admin access : FAIL -Tried different browsers : FAIL -Tried reverting to 1.1.0, tried upgrading to 1.1.22 : FAIL -Promote regular user to Admin and it does not resolve so, seems not related to permissions: FAIL

Nothing seems to fix it

Expected behavior Filter should work for all users

Screenshots image image image

Server Software (please complete the following information):

Client Device (please complete the following information):

Additional context Latest Log error:

-------- 5/1/2024, 3:13:52 PM ---- 1.1.0 --------

node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module './lib/types/urlencoded' Require stack:

Your config.json file


{
    "settings": {
        "MongoDb": "mongodb://127.0.0.1:27017/meshcentral",
        "selfupdate": true,
        "Cert": "mesh.south*********",
        "Port": 443,
        "WANonly": true,
        "IgnoreAgentHashCheck": false,
        "RedirPort": 80,
                "RelayPort": 44453,
        "browserPong": 30,
        "agentPong": 30,
        "agentPing": 30,
        "dbexpire": {
            "events": 1728000,
            "powerevents": 864000,
            "statsevents": 2592000
        },
        "DesktopMultiplex": true
    },
    "letsencrypt": {
        "email": "info@south******",
        "names": "mesh.south******",
        "rsaKeySize": 3072,
        "production": true
    },
    "domains": {
        "": {
            "agentCustomization": {
                "image": "setechnical-mesh.png",
                "installText": "Welcome to the Southeastern Technical Agent Installer. Please click install or update to continue.",
                "certurl": "https://mesh.south*****"
            },
            "altmessenging": [{
                    "name": "Knowledge Base",
                    "url": "http://docs.south******/"
                },
                {
                    "name": "Inventory",
                    "url": "https://inv.setech*****/"
                },
{
                    "name": "Compliance",
                    "url": "https://compliance.setech****/"
                },
                {
                    "name": "Jitsi Video Call",
                    "url": "https://meet.jit.si/setech***"
                }
            ],
            "title": "",
            "titlePicture": "title-southeastern.png",
            "newAccounts": 0,
            "UserSessionIdleTimeout": 60,
            "title2": "",
            "Minify": true,
            "SiteStyle": 2,
            "footer": "Level Up Your IT",
                        "LoginKey": "SeTech",
            "sessionRecording": {
                "onlySelectedDeviceGroups": true,
                "index": true,
                "_maxRecordings": 500,
                "maxRecordingSizeMegabytes": 250,
                "protocols": [1, 2, 200]
            }
        }
    },
    "smtp": {
        "host": "smtp-relay.sendinblue.com",
        "port": 465,
        "from": "mesh@south*****",
        "user": "mesh@south****",
        "pass": "*********",
        "tls": true
    }
}
si458 commented 2 months ago

That's weird? So the search doesn't work with normal users without admin permissions But the user with admin permission and it works?

P.s can u create a separate issue for the blank my devices page as that's a separate issue, and edit this issue to remove that issue

southeasterntech commented 2 months ago

Yes I’ll create a separate issue.

But I promoted one of the normal users to admin and it still didn’t work!

  Thanks,

Shane D. Lewis

     On May 1, 2024, at 12:41 PM, Simon Smith ***@***.***> wrote:

 That's weird?

So the search doesn't work with normal users without admin permissions But the user with admin permission and it works? P.s can u create a separate issue for the blank my devices page as that's a separate issue, and edit this issue to remove that issue — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

southeasterntech commented 2 months ago

Also, just saw, that for these users offline\online filter also does not work

si458 commented 2 months ago

You can only search using a few different search things https://ylianst.github.io/MeshCentral/meshcentral/devicetabs/#search-or-filter

southeasterntech commented 2 months ago

In this case, we're just searching for groups, so g:acme would bring up the acme device group. -Additionally noted that for these users, the List\Thumbnail buttons do not work.

southeasterntech commented 2 months ago

This issue was simultaneously solved with the solution to #6066. Thanks Team!