Project

General

Profile

Actions

Bug #5389

closed

URL doesn't update correctly after creating a new host

Added by Ohad Levy almost 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When creating a new host successfully, foreman redirects to the host show page, however, the url remains /hosts/new.

This seems to break the AJAX which updates the VM info.


Related issues 4 (2 open2 closed)

Related to Foreman - Bug #5065: pressing "Cancel Build"/"Build" button returns a 404 if the host has been just renamed.Assigned04/03/2014Actions
Related to Foreman - Feature #3592: Lazily load compute resource VM details through AJAX for performanceClosedAmos Benari11/06/2013Actions
Related to Foreman - Bug #5470: vm power state is not updating after, new host completion.ClosedAmos Benari04/28/2014Actions
Related to Foreman - Bug #4310: URL on host edit page after submitting changesNew02/10/2014Actions
Actions #1

Updated by Dominic Cleal almost 10 years ago

  • Related to Bug #5065: pressing "Cancel Build"/"Build" button returns a 404 if the host has been just renamed. added
Actions #2

Updated by Stephen Benjamin almost 10 years ago

I hit this now where the VM power controls aren't loading anymore due to this bug.

Ohad pointed out the relevant Javascript is here:

[22:06] < ohadlevy> Dominic: i dont think its hard to fix, its at 
                    https://github.com/theforeman/foreman/blob/develop/app/assets/javascripts/host_edit.js#L86

I poked it with a stick to see if I could get it to something. I'm not sure exactly what I'm doing with jQuery... it seems I need to return response.redirect so the javascript triggers a true redirect instead of loading the content into a div or whatever it's doing there.

Actions #3

Updated by Dominic Cleal almost 10 years ago

  • translation missing: en.field_release set to 4
Actions #4

Updated by Dominic Cleal almost 10 years ago

  • Related to Feature #3592: Lazily load compute resource VM details through AJAX for performance added
Actions #5

Updated by Dominic Cleal almost 10 years ago

  • Related to Bug #5470: vm power state is not updating after, new host completion. added
Actions #6

Updated by Dominic Cleal almost 10 years ago

  • translation missing: en.field_release deleted (4)

The AJAX part is being addressed via #5470.

Actions #7

Updated by Dominic Cleal almost 10 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Amos Benari
  • Target version set to 1.8.3
Actions #8

Updated by Dominic Cleal almost 10 years ago

  • translation missing: en.field_release set to 4
Actions #9

Updated by Dominic Cleal almost 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

This was merged as 5f58478b95ffd51eb41f53718e09c03a3613c827 with the wrong issue number.

Actions #10

Updated by Dominic Cleal almost 10 years ago

  • Related to Bug #4310: URL on host edit page after submitting changes added
Actions

Also available in: Atom PDF