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

Retrieving Device Information appears to fail on Safari #2312

Closed
ibatten opened this issue Jan 15, 2019 · 12 comments
Closed

Retrieving Device Information appears to fail on Safari #2312

ibatten opened this issue Jan 15, 2019 · 12 comments
Labels
resolved A fixed issue

Comments

@ibatten
Copy link

ibatten commented Jan 15, 2019

Adding or editing a device in Safari (12.0.3 on MacOS 10.14.3 Beta, but this has been true for some months), Cacti 1.1.37, spins on "Contacting Device".

Error displayed in console seems to be "Error: Syntax error, unrecognized expression: #snmp_auth_protocol option[value="[None]"", but that may be unrelated.

Works correctly on Chrome 72.0.3626.53.

@cigamit
Copy link
Member

cigamit commented Jan 16, 2019

That's been resolved already. Likely you can grab the layout.js from the 1.1.38 release. Don't pull it from 1.2 or develop though.

@cigamit cigamit added the resolved A fixed issue label Jan 16, 2019
@ibatten
Copy link
Author

ibatten commented Jan 16, 2019 via email

@ibatten
Copy link
Author

ibatten commented Jan 16, 2019 via email

@cigamit
Copy link
Member

cigamit commented Jan 17, 2019

This has to be a bug in safari. I have reviewed all instances of that string, and they are syntactically correct. We've seen this issue in the past where the various browsers have problems with some special characters like the '[]' characters inside of a string. That is my guess in this case. The JavaScript interpreter is jacked.

Can you search out on the Safari 'public' site for bugs along this line?

Also, please provide the line number in layout.js that is erroring.

@netniV
Copy link
Member

netniV commented Jan 18, 2019

On Safari Version 12.0.2 (13606.3.4.1.4), this functionality is working perfectly fine. This is more likely a device issue than a browser issue.

@ibatten
Copy link
Author

ibatten commented Jan 18, 2019 via email

@netniV
Copy link
Member

netniV commented Jan 18, 2019

I have tested this on iOS under Chrome and Safari - both worked fine. So, this is either a device or server issue. I assume that your server isn't mangling the mime-type of the javascript files?

What OS/Web server versions are you running?

@ibatten
Copy link
Author

ibatten commented Jan 18, 2019 via email

@netniV
Copy link
Member

netniV commented Jan 18, 2019

Hmm looking over your initial post again, I noticed that you are getting an error with snmp auth fields. What settings are your devices using? Aside from community and passwords.

@netniV netniV removed the resolved A fixed issue label Jan 20, 2019
@ibatten
Copy link
Author

ibatten commented Jan 24, 2019 via email

cigamit added a commit that referenced this issue Jan 26, 2019
Chrome completes "Contacting Device", Safari Doesn't
@cigamit
Copy link
Member

cigamit commented Jan 26, 2019

This should be resolved in the develop branch now.

@cigamit cigamit added the resolved A fixed issue label Jan 26, 2019
@cigamit cigamit closed this as completed Feb 9, 2019
@netniV netniV changed the title Chrome completes "Contacting Device", Safari Doesn't. Retrieving Device Information appears to fail on Safari Feb 24, 2019
@ibatten
Copy link
Author

ibatten commented Aug 21, 2019

For what it's worth, I've found the trigger and why it was hard to reproduce. With php-snmp disabled, saving a new or edited device spins in the Safari GUI when the mechanism is tcp: or tcp6: with SNMPv3, but works correctly with udp: or udp6: on SNMPv2. Which is weird beyond words.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

3 participants