all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup 1/1] fix: s3: make s3_refresh apihandler sync
@ 2026-01-05 10:34 Nicolas Frey
  2026-01-05 15:22 ` Samuel Rufinatscha
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nicolas Frey @ 2026-01-05 10:34 UTC (permalink / raw)
  To: pbs-devel

fixes regression from 524cf1e that made `datastore::s3_refresh` sync
but did not change the ApiHandler matching part here

This would result in a panic every time an s3-refresh was initiated

Fixes: https://forum.proxmox.com/threads/178655
Signed-off-by: Nicolas Frey <n.frey@proxmox.com>
---
 src/bin/proxmox_backup_manager/datastore.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/proxmox_backup_manager/datastore.rs b/src/bin/proxmox_backup_manager/datastore.rs
index 57b4ca29..5c65c5ec 100644
--- a/src/bin/proxmox_backup_manager/datastore.rs
+++ b/src/bin/proxmox_backup_manager/datastore.rs
@@ -339,7 +339,7 @@ async fn s3_refresh(mut param: Value, rpcenv: &mut dyn RpcEnvironment) -> Result
 
     let info = &api2::admin::datastore::API_METHOD_S3_REFRESH;
     let result = match info.handler {
-        ApiHandler::Async(handler) => (handler)(param, info, rpcenv).await?,
+        ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?,
         _ => unreachable!(),
     };
 
-- 
2.47.3


_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pbs-devel] [PATCH proxmox-backup 1/1] fix: s3: make s3_refresh apihandler sync
  2026-01-05 10:34 [pbs-devel] [PATCH proxmox-backup 1/1] fix: s3: make s3_refresh apihandler sync Nicolas Frey
@ 2026-01-05 15:22 ` Samuel Rufinatscha
  2026-01-07 11:37 ` Christian Ebner
  2026-01-07 12:47 ` [pbs-devel] superseded: " Nicolas Frey
  2 siblings, 0 replies; 4+ messages in thread
From: Samuel Rufinatscha @ 2026-01-05 15:22 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Nicolas Frey

Thanks, this makes sense - the ApiHandler mismatch explains the panic.

Reviewed-by: Samuel Rufinatscha <s.rufinatscha@proxmox.com>

