The ".." Bug
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.
it also works with "." btw
Just found with #253 that this bug also works on files so....
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
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)
Lol, I've just been busy with other stuff. Like why the current docker image causes prod to crash
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.
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
fym nates method. that's just how linux/unix filesystems work
Nate's method fr fr
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.
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
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.
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.
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.
This was fixed in afore mentioned pr.