Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

bw list shows folders bw delete cannot remove #48

Closed
smsimeonov opened this issue Jan 31, 2019 · 7 comments
Closed

bw list shows folders bw delete cannot remove #48

smsimeonov opened this issue Jan 31, 2019 · 7 comments
Labels

Comments

@smsimeonov
Copy link

Running 1.7.0 on Powershell 5.1, installled via Chocolatey (if it matters)

Whenever I sync, after being logged on and fetching a Session Key by using "bw unlock --raw" and I try to do a check to see if an entry exists, "bw list" returns folders not existing anymore. I cannot delete them via "bw delete" either. Whenever I try, I get a "Resource not found". No matter how many times I sync, they cannot be removed.
They don't show in the web interface as well.

@kspearrin
Copy link
Member

Where are you seeing these folders? Just their ids within an item? Or using bw list folders? Any idea how to reproduce from my end?

@smsimeonov
Copy link
Author

Well, this should produce the result:

bw sync --session $SK
$EF = bw list folders --search $FOLDER --session $SK
if ($EF -eq "[]") {
bw get template folder --session $SK | ForEach-Object {$_ -replace "Folder name", "$FOLDER"} | bw encode | bw create folder --session $SK
}
$TFID = bw list folders --search $FOLDER --session $SK | ConvertFrom-Json
foreach ($line in $TFID) {$FDS = $line.id}
bw delete folder $FDS
bw sync --session $SK

If it doesn't on the first run, it should on the second.

@kspearrin
Copy link
Member

When I run bw list folders I only see real folders from my vault, which I also see in the web vault.

When you list these folders, what is their name? Are they old folders you used to have or what?

@smsimeonov
Copy link
Author

Yeah, they're old folders I created with the cli and then removed via the web interface since I was just starting out on using the cli itself.

@kspearrin
Copy link
Member

What if you log out and back into the CLI?

@smsimeonov
Copy link
Author

Doing that seems to have fixed it.
Although ideally, I wouldn't have to do that since I'm trying to automate this through a script which executes remotely, so the less actions, the better.
Thanks for the quick responses by the way.

@bitwarden-bot
Copy link

Hi smsimeonov,
We're cleaning up our repositories in preparation for a major reorganization. Issues from last year will be marked as stale and closed after two weeks. If you still need help, comment to let us know and we'll look into it.
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants