Actions
Bug #1753
closedShowing a modal from an AJAX request that returns a full-blown HTML page clears the page
Description
How to reproduce:
Edit a host, get a conflict: this displays an error info in a modal dialog.
Ack then overwrite: it should have shown another error info in a modal dialog too,
but instead of an HTML fragment, foreman gave a full HTML page (with html, head and body) as an answer to some AJAX query,
this has the nasty effect of clearing the page, only showing "2012".
Clue:
$.ajax({ [...], success: function(result) { # If result is an HTML fragment, everything is fine # if it is a full HTML page, this will somehow clear the page and show "2012"... $('#modal-frame-content').html(result); } });
This is a general problem that can arise with code like the above.
Updated by Ohad Levy over 12 years ago
can you provide the logs from foreman while doing the request?
Updated by Romain Vrignaud over 12 years ago
- Priority changed from High to Normal
Updated by Ohad Levy over 12 years ago
this seems to happen only when the response is 404.
and I'm guessing its related to when renaming a host.
Updated by Amos Benari over 12 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset 72da1d773df7ef9bc4c41e6650e871db0b7d0f2e.
Actions