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: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.3CC: 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:
Description Flags
Video showing the bug.
none
jQuery error fixed none

Description Petr Ruzicka 2012-09-07 08:00:30 UTC
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).

Comment 2 Petr Ruzicka 2012-09-07 08:20:10 UTC
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

Comment 3 Petr Vobornik 2012-09-07 10:37:13 UTC
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.

Comment 6 Dmitri Pal 2012-09-11 15:36:08 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3073

Comment 8 Namita Soman 2012-09-13 18:17:12 UTC
This is not a valid bug for 6.4, but proposing as hotfix for 6.3

Comment 9 Petr Vobornik 2012-09-18 11:43:52 UTC
Fixed upstream.
ipa-2-2: 08e3fbb3b6c1c043feda6d72e50a8d35c482098c

Comment 11 Varun Mylaraiah 2013-01-28 17:25:14 UTC
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

Comment 12 Varun Mylaraiah 2013-01-28 17:26:08 UTC
Created attachment 689144 [details]
jQuery error fixed

Comment 14 errata-xmlrpc 2013-02-21 09:19:32 UTC
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