Project

General

Profile

Bug #5389

URL doesn't update correctly after creating a new host

Added by Ohad Levy about 5 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
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

Related to Foreman - Bug #5065: pressing "Cancel Build"/"Build" button returns a 404 if the host has been just renamed.Assigned2014-04-03
Related to Foreman - Feature #3592: Lazily load compute resource VM details through AJAX for performanceClosed2013-11-06
Related to Foreman - Bug #5470: vm power state is not updating after, new host completion.Closed2014-04-28
Related to Foreman - Bug #4310: URL on host edit page after submitting changesNew2014-02-10

History

#1 Updated by Dominic Cleal about 5 years ago

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

#2 Updated by Stephen Benjamin about 5 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.

#3 Updated by Dominic Cleal almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 4

#4 Updated by Dominic Cleal almost 5 years ago

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

#5 Updated by Dominic Cleal almost 5 years ago

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

#6 Updated by Dominic Cleal almost 5 years ago

  • Legacy Backlogs Release (now unused) deleted (4)

The AJAX part is being addressed via #5470.

#7 Updated by Dominic Cleal almost 5 years ago

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

#8 Updated by Dominic Cleal almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 4

#9 Updated by Dominic Cleal almost 5 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.

#10 Updated by Dominic Cleal almost 5 years ago

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

Also available in: Atom PDF