panel icon indicating copy to clipboard operation
panel copied to clipboard

The ".." Bug

Open LunarcatOwO opened this issue 1 year ago β€’ 14 comments

Current Behavior

Allows me to create a .. folder and delete it. (causes an error, sadly not fatal)

Video: https://youtu.be/n5StBBka3j4

Expected Behavior

Dont allow that

Steps to Reproduce

create a folder named ".." delete it.

Video: https://youtu.be/n5StBBka3j4

Panel Version

4.0.0-dev (panel.pyro.host)

Wings Version

unknown (panel.pyro.host)

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs


Is there an existing issue for this?

  • [x] I have searched the existing issues before opening this issue.
  • [x] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • [x] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.

LunarcatOwO avatar May 02 '25 19:05 LunarcatOwO

it also works with "." btw

LunarcatOwO avatar May 02 '25 19:05 LunarcatOwO

Just found with #253 that this bug also works on files so....

LunarcatOwO avatar May 09 '25 23:05 LunarcatOwO

Just taking a look at this since this hasn't recieved the attention that it probably needs.

I'll see if I can create a PR to fix this soon since I have a little time available for this :D

why-context avatar May 16 '25 14:05 why-context

Thanks πŸ˜„ @naterfute knows about this bug is that he is busy fixing another one... (Also probably cuz he hates me now due to how many bugs I've found)

LunarcatOwO avatar May 16 '25 14:05 LunarcatOwO

Lol, I've just been busy with other stuff. Like why the current docker image causes prod to crash

naterfute avatar May 16 '25 16:05 naterfute

Fair, I have it scheduled on my list to do for tomorrow. I'm also appending it to my notion just to make sure I remember.

why-context avatar May 16 '25 20:05 why-context

Btw @why-context Nate’s method of moving folders into the parent folder or the file into the parent folder of the folder is also using β€œ..” so just something to watch out when fixing the thing

LunarcatOwO avatar May 16 '25 22:05 LunarcatOwO

fym nates method. that's just how linux/unix filesystems work

naterfute avatar May 19 '25 23:05 naterfute

Nate's method fr fr

LunarcatOwO avatar May 19 '25 23:05 LunarcatOwO

LOL, Been a tad busy with docker and personal projects so this is a tad delayed. However, I have figured out something for docker which imma try out, once I've got that done. I should be able to start this.

why-context avatar May 21 '25 13:05 why-context

It's a really simple fix, so if your going to do it sometime today or tomorrow let me know else I'll fix it after captcha updated

naterfute avatar May 21 '25 21:05 naterfute

It's a really simple fix, so if your going to do it sometime today or tomorrow let me know else I'll fix it after captcha updated

Will probably be better if you are able to do it; I've spent 30 minutes over the entire thing just trying to look for the files that may be involved in actually registering the server, you know much more about this code than I do admittedly because either I can't find it or I'm blind. It's one of the two πŸ˜‚

I don't want to keep people held up; Especially if I can't find the files.

EDIT: I can apparently however... find literally anything else.

why-context avatar May 21 '25 22:05 why-context

I'll just go limit on client side. Since I know where that is at least.

EDIT: my bad. I'm a moron, searching for the wrong stuff.

why-context avatar May 21 '25 22:05 why-context

Just noting here: this is purely a client side bug and is superficial. .. is not actually created, hence why the error occurs as it tries to delete what doesn't exist. If you refresh the list, it will not exist. Guessing that element is added instead of actually updating the file list meaning it doesn't get checked on whether or not it exists.

why-context avatar May 21 '25 22:05 why-context

This was fixed in afore mentioned pr.

naterfute avatar May 26 '25 16:05 naterfute