Commit Graph

90 Commits

Author SHA1 Message Date
Michael Klishin 968eefa1bb
Bump (c) line year
There are no functional changes to this massive diff.
2025-01-01 17:54:10 -05:00
Michael Klishin 01092ff31f
(c) year bumps 2024-01-01 22:02:20 -05:00
Michael Klishin 1b642353ca
Update (c) according to [1]
1. https://investors.broadcom.com/news-releases/news-release-details/broadcom-and-vmware-intend-close-transaction-november-22-2023
2023-11-21 23:18:22 -05:00
Michael Klishin ec4f1dba7d
(c) year bump: 2022 => 2023 2023-01-01 23:17:36 -05:00
Rin Kuryloski bef2756b5f Fixes for various dialyzer warnings 2022-12-02 09:14:08 +01:00
Luke Bakken 7fe159edef
Yolo-replace format strings
Replaces `~s` and `~p` with their unicode-friendly counterparts.

```
git ls-files *.erl | xargs sed -i.ORIG -e s/~s>/~ts/g -e s/~p>/~tp/g
```
2022-10-10 10:32:03 +04:00
Michal Kuratczyk 2855278034
Migrate from supervisor2 to supervisor 2022-09-27 13:53:06 +02:00
Michael Klishin c38a3d697d
Bump (c) year 2022-03-21 01:21:56 +04:00
Luke Bakken 455c01fccf
Update some logging timestamps
Uses the same format as the OTP logger

Fixes #4276
2022-03-15 12:40:44 -07:00
Luke Bakken 7f0285834e
Fix all uses of file:read_file/1
This is to address another memory leak on win32 reported here:

https://groups.google.com/g/rabbitmq-users/c/UE-wxXerJl8

"RabbitMQ constant memory increase (binary_alloc) in idle state"

The root cause is the Prometheus plugin making repeated calls to `rabbit_misc:otp_version/0` which then calls `file:read_file/1` and leaks memory on win32.

See https://github.com/erlang/otp/issues/5527 for the report to the Erlang team.

Turn `badmatch` into actual error
2022-01-03 11:33:36 -08:00
Michael Klishin 040f8cc912
Replace a few more leftover MPLv1.1 license headers
Most files have been using the MPLv2 headers for months now.
These were detected by the OSL process.
2021-05-19 21:20:47 +03:00
Michael Klishin 97ff62d3b2
Drop trailing newlines from logged messages where possible
Lager strips trailing newline characters but OTP logger with the default
formatter adds a newline at the end. To avoid unintentional multi-line log
messages we have to revisit most messages logged.

Some log entries are intentionally multiline, others
are printed to stdout directly: newlines are required there
for sensible formatting.
2021-03-11 15:17:37 +01:00
Michael Klishin 52479099ec
Bump (c) year 2021-01-22 09:00:14 +03:00
Michael Klishin ff7b21cd0b Switch to MPL2 2020-07-15 02:46:53 +03:00
Jean-Sébastien Pédron 946bf7e87a Update copyright (year 2020) 2020-03-10 16:59:50 +01:00
Michael Klishin 6586f1dec3 (c) bump 2019-12-29 05:50:37 +03:00
Luke Bakken cdb8037e16 Catch error when getting trace file info
On win32 systems, deleting a trace file from out under RabbitMQ will lead to subsequent `{error, eacces}` errors.

Fixes #31
2019-10-17 14:40:52 -07:00
Spring Operator 882d53eb54 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated:
   ([https](https://blog.listincomprehension.com/search/label/procket) result ClosedChannelException).
* http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/TOML) result SSLHandshakeException).
* http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/subproc) result SSLHandshakeException).
* http://e2project.org (200) with 1 occurrences could not be migrated:
   ([https](https://e2project.org) result AnnotatedConnectException).
* http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated:
   ([https](https://nitrogenproject.com/) result ConnectTimeoutException).
* http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated:
   ([https](https://proper.softlab.ntua.gr) result SSLHandshakeException).
* http://yaws.hyber.org (200) with 1 occurrences could not be migrated:
   ([https](https://yaws.hyber.org) result AnnotatedConnectException).
* http://choven.ca (503) with 1 occurrences could not be migrated:
   ([https](https://choven.ca) result ConnectTimeoutException).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://fixprotocol.org/ (301) with 1 occurrences migrated to:
  https://fixtrading.org ([https](https://fixprotocol.org/) result SSLHandshakeException).
* http://erldb.org (UnknownHostException) with 1 occurrences migrated to:
  https://erldb.org ([https](https://erldb.org) result UnknownHostException).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://cloudi.org/ with 27 occurrences migrated to:
  https://cloudi.org/ ([https](https://cloudi.org/) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
  https://erlware.org/ ([https](https://erlware.org/) result 200).
* http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to:
  https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
  https://ninenines.eu ([https](https://ninenines.eu) result 200).
* http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
  https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) result 200).
* http://www.actordb.com/ with 2 occurrences migrated to:
  https://www.actordb.com/ ([https](https://www.actordb.com/) result 200).
* http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to:
  https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html) result 200).
* http://www.rabbitmq.com/firehose.html with 1 occurrences migrated to:
  https://www.rabbitmq.com/firehose.html ([https](https://www.rabbitmq.com/firehose.html) result 200).
* http://www.rabbitmq.com/management.html with 1 occurrences migrated to:
  https://www.rabbitmq.com/management.html ([https](https://www.rabbitmq.com/management.html) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
  https://www.rebar3.org ([https](https://www.rebar3.org) result 200).
* http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* http://inaka.github.com/apns4erl with 1 occurrences migrated to:
  https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl) result 301).
* http://inaka.github.com/edis/ with 1 occurrences migrated to:
  https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/) result 301).
* http://lasp-lang.org/ with 1 occurrences migrated to:
  https://lasp-lang.org/ ([https](https://lasp-lang.org/) result 301).
* http://saleyn.github.com/erlexec with 1 occurrences migrated to:
  https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec) result 301).
