Bug 1439796

Summary: Cannot create new user group in Internet Explorer
Product: Red Hat Satellite Reporter: Jiri Vavra <jivavra>
Component: WebUIAssignee: satellite6-bugs <satellite6-bugs>
WebUI sub component: Foreman QA Contact: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aruzicka, bbuckingham, dconsoli, jcallaha, mhulan, sgraessl, tbrisker
Version: 6.2.6Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 1335839    

Description Jiri Vavra 2017-04-06 14:26:38 UTC
Description of problem:
Cannot create new user group in Internet Explorer 11, after submitting user gets Internal Server Error

Version-Release number of selected component (if applicable):
Satellite 6.2

How reproducible:
100%

Steps to Reproduce:
1. Go to WebUI -> Administer -> User Groups > New User Group 
2. Fill some User Group name and Submit
3. Get Internal Server Error

Actual results:
Internal Server Error

Expected results:
New User Group created

Additional info:
Nothing in production.log
Errors in /var/log/https

~~~
==> error_log <==
[ 2017-04-06 16:22:56.4043 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] [ 2017-04-06 16:22:56.4042 30450/0x00000006375ea0(Worker 1) utils.rb:74 ]: *** Exception EOFError in Rack application object (bad content body) (process 30450, thread 0x00000006375ea0(Worker 1)):
[ 2017-04-06 16:22:56.4043 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/multipart/parser.rb:117:in `get_current_head_and_filename_and_content_type_and_name_and_body'
[ 2017-04-06 16:22:56.4043 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/multipart/parser.rb:19:in `block in parse'
[ 2017-04-06 16:22:56.4043 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/multipart/parser.rb:17:in `loop'
[ 2017-04-06 16:22:56.4043 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/multipart/parser.rb:17:in `parse'
[ 2017-04-06 16:22:56.4043 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/multipart.rb:25:in `parse_multipart'
[ 2017-04-06 16:22:56.4043 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/request.rb:377:in `parse_multipart'
[ 2017-04-06 16:22:56.4044 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/request.rb:203:in `POST'
[ 2017-04-06 16:22:56.4044 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/methodoverride.rb:26:in `method_override'
[ 2017-04-06 16:22:56.4044 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/methodoverride.rb:14:in `call'
[ 2017-04-06 16:22:56.4044 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
[ 2017-04-06 16:22:56.4044 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
[ 2017-04-06 16:22:56.4044 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_dispatch/middleware/static.rb:64:in `call'
[ 2017-04-06 16:22:56.4044 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/actionpack-4.1.5/lib/action_dispatch/middleware/static.rb:64:in `call'
[ 2017-04-06 16:22:56.4044 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
[ 2017-04-06 16:22:56.4045 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/engine.rb:514:in `call'
[ 2017-04-06 16:22:56.4045 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/application.rb:144:in `call'
[ 2017-04-06 16:22:56.4045 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `public_send'
[ 2017-04-06 16:22:56.4045 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/railties-4.1.5/lib/rails/railtie.rb:194:in `method_missing'
[ 2017-04-06 16:22:56.4046 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
[ 2017-04-06 16:22:56.4046 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
[ 2017-04-06 16:22:56.4046 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
[ 2017-04-06 16:22:56.4046 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/rh/rh-ror41/root/usr/share/gems/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
[ 2017-04-06 16:22:56.4046 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
[ 2017-04-06 16:22:56.4046 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
[ 2017-04-06 16:22:56.4046 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
[ 2017-04-06 16:22:56.4047 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
[ 2017-04-06 16:22:56.4047 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
[ 2017-04-06 16:22:56.4047 30101/7f3d28c8a700 Pool2/Implementation.cpp:1274 ]: [App 30135 stderr] 	from /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'

==> foreman-ssl_error_ssl.log <==
[Thu Apr 06 16:22:56.404718 2017] [core:error] [pid 30118] [client 10.10.183.46:50782] End of script output before headers: usergroups, referer: https://10.34.85.150/usergroups

==> error_log <==

==> foreman-ssl_access_ssl.log <==
10.10.183.46 - - [06/Apr/2017:16:22:56 +0200] "POST /usergroups HTTP/1.1" 500 531 "https://10.34.85.150/usergroups" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
10.34.85.150 - admin [06/Apr/2017:16:22:57 +0200] "GET /pulp/api/v2/tasks/9fc72896-3f57-4ba3-95da-882ee023a855/ HTTP/1.1" 200 367 "-" "Ruby"
~~~

Comment 1 Tomer Brisker 2017-04-06 14:40:52 UTC
This is the same root cause as BZ1425094, BZ1422188 and BZ1335604. 
This can be worked around by opening the new usergroup link in a new tab (note this also applies to editing an existing one).

Comment 3 Adam Ruzicka 2017-08-23 08:59:03 UTC
Verified.
Version Tested: Satellite-6.3 Snap 12

Package versions:
satellite-6.3.0-16.0.beta.el7sat.noarch
foreman-1.15.3-1.el7sat.noarch

Pulled IE11 on Windows 7 VM image from modern.ie, created a user group and everything finished successfully

>> Usergroup create
==> /var/log/httpd/foreman-ssl_access_ssl.log <==
192.168.122.252 - - [23/Aug/2017:08:57:41 +0000] "POST /usergroups HTTP/1.1" 302 99 "https://192.168.122.74/usergroups/new" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko"
192.168.122.252 - - [23/Aug/2017:08:57:41 +0000] "GET /usergroups HTTP/1.1" 200 5620 "https://192.168.122.74/usergroups/new" "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko"

==> /var/log/foreman/production.log <==
2017-08-23 08:57:41 b2c465ce [app] [I] Started POST "/usergroups" for 192.168.122.252 at 2017-08-23 08:57:41 +0000
2017-08-23 08:57:41 b2c465ce [app] [I] Processing by UsergroupsController#create as HTML
2017-08-23 08:57:41 b2c465ce [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"lySINr4E2Cvhx69hFb472yGdKUB4BZp3+540AQzDHB96Xxlt2u+BYeFVj14EIHe7+jQZIqHbu4hnRjhH22C2Vg==", "usergroup"=>{"name"=>"some User Group name", "usergroup_ids"=>[""], "user_ids"=>[""], "admin"=>"0", "role_ids"=>[""]}, "commit"=>"Submit"}
2017-08-23 08:57:41 b2c465ce [app] [I] Current user: admin (administrator)
2017-08-23 08:57:41 b2c465ce [app] [I] Redirected to https://192.168.122.74/usergroups
2017-08-23 08:57:41 b2c465ce [app] [I] Completed 302 Found in 40ms (ActiveRecord: 15.6ms)
2017-08-23 08:57:41 bcc3e900 [app] [I] Started GET "/usergroups" for 192.168.122.252 at 2017-08-23 08:57:41 +0000
2017-08-23 08:57:41 bcc3e900 [app] [I] Processing by UsergroupsController#index as HTML
2017-08-23 08:57:41 bcc3e900 [app] [I] Current user: admin (administrator)
2017-08-23 08:57:41 bcc3e900 [app] [I]   Rendered usergroups/index.html.erb within layouts/application (16.8ms)
2017-08-23 08:57:41 bcc3e900 [app] [I]   Rendered common/_searchbar.html.erb (2.8ms)
2017-08-23 08:57:41 bcc3e900 [app] [I]   Rendered layouts/_application_content.html.erb (3.3ms)
2017-08-23 08:57:41 bcc3e900 [app] [I]   Rendered home/_submenu.html.erb (1.5ms)
2017-08-23 08:57:41 bcc3e900 [app] [I]   Rendered home/_user_dropdown.html.erb (1.4ms)
2017-08-23 08:57:41 bcc3e900 [app] [I] Read fragment views/tabs_and_title_records-3 (0.1ms)
2017-08-23 08:57:41 bcc3e900 [app] [I]   Rendered home/_topbar.html.erb (4.2ms)
2017-08-23 08:57:41 bcc3e900 [app] [I]   Rendered layouts/base.html.erb (5.6ms)
2017-08-23 08:57:41 bcc3e900 [app] [I] Completed 200 OK in 36ms (Views: 25.5ms | ActiveRecord: 3.5ms)

Comment 4 Bryan Kearney 2018-02-21 17:33:17 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.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 5 Bryan Kearney 2018-02-21 17:33:40 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.

https://access.redhat.com/errata/RHSA-2018:0336