Skip to content

fix(core): Fix MediaUtils parse path extension#981

Merged
LearningGp merged 9 commits intoagentscope-ai:mainfrom
guanxuc:fix-MediaUtils-977
Mar 27, 2026
Merged

fix(core): Fix MediaUtils parse path extension#981
LearningGp merged 9 commits intoagentscope-ai:mainfrom
guanxuc:fix-MediaUtils-977

Conversation

@guanxuc
Copy link
Copy Markdown
Contributor

@guanxuc guanxuc commented Mar 16, 2026

AgentScope-Java Version

1.0.11

Description

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with mvn spotless:apply
  • All tests are passing (mvn test)
  • Javadoc comments are complete and follow project conventions
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LearningGp LearningGp requested a review from Copilot March 24, 2026 07:07
@guanxuc guanxuc force-pushed the fix-MediaUtils-977 branch from ffa1c12 to 02b8a2d Compare March 24, 2026 13:50
@guanxuc guanxuc requested review from a team and LearningGp March 24, 2026 13:50
@guanxuc
Copy link
Copy Markdown
Contributor Author

guanxuc commented Mar 24, 2026

@LearningGp Thanks for your review and good suggestion! I have fixed the code by strip the path.

@guanxuc guanxuc force-pushed the fix-MediaUtils-977 branch from 02b8a2d to 6ab3ac4 Compare March 26, 2026 03:23
@guanxuc guanxuc requested a review from LearningGp March 26, 2026 03:25
@guanxuc guanxuc marked this pull request as draft March 26, 2026 04:30
@guanxuc guanxuc marked this pull request as ready for review March 26, 2026 05:59
@guanxuc
Copy link
Copy Markdown
Contributor Author

guanxuc commented Mar 26, 2026

@LearningGp I have changed the parse code logic. Use java.net.URI to parse url path and use java.nio.file.Path to parse file path, I think that will be better, PTAL.

@guanxuc guanxuc force-pushed the fix-MediaUtils-977 branch from ff3076e to 80ece24 Compare March 27, 2026 06:43
@guanxuc guanxuc requested a review from LearningGp March 27, 2026 06:44
@guanxuc
Copy link
Copy Markdown
Contributor Author

guanxuc commented Mar 27, 2026

@LearningGp Thanks for your review, I've cleaned up the code completely.

@guanxuc guanxuc force-pushed the fix-MediaUtils-977 branch from 80ece24 to 6800fc0 Compare March 27, 2026 07:55
@guanxuc guanxuc requested a review from LearningGp March 27, 2026 07:58
Copy link
Copy Markdown
Collaborator

@LearningGp LearningGp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LearningGp LearningGp merged commit fe95394 into agentscope-ai:main Mar 27, 2026
6 checks passed
@guanxuc guanxuc deleted the fix-MediaUtils-977 branch March 27, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]:MediaUtils.getExtension() 的实现 bug

2 participants