Commit Graph

324 Commits

Author SHA1 Message Date
Michael Klishin 35eb988e33 Escape filter values
The values are not populated from request parameters but being
more defensive against potential injections wouldn't hurt.
2019-01-03 00:50:44 +03:00
Luke Bakken 29495a0098 Add sample retention policies to overview
Massage retention policy data sent to the UI

Use some math to determine what intervals have been set

Implement controlling the chart range popup via the available ranges
2018-12-13 14:12:20 -08:00
Diana Corbacho 4eea68cd0a Use argument x-queue-type to figure out the queue type 2018-11-22 08:38:43 +00:00
Diana Corbacho add3b059ce Add aux functions is_quorum/is_classic
[#161505176]
2018-11-09 12:02:48 +00:00
Diana Corbacho fdb9904084 Select only relevant options to declare a quorum queue
[#157150616]
2018-10-26 12:44:35 +01:00
Luke Bakken 0fbee6ba6e Ensure that login success clears a warn popup
If you enter invalid credentials and attempt login, you will see the warning popup show. Then, do not close it but log in with valid credentials. The popup remains. You can close it via the "Close" button but this change will remove the popup for you

Fixes #609, reported in rabbitmq/rabbitmq-server#1704
2018-09-19 07:02:31 -07:00
Luke Bakken 6f2ef27063 Formatting 2018-07-20 07:04:58 -07:00
Daniil Fedotov 7178373e75 Scroll to the page top when rendering a new template. 2018-07-20 10:55:20 +01:00
Michael Klishin 9e87cd6876 Switch management.login_session_timeout to minutes
Login session timeout in seconds doesn't really make sense.
2018-06-22 00:18:46 +03:00
Luke Bakken 7b77ee6d0e Update main.js
Add space between `if` and `(`
2018-06-21 07:39:04 -07:00
Daniil Fedotov 201fa7815e Make login session expiration configurable
Add new configuration parameter login_session_timeout.
Add login_session_timeout to whoami response.
Use it as an expiration timeout for auth cookie.

[#157940664]
2018-06-21 15:25:23 +01:00
Michael Klishin 1cbba5b87d Merge branch 'stable' 2017-11-27 23:22:11 +03:00
Luke Bakken efe42872bb Fix multiple event addition due to auto-refresh 2017-11-27 11:52:04 -08:00
Michael Klishin 107f712f0e Attach event handlers to multi-field forms correctly
Closes #511.

[#153179347]
2017-11-27 20:09:58 +03:00
Michael Klishin 25e2289044 Merge branch 'stable' 2017-11-07 07:06:06 +02:00
Luke Bakken 6c40a8e09b Ensure partial updates restore click handlers
The click handlers for certain elements are being cleared by the `postprocess_partial` function. This change ensures they are restored, but only on elements that are descendents of `.updatable`

Fixes #507
2017-11-06 15:20:51 -08:00
Daniil Fedotov 3d0fb2007f Merge branch 'stable' 2017-10-27 19:46:35 +01:00
Gerhard Lazu ee0d602821 Cosmetic change to debug messages
Prior to this change:

  Management API returned status code 502: 502 Bad Gateway: Registered endpoint failed to handle the request.

After this change:

  Management API returned status code 502 - 502 Bad Gateway: Registered endpoint failed to handle the request.
2017-10-27 11:39:56 +01:00
Michael Klishin 2b94e510cf Merge branch 'stable'
Conflicts:
	priv/www/css/main.css
	priv/www/js/main.js
2017-10-27 07:15:02 +03:00
Gerhard Lazu 9594dad140 Address jQuery HTML selector vulnerability + UI improvements
Selectors could be interpreted as HTML, as per jQuery bug #11290:
https://bugs.jquery.com/ticket/11290

Same as last time when jQuery was upgraded, did a few UI improvements.

[#152142103]
2017-10-26 17:34:34 +01:00
Michael Klishin e0efa5c1dc Merge branch 'stable'
Conflicts:
	priv/www/css/main.css
	priv/www/js/tmpl/paths.ejs
2017-10-19 01:07:34 +03:00
Gerhard Lazu e157238c80 Add no-op #/ route for Sammy.js, fixes 404 not found error 2017-10-13 18:21:01 +01:00
Michael Klishin 6e214de8fc Merge branch 'stable'
Conflicts:
	priv/www/css/main.css
	priv/www/js/formatters.js
	priv/www/js/global.js
2017-10-10 21:44:01 +01:00
Gerhard Lazu 584d9165ba Make links, buttons & abbr (former acronyms) stand out 2017-10-10 17:57:05 +01:00
Luke Bakken 47b70d8a8a Add TODO for queue limit validation
Validation code in place, how to display?

Take existing queue count into consideration

Server-side validation takes existing queue count into consideration. Improve error message sent back to web application.

Improve messaging, remove unused template

Take existing queues into account when importing definitions for all vhosts. Fix test suite.
2017-07-10 07:58:34 -07:00
Michael Klishin 96d24e09c3 Merge branch 'stable' 2017-06-21 02:01:38 +03:00
Luke Bakken 6d63eb7bc8 Escape queue filter input value when regex is used 2017-06-20 11:08:24 -07:00
Diana Corbacho bc76cff78c Manage topic permissions from the UI in user and vhost tabs
Added endpoint /topic-permissions/:vhost/:user/:exchange to
delete individual permissions

rabbitmq-management#405
[#146603709]
2017-06-05 19:20:29 +01:00
Michael Klishin be1b30f643 Merge branch 'stable' 2017-05-18 15:34:59 +01:00
Michael Klishin 1447c812c7 Wording (take 2, spotted by @dcorbacho) 2017-05-18 15:33:35 +01:00
Michael Klishin b4baf55c66 Wording 2017-05-18 15:22:50 +01:00
Diana Corbacho efedce7c99 Only submit import definitions if a file has been selected
rabbitmq-management#389
2017-05-17 23:47:00 +01:00
Diana Corbacho fc7f5183c7 Add confirm dialog to import definitions
rabbitma-management#389
2017-05-17 23:28:47 +01:00
Michael Klishin 2ecff64ca4 Merge branch 'stable' 2017-03-28 14:58:14 +03:00
Michael Klishin 7b016c80d5 Management UI: be more defensive
* Don't throw and give up when our "pre-pre-prehistoric virtual DOM"
   update isn't consistent, reaload instead

 * Coerce the input to a string in two formatting functions

 * In the same functions, catch nulls and undefined values early

This fixes a couple of relatively difficult to reproduce exceptions
caused by stats emission timing + DOM updates timing
that make the UI dysfunctional.
2017-03-28 14:40:08 +03:00
Michael Klishin b5c3a994bb Merge branch 'stable' 2017-03-27 15:18:15 +03:00
Michael Klishin 172ecfad1f Strip HTML tags from filter inputs
Since they are used to construct the markup of the updated form.

[#142393391]
2017-03-24 18:59:23 +03:00
Michael Klishin 1403a92f4c Merge branch 'stable'
Conflicts:
	src/rabbit_mgmt_wm_channel.erl
	src/rabbit_mgmt_wm_queue.erl
2017-03-23 22:51:55 +03:00
kjnilsson 6a7ec9fa94 Don't html escape all popup text
The popup is also used for displaying the help menu
and the column selection form.

[#142213453]
2017-03-23 12:43:42 +00:00
kjnilsson 979eb64917 Catch errors from message publish
When trying to publish a message with e.g. an invalid header
value type no error message is shown.

[#142213453]
2017-03-23 11:07:47 +00:00
kjnilsson d57161ba45 Html escape displayed messages.
Html escape error messages before returning from management
API. Also escape text before launching popup.

[#142213453]
2017-03-23 10:29:45 +00:00
Michael Klishin 7380fd69ec Merge branch 'stable' 2017-03-23 01:47:58 +03:00
Michael Klishin 7aebeb5651 Store authentication details in the cookie again
It was moved to local storage together with personal
preferences (e.g. what columns should be displayed in various
tables) in 8be18652f4 (3.4.0), very unlikely
by design.

This is a short term solution for session expiration. A proper
one would be moving to a token-based system such as OAuth 2.0.

[#142212963]
2017-03-22 15:44:21 +03:00
Michael Klishin 2d78a4d009 Merge branch 'stable' 2017-01-03 19:21:27 +08:00
Michael Klishin 728e7dafab Merge branch 'stable' into rabbitmq-management-159 2017-01-03 19:19:08 +08:00
Michael Klishin c756556b33 Merge branch 'stable' 2017-01-03 19:02:50 +08:00
Diana Corbacho bf43226bf4 Notify UI users of not authorised access 2017-01-03 11:40:00 +01:00
Michael Klishin b3c604fc02 Merge branch 'stable' 2017-01-03 17:24:51 +08:00
Diana Corbacho f6d07d887d Add lazy queue argument in queues and policies page 2017-01-03 08:49:36 +01:00
Diana Corbacho 4123cf3207 Make delete and purge confirmation messages more explicit 2016-12-30 16:52:13 +01:00