From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 39E3D61A7F; Wed, 26 Jul 2023 14:50:15 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 2055C66D0; Wed, 26 Jul 2023 14:50:15 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS; Wed, 26 Jul 2023 14:50:14 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 33EB645BF7; Wed, 26 Jul 2023 14:50:14 +0200 (CEST) From: Lukas Wagner To: pve-devel@lists.proxmox.com, pbs-devel@lists.proxmox.com Date: Wed, 26 Jul 2023 14:50:01 +0200 Message-Id: <20230726125006.616124-1-l.wagner@proxmox.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.057 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [acme.rs, auth.rs, sendmail.rs, namespace.rs, ldap.rs, prune.rs, pull.rs, lib.rs, rest.rs, drive.rs, helpers.rs, changer.rs, openid.rs, gotify.rs, mod.rs, hierarchy.rs, verify.rs, common.rs, sync.rs, tfa.rs] Subject: [pbs-devel] [PATCH proxmox{, -perl-rs, -backup} 0/5] move `HttpError` from `proxmox-router` into its own crate X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jul 2023 12:50:15 -0000 This patch series moves `HttpError` from `proxmox-router` into its own little crate. The main benefit of this is that one can now use `HttpError` independently (e.g. for `proxmox-notify`) These patches also update the users of the old `HttpError` to the new version. `proxmox-notify`, which previously used it's own error type, is now also using the new crate. proxmox: Lukas Wagner (3): http-error: add new http-error crate router: rest-server: auth-api: use new http-error crate notify: use HttpError from proxmox-http-error Cargo.toml | 2 + proxmox-auth-api/Cargo.toml | 2 + proxmox-auth-api/src/api/access.rs | 3 +- proxmox-http-error/Cargo.toml | 16 ++++ proxmox-http-error/src/lib.rs | 81 +++++++++++++++++ proxmox-notify/Cargo.toml | 1 + proxmox-notify/src/api/common.rs | 33 ++++--- proxmox-notify/src/api/filter.rs | 59 ++++++------ proxmox-notify/src/api/gotify.rs | 85 ++++++++++-------- proxmox-notify/src/api/group.rs | 82 +++++++++-------- proxmox-notify/src/api/mod.rs | 130 ++++++++++----------------- proxmox-notify/src/api/sendmail.rs | 93 ++++++++++--------- proxmox-rest-server/Cargo.toml | 1 + proxmox-rest-server/src/h2service.rs | 2 +- proxmox-rest-server/src/rest.rs | 2 +- proxmox-router/Cargo.toml | 1 + proxmox-router/src/error.rs | 44 --------- proxmox-router/src/lib.rs | 7 +- 18 files changed, 340 insertions(+), 304 deletions(-) create mode 100644 proxmox-http-error/Cargo.toml create mode 100644 proxmox-http-error/src/lib.rs delete mode 100644 proxmox-router/src/error.rs proxmox-perl-rs: Lukas Wagner (1): notify: use new HttpError type common/src/notify.rs | 77 +++++++++++++++++++++++--------------------- pve-rs/Cargo.toml | 1 + 2 files changed, 42 insertions(+), 36 deletions(-) proxmox-backup: Lukas Wagner (1): use `HttpError` and macros from `proxmox-http-error` crate Cargo.toml | 3 +++ src/api2/access/openid.rs | 5 ++--- src/api2/access/tfa.rs | 3 ++- src/api2/admin/datastore.rs | 5 +++-- src/api2/admin/namespace.rs | 3 ++- src/api2/backup/mod.rs | 5 +++-- src/api2/config/access/ldap.rs | 3 ++- src/api2/config/access/openid.rs | 3 ++- src/api2/config/acme.rs | 5 ++--- src/api2/config/changer.rs | 3 ++- src/api2/config/datastore.rs | 3 ++- src/api2/config/drive.rs | 3 ++- src/api2/config/media_pool.rs | 3 ++- src/api2/config/prune.rs | 3 ++- src/api2/config/remote.rs | 3 ++- src/api2/config/sync.rs | 3 ++- src/api2/config/tape_backup_job.rs | 3 ++- src/api2/config/tape_encryption_keys.rs | 3 ++- src/api2/config/traffic_control.rs | 3 ++- src/api2/config/verify.rs | 3 ++- src/api2/helpers.rs | 2 +- src/api2/reader/mod.rs | 5 +++-- src/auth.rs | 2 +- src/backup/hierarchy.rs | 2 +- src/server/pull.rs | 4 ++-- 25 files changed, 51 insertions(+), 32 deletions(-) Summary over all repositories: 45 files changed, 433 insertions(+), 372 deletions(-) -- murpp v0.4.0