Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal server error when run Retention rule with scope contains / #20436

Closed
supakornbabe opened this issue May 16, 2024 · 1 comment
Closed
Assignees

Comments

@supakornbabe
Copy link

If you are reporting a problem, please make sure the following information are provided:

Expected behavior and actual behavior:
A clear and concise description of what you expected to happen and what's the actual behavior. If applicable, add screenshots to help explain your problem.

Screenshot 2567-05-16 at 12 22 14

Steps to reproduce the problem:
Please provide the steps to reproduce this problem.

Add a retention rules contain / with other rules. EX: a/b,c/d or a,b/c

Versions:
Please specify the versions of following systems.

  • harbor version: 2.5.6

Additional context:

  • Harbor config files: You can get them by packaging harbor.yml and files in the same directory, including subdirectory.
  • Log files: You can get them by package the /var/log/harbor/ .

As check it might be a bug from doubleStar package version 1.1.1 which fixed on version 1.3.4 already.

Screenshot 2567-05-16 at 12 35 23 Screenshot 2567-05-16 at 12 34 56

And i checked from https://github.com/goharbor/harbor/blame/main/src/go.mod#L13 its upgraded already
but on harbor latest release (https://github.com/goharbor/harbor/blame/v2.10.2/src/go.mod#L13) it still using the old version.

Is there any plan to release a new version which use the upgraded doubleStar package so we can test it out?

@zyyw
Copy link
Contributor

zyyw commented May 17, 2024

@supakornbabe thanks for report this issue. I do reproduce it. And two PRs are submitted to fix this in release-2.10.0 branch (will fix it in v2.10.3, to be released) and release-2.9.0 branch (will fix it in v2.9.5, to be released). You can also wait for our next minor release v2.11.0 (to be released).
This version v2.5.6 of Harbor is out of the support scope.

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

No branches or pull requests

3 participants