On 1/5/26 11:34 AM, Nicolas Frey wrote:
> fixes regression from 524cf1e that made `datastore::s3_refresh` sync
> but did not change the ApiHandler matching part here
> 
> This would result in a panic every time an s3-refresh was initiated
> 
> Fixes: https://forum.proxmox.com/threads/178655
> Signed-off-by: Nicolas Frey <n.frey@proxmox.com>
> ---
>   src/bin/proxmox_backup_manager/datastore.rs | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/bin/proxmox_backup_manager/datastore.rs b/src/bin/proxmox_backup_manager/datastore.rs
> index 57b4ca29..5c65c5ec 100644
> --- a/src/bin/proxmox_backup_manager/datastore.rs
> +++ b/src/bin/proxmox_backup_manager/datastore.rs
> @@ -339,7 +339,7 @@ async fn s3_refresh(mut param: Value, rpcenv: &mut dyn RpcEnvironment) -> Result
>   
>       let info = &api2::admin::datastore::API_METHOD_S3_REFRESH;
>       let result = match info.handler {
> -        ApiHandler::Async(handler) => (handler)(param, info, rpcenv).await?,
> +        ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?,
>           _ => unreachable!(),
>       };
>   



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pbs-devel] [PATCH proxmox-backup 1/1] fix: s3: make s3_refresh apihandler sync
  2026-01-05 10:34 [pbs-devel] [PATCH proxmox-backup 1/1] fix: s3: make s3_refresh apihandler sync Nicolas Frey
  2026-01-05 15:22 ` Samuel Rufinatscha
@ 2026-01-07 11:37 ` Christian Ebner
  2026-01-07 12:47 ` [pbs-devel] superseded: " Nicolas Frey
  2 siblings, 0 replies; 4+ messages in thread
From: Christian Ebner @ 2026-01-07 11:37 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Nicolas Frey

Patch looks good to me and restores the correct behavior of the cli command.

On 1/5/26 11:34 AM, Nicolas Frey wrote:
> fixes regression from 524cf1e that made `datastore::s3_refresh` sync
> but did not change the ApiHandler matching part here
> 
> This would result in a panic every time an s3-refresh was initiated
> 
> Fixes: https://forum.proxmox.com/threads/178655

Might reference the blamed commit in a fixes trailer as well for easier 
lookup and search:

Fixes: 524cf1e7 ("api: admin: make s3 refresh handler sync")

> Signed-off-by: Nicolas Frey <n.frey@proxmox.com>
> ---
>   src/bin/proxmox_backup_manager/datastore.rs | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/bin/proxmox_backup_manager/datastore.rs b/src/bin/proxmox_backup_manager/datastore.rs
> index 57b4ca29..5c65c5ec 100644
> --- a/src/bin/proxmox_backup_manager/datastore.rs
> +++ b/src/bin/proxmox_backup_manager/datastore.rs
> @@ -339,7 +339,7 @@ async fn s3_refresh(mut param: Value, rpcenv: &mut dyn RpcEnvironment) -> Result
>   
>       let info = &api2::admin::datastore::API_METHOD_S3_REFRESH;
>       let result = match info.handler {
> -        ApiHandler::Async(handler) => (handler)(param, info, rpcenv).await?,
> +        ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?,
>           _ => unreachable!(),
>       };
>   

Reviewed-by: Christian Ebner <c.ebner@proxmox.com>
Tested-by: Christian Ebner <c.ebner@proxmox.com>


_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pbs-devel] superseded: [PATCH proxmox-backup 1/1] fix: s3: make s3_refresh apihandler sync
  2026-01-05 10:34 [pbs-devel] [PATCH proxmox-backup 1/1] fix: s3: make s3_refresh apihandler sync Nicolas Frey
  2026-01-05 15:22 ` Samuel Rufinatscha
  2026-01-07 11:37 ` Christian Ebner
@ 2026-01-07 12:47 ` Nicolas Frey
  2 siblings, 0 replies; 4+ messages in thread
From: Nicolas Frey @ 2026-01-07 12:47 UTC (permalink / raw)
  To: pbs-devel

Superseded-by: https://lore.proxmox.com/pbs-devel/20260107124604.159625-1-n.frey@proxmox.com/T/#u

On 1/5/26 11:34 AM, Nicolas Frey wrote:
> fixes regression from 524cf1e that made `datastore::s3_refresh` sync
> but did not change the ApiHandler matching part here
> 
> This would result in a panic every time an s3-refresh was initiated
> 
> Fixes: https://forum.proxmox.com/threads/178655
> Signed-off-by: Nicolas Frey <n.frey@proxmox.com>
> ---
>  src/bin/proxmox_backup_manager/datastore.rs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/bin/proxmox_backup_manager/datastore.rs b/src/bin/proxmox_backup_manager/datastore.rs
> index 57b4ca29..5c65c5ec 100644
> --- a/src/bin/proxmox_backup_manager/datastore.rs
> +++ b/src/bin/proxmox_backup_manager/datastore.rs
> @@ -339,7 +339,7 @@ async fn s3_refresh(mut param: Value, rpcenv: &mut dyn RpcEnvironment) -> Result
>  
>      let info = &api2::admin::datastore::API_METHOD_S3_REFRESH;
>      let result = match info.handler {
> -        ApiHandler::Async(handler) => (handler)(param, info, rpcenv).await?,
> +        ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?,
>          _ => unreachable!(),
>      };
>  



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-01-07 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-05 10:34 [pbs-devel] [PATCH proxmox-backup 1/1] fix: s3: make s3_refresh apihandler sync Nicolas Frey
2026-01-05 15:22 ` Samuel Rufinatscha
2026-01-07 11:37 ` Christian Ebner
2026-01-07 12:47 ` [pbs-devel] superseded: " Nicolas Frey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal