We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
FATAL BUG - WebUI Deletes all databases/Web even if not selected in list
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
FATAL BUG - WebUI Deletes all databases/Web even if not selected in list
I found another FATAL bug in the WebUI of VestaCP v0.9.8-16 (I'm on Debian 8)
If you select multiple domains or DBs( like more than 6-7) and do a Delete from the Drop Down Action, it will Delete the "Un-Selected" domains/DBs in the list too, which you would rather want to keep safe.
Other Members, Please try to reproduce this on a test server or with a test user... and report if the behavior is same. It can be a very very fatal thing.
If you select multiple domains or DBs( like more than 6-7) and do a Delete from the Drop Down Action, it will Delete the "Un-Selected" domains/DBs in the list too, which you would rather want to keep safe.
Other Members, Please try to reproduce this on a test server or with a test user... and report if the behavior is same. It can be a very very fatal thing.
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: FATAL BUG - WebUI Deletes all databases/Web even if not selected in list
Yup Already did... https://bugs.vestacp.com/issues/294XoXiLhJ0mn wrote:This is serious. I have not checked and, thus, cannot confirm. But from what you describe, this seems to be a bug.
Do open a new Issue here:
https://bugs.vestacp.com/projects/vesta ... nel/issues
Re: FATAL BUG - WebUI Deletes all databases/Web even if not selected in list
We will check it tomorrow
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: FATAL BUG - WebUI Deletes all databases/Web even if not selected in list
Thanks Imperio -- appreciate your notice on this. As discussed on the BugTracker, I can Confirm...the bug is only when you SELECT ALL and then UnSelect Any domains, it still removes ALL domains/DBs.imperio wrote:We will check it tomorrow
I posted a Video link there as well.
This definiately is broken logic, because if I have to DELETE 15 out of 17 Site obviously the easier and "natural" option is to select all and UNCHECK 2 that I need to keep, rather than selecting 15 checkboxes... am I right ?
I hope we can fix this logic, I think its just some "interpretation' problem that is there!
Re: FATAL BUG - WebUI Deletes all databases/Web even if not selected in list
I think I found a fix try this,
/usr/local/vesta/web/js/jquery.finder.js
Add
After
/usr/local/vesta/web/js/jquery.finder.js
Add
Code: Select all
ref.parents('.l-unit').removeClass('selected-last');
ref.parents('.l-unit').addClass('un-selected');
Code: Select all
ref.parents('.l-unit').removeClass('selected-current');
Re: FATAL BUG - WebUI Deletes all databases/Web even if not selected in list
I will post this on github when other people confirm this works.XoXiLhJ0mn wrote:Hello joem,Please be kind to inform all the Vesta team of your research and the fix here:joem wrote:I think I found a fix try this,
https://bugs.vestacp.com/issues/294
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: FATAL BUG - WebUI Deletes all databases/Web even if not selected in list
No This did NOT work for me... It still deletes all Domains even the unselected ones if you used the "toggle"joem wrote:I think I found a fix try this,
/usr/local/vesta/web/js/jquery.finder.js
AddAfterCode: Select all
ref.parents('.l-unit').removeClass('selected-last'); ref.parents('.l-unit').addClass('un-selected');
Code: Select all
ref.parents('.l-unit').removeClass('selected-current');
I'm on Deb.8 ... I hope I did the changes as desired by you ?
Last edited by mehargags on Thu Jul 14, 2016 3:29 pm, edited 1 time in total.
Re: FATAL BUG - WebUI Deletes all databases/Web even if not selected in list
From the picture you provide it looks right to me. Would you mind sending me your server login details so I can look at it.mehargags wrote:No This did NOT work for me... It still deletes all Domains even the unselected ones if you used the "toggle"joem wrote:I think I found a fix try this,
/usr/local/vesta/web/js/jquery.finder.js
AddAfterCode: Select all
ref.parents('.l-unit').removeClass('selected-last'); ref.parents('.l-unit').addClass('un-selected');
Code: Select all
ref.parents('.l-unit').removeClass('selected-current');
I'm on Deb.8 ... I hope I did the changes as desired by you ?