Skip to content

azureml-mlflow 'log_artifact' throws a ClientAuthenticationError if the upload directory is malformed #40514

@ocramz-mhc

Description

@ocramz-mhc
  • Package Name: azureml-mlflow azure-ai-ml
  • Package Version: azureml-mlflow==1.60.0 , azure-ai-ml==1.26.2
  • Operating System: Linux
  • Python Version: 3.10

Describe the bug

The MLFlow client exposed by azureml-mlflow throws an authentication exception when uploading an artifact to a MLFlow run, if the upload directory (artifact_path) is malformed (e.g. it is the '.' path ).

I suspect the exception is thrown by the underlying object storage SDK, but the AzureML sdk frontend should do some input validation IMO.

To Reproduce

from mlflow import log_artifact

log_artifact(local_path = 'whatever.jpg', 
      artifact_path = '.')

Expected behavior
The client should say that the upload directory is malformed/unexpected, rather than throwing an authentication exception.

Add some client-side input validation, please.

Screenshots

Image

Metadata

Metadata

Labels

Machine LearningService AttentionWorkflow: This issue is responsible by Azure service team.azureml-mlflowcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.needs-author-feedbackWorkflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions