Bug 855278
Summary: | I'm getting jQuery error when adding command includes "??" into the sudo commands field in IPA web interface. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Petr Ruzicka <pruzicka> | ||||||
Component: | ipa | Assignee: | Rob Crittenden <rcritten> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Namita Soman <nsoman> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6.3 | CC: | dpal, mhomolov, mkosek, mvarun, nsoman, pvoborni | ||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | ipa-3.0.0-1.el6 | Doc Type: | Bug Fix | ||||||
Doc Text: |
Cause: Identity Management Web UI used an jQuery library raising errors when processing Directory Server records with some strings (e.g. SUDO commands with "??" string in its name).
Consequence: Web UI was not able to show, modify or add such records.
Fix: jQuery library was updated to newer version where the bug was fixed.
Result: Identity Management Web UI is no longer reporting errors for such strings and processes them correctly.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2013-02-21 09:19:32 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Hello. I can add the command through command line: # ipa sudocmd-add "echo '??' > /tmp/test" ------------------------------------------ Added Sudo Command "echo '??' > /tmp/test" ------------------------------------------ Sudo Command: echo '??' > /tmp/test -> but the web gui is still showing the jQuery error. Regards PetrR This is an error of bundled jquery library in IPA 2.2. Upstream version: FreeIPA 3.0 contains newer version so there isn't this problem. Updating to jquery-1-7-1.js fixes this problem but it introduces another in sshkey_widget so setting of ssh public keys stop working. Upstream ticket: https://fedorahosted.org/freeipa/ticket/3073 This is not a valid bug for 6.4, but proposing as hotfix for 6.3 Fixed upstream. ipa-2-2: 08e3fbb3b6c1c043feda6d72e50a8d35c482098c verified using ipa-server-3.0.0-22.el6.x86_64 Now we can add the following command into sudo command list:echo "??" > /tmp/test 1. Go to IPA WEB-GUI 2. Select Policy -> Sudo -> Sudo commands -> Add 3. Add sudo command: echo "??" > /tmp/test 4. Click add Created attachment 689144 [details]
jQuery error fixed
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0528.html |
Created attachment 610651 [details] Video showing the bug. *** Description of problem: I can't add the following command into sudo command list: echo "??" > /tmp/test *** Version-Release number of selected component (if applicable): ipa-server-2.2.0-16.el6.x86_64 *** How reproducible: See the steps below *** Steps to Reproduce: 1. Go to IPA WEB-GUI 2. Select Policy -> Sudo -> Sudo commands -> Add 3. Add sudo command: echo "??" > /tmp/test 4. Click add *** Actual results: Currently I'm getting error "jQuery15208158273949015573_1346241267446 was not called". *** Expected results: The command should be saved without any error. *** Additional info: I can see the other IPA forms has also problems with "??" (like adding sudo rules).