* http://www.mozilla.org/MPL/ with 12 occurrences migrated to:
  https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/) result 301).
* http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to:
  https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli) result 301).

# Ignored
These URLs were intentionally ignored.

* http://localhost:15672/api/traces/%2f/my-trace with 1 occurrences
* http://localhost:~w/api with 1 occurrences
2019-03-20 03:24:41 -05:00
Diana Corbacho f8dc1cdf49 Filter out option username and password
Defaults to "" if not specified
[#157481542]
2018-07-30 08:54:21 +01:00
Michael Klishin 84be32f5dc Naming
[#157481542]
2018-07-30 04:16:04 +03:00
Michael Klishin 49c9e6efa8 Merge branch 'master' into consumer-user-pass-api
Conflicts:
	README.md
2018-07-30 03:43:33 +03:00
Michael Klishin 47d2dc3b03 /n/ => /node/ in routes
[#157481542]
2018-07-30 02:05:25 +03:00
Diana Corbacho c06616b5fc Provide consumer username and password in HTTP api
Allows configuration from UI. Overrides default value and rabbitmq
config value.
[#157481542]
2018-07-26 16:29:29 +01:00
Diana Corbacho 608d67c97e Prefix HTTP api calls with node with '/n/' to distinguish from the others
[#157481542]
2018-07-26 16:18:35 +01:00
Diana Corbacho f67b238543 Include node in HTTP API and UI
Allows for cluster management from a single node and management
interface behind a load balancer

[#157481542]
2018-07-26 10:01:18 +01:00
Daniil Fedotov cec512073a Support cowboy2 2017-10-23 10:39:49 +01:00
Jean-Sébastien Pédron 9d71a268a4 Merge branch 'stable' 2017-05-04 15:09:14 +02:00
Jean-Sébastien Pédron 145fd8df6d rabbit_tracing_wm_trace: Update rabbit_mgmt_util:with_decode() usage
The function taken by this API takes a third argument which is ReqData.
See commit 07c28e8c85721cd0f7284f54cb66493ad7a37dce in
rabbitmq-management.

References rabbitmq/rabbitmq-management#377.
2017-05-04 14:45:37 +02:00
Michael Klishin eb1fde4baa Merge branch 'stable' 2017-04-02 22:04:15 +03:00
Michael Klishin d80da0f2c0 (c) year 2017-04-02 21:49:49 +03:00
Jean-Sébastien Pédron 17a9fc4642 Merge branch 'stable' 2016-12-07 16:06:34 +01:00
Jean-Sébastien Pédron 36921c26cf Move from .app.src to Makefile variables
This is the recommended way with Erlang.mk.

By default, the version is inherited from rabbitmq-server-release when
the source archive is created, or computed from git-describe(1) (see
`rabbitmq-components.mk`). One can override the version from the command
line by setting the `PROJECT_VERSION` variable.

[#130992027]
2016-12-06 16:54:51 +01:00
Michael Klishin 3199a31cc7 Merge branch 'stable' 2016-12-01 16:07:48 +03:00
Michael Klishin 39401ff3f7 Use rabbit_mgmt_records.hrl from the agent 2016-12-01 16:07:10 +03:00
Loïc Hoguin 159f2c595a Convert to Cowboy REST
(cherry picked from commit da70f42d91f87497d89ee24983229b0cdbd86c3f)
2016-11-30 15:43:49 +03:00
Loïc Hoguin 3ce31f3da1 Rename mochiweb_util to avoid conflicts 2016-11-24 16:30:22 +01:00
Loïc Hoguin d07549e700 Switch JSON library to JSX 2016-11-08 14:24:06 +02:00
Michael Klishin 8a582f7deb Revert "Switch stable to Cowboy" 2016-10-07 09:13:20 +03:00
Jean-Sébastien Pédron 2575a2ff27 Merge branch 'stable' 2016-09-23 16:30:58 +02:00
Michael Klishin 6fc77fa3ef Merge branch 'stable' into rabbitmq-management-236
Conflicts:
    Makefile
2016-09-20 13:50:28 +03:00
Jean-Sébastien Pédron 4e83d31efc rabbitmq_tracing.app: Depend on rabbit_common 2016-09-20 12:42:54 +02:00
Loïc Hoguin ccf554bdee Convert to Cowboy REST
(cherry picked from commit da70f42d91f87497d89ee24983229b0cdbd86c3f)
2016-09-20 12:22:43 +02:00
Daniil Fedotov 8a304b66b6 Merge branch 'stable' 2016-06-17 14:16:47 +01:00
Daniil Fedotov 4355fff973 Set bounded timeout for OTP workers 2016-06-16 13:12:03 +01:00
Daniil Fedotov efd1e929ef Bump required erlang version to 18.3 2016-05-12 10:21:25 +01:00
Daniil Fedotov 4a285f40f0 Stub for broker_version_requirements 2016-04-22 14:42:18 +01:00
Loïc Hoguin 493d90b1e5 Convert to Cowboy REST 2016-01-18 12:22:17 +01:00
Michael Klishin b9c8f43c86 Update (c) info 2016-01-01 12:59:19 +03:00
Michael Klishin a1d5fd36a8 Switch to rabbit_data_coercion:to_binary/1 [from rabbit_common] 2015-12-10 15:02:16 +03:00
Michael Klishin 9c2931cf78 Make credentials configurable
Alternatively we could try reusing management credentials; however,
management UI is undergoing major changes and now is not a good time.
2015-12-08 12:48:39 +03:00