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

[Bug]: vue.runtime.esm.js:3065 SyntaxError: Invalid regular expression: /\/i: \ at end of pattern (at SearchField.vue:92:1) #1320

Open
9 tasks done
ant0nwax opened this issue Sep 3, 2024 · 1 comment

Comments

@ant0nwax
Copy link

ant0nwax commented Sep 3, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

Leaflet - Maps. Search for Character Backslash \ makes Search box crash
Nextcloud on-premise, php 82
Leaflet / Mapbox

reference: #1068

(Bonus Question Do I use mapbox js or mapbox GL JS ?) How could i find this out, sorry to ask?
reference: https://docs.mapbox.com/help/troubleshooting/transition-from-mapbox-js-to-mapbox-gl-js/

Steps to reproduce

Test Case 1:

  1. Enter \ into search field on labs.mapbox.com
  2. Result, does not crash search box

Test Case 2:

  1. Enter \ into nextcloud on-premises with mapbox leaflet integration.
  2. SynTax error

Expected behavior

No error no cry

Installation method

Other

Operating system

RHEL/CentOS

PHP engine version

Other

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install of the server?

Updated from a minor version (ex. 22.2.3 to 22.2.4)

Is this bug present after an update or on a fresh install of the app?

Updated from a minor version

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

[root@antcloud bin]# sudo -u apache php occ config:list system
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "allow_local_remote_servers": true,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwriteprotocol": "https",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.5.1",
        "overwrite.cli.url": "http:\/\/192.168.1.27\/nextcloud",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "default_phone_region": "HU",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "loglevel": 2,
        "force_locale": "en_GB",
        "theme": "",
        "maintenance_window_start": 1
    }
}

List of activated Apps

sensitive data

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

why do u need logs? 
it is easy to reproduce and you can generate your own logs

Browser Console

also sensitive data

Additional info

please could you only answer after you reproduced the issue? it is not a very difficult test case

@ant0nwax
Copy link
Author

ant0nwax commented Sep 3, 2024

Haha, needed to add code for entering / the backslash character :)

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

No branches or pull requests

1 participant