45Drives / cockpit-identities

User and group management plugin for Houston UI (Cockpit)
GNU General Public License v3.0
164 stars 6 forks source link

can not edit or add Users on safari #1

Open colaH16 opened 2 years ago

colaH16 commented 2 years ago

Bug Info

Describe the bug I got an error messages. "Failed to get shells: Invalid regular expression: invalid group specifier name"

This may be a problem cause of macOS "beta" and ipados "beta". I don't have a device that isn't a beta. If you are connected successfully on a non-beta apple device, you can close this issue.

To Reproduce Steps to reproduce the behavior:

  1. server is alma linux on aarch64.
  2. cockpit behind nginx-proxy-manager and cloudflare zero trust zone for security.
  3. client is safari on macOS ventura 13.1.
  4. Go to 'https://mydomain/identities' with safari chrome and firefox works.

Expected behavior access Identities without error show edit, add user

Screenshots If applicable, add screenshots to help explain your problem. I got this error when I access identities

Screenshot 2022-11-09 at 10 08 02 AM

Console Output I got these error on 'add user' these error occur recursively.

Screenshot 2022-11-09 at 10 16 21 AM

Client Side

Desktop (please complete the following information):

Smartphone (please complete the following information):

Server Side

Additional context Add any other context about the problem here.

DiesalZA commented 1 year ago

Can confirm I have the same issue.

Client Side

Desktop:

OS: macOS 12.6.1 (Monterey) Browser: Safari Version: 16.1 (17614.2.9.1.13, 17614)

Server Side

OS: Red Hat Enterprise Linux 9.1 Cockpit Version: 276.1

alex-leathard commented 1 year ago

Hi @joshuaboud, I think the issue is the regex containing negative lookbehind used to tokenise slash-delimited records in, for example, /etc/shells: example.

Specifically, there's no support for negative lookbehind in Safari.

I see the logic of managing the escape character - is there a sensible alternative to using a negative lookbehind? There's no equivalent, but maybe you can suggest a workaround?

ncoppen commented 1 year ago

Also experiencing this issue.

Client Side

OS: macOS Ventura 13.2 Safari Version: 16.3 (18614.4.6.1.5)

Server Side

OS: Debian 11.6 Cockpit Version: 284.1