minio / console

Simple UI for MinIO Object Storage :abacus:
https://min.io/docs/minio/linux/index.html
GNU Affero General Public License v3.0
835 stars 275 forks source link

Console Front-End shows current directory name a child #1259

Closed karlludwigweise closed 2 years ago

karlludwigweise commented 2 years ago

Expected Behavior

The Front-End Console should not show a directory as a child of itself.

Current Behavior

In RELEASE.2021-11-24T23-19-33Z and some versions before that, the directory a user has opened is also part of it's children (cannot be opened).

Possible Solution

Do not display directory inside itself.

Steps to Reproduce (for bugs)

  1. Open Console Front-End
  2. Login
  3. Open a bucket with directories inside
  4. Open a directory
  5. See that 1st child item is directory name itself

Context

I try to give other access and not be confused ;)

Your Environment

Version RELEASE.2021-11-24T23-19-33Z

harshavardhana commented 2 years ago

Console issue moving to relevant repo @karlludwigweise

karlludwigweise commented 2 years ago

I can‘t find it in that repo. Should it be copied manually?

bexsoft commented 2 years ago

Hi @karlludwigweise!

I'm trying to reproduce the issue but unfortunately I wasn't able to get the same result, In this case, would you please tell us more information about your configuration?:

Screen Shot 2021-11-29 at 20 47 21 Screen Shot 2021-11-29 at 20 47 12
karlludwigweise commented 2 years ago

Hey @bexsoft,

this is a screenshot of the actual issue:

Bildschirmfoto 2021-12-01 um 19 01 12

As for your questions:

The bucket also has a quota, but that should not be the issue. I think maybe the distributed mode is an issue.

When I look at the front-end request that fetches the data from /api/v1/buckets/{bucket-name}/objects?prefix={hash} the directory that should not be shown is part of the response.

dvaldivia commented 2 years ago

@karlludwigweise are you running the console on standalone mode?

dvaldivia commented 2 years ago

Cannot replicate, are you sure it's not some software creating a .sync folder inside that .sync folder? can you navigate to it?

Screen Shot 2021-12-01 at 10 39 03 AM
karlludwigweise commented 2 years ago

I just used the .sync directory for the screenshot to not spoil my metadata over the open internet. The issue occurs on any directory.

I can't really test which version this was introduced in, because there is no going back from my current version.

I'm not running it in standalone mode. There are four servers.

karlludwigweise commented 2 years ago

And most importantly I cannot navigate to the ghost directory. The front-end is not even sending a request out.

bexsoft commented 2 years ago

Hi @karlludwigweise,

Doing some reviews, there was an issue with Rewind functionality quite similar to this issue, this is being fixed in https://github.com/minio/console/pull/1297#pullrequestreview-825884919

Are you using rewind to navigate through the folders?

karlludwigweise commented 2 years ago

@bexsoft this sounds a lot like it, but I am not using rewind/versioning.

bexsoft commented 2 years ago

@karlludwigweise Yesterday we released new versions for MinIO & console, Would you please help us to check if issue is still present in the latest version?

Thank you!

karlludwigweise commented 2 years ago

@bexsoft I just updated. This issue is fixed for newly created directories. Great! :) But, it persists for already created directories. Is there a way to re-inizialize those?