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

Pull/Push/Export tabs are still active when the storage location is cleared #894

Open
mmarciniak90 opened this issue Nov 3, 2020 · 3 comments

Comments

@mmarciniak90
Copy link

Software versions

Briefcase current master

Problem description

Pull/Push/Export tabs are still active when the storage location is cleared

Steps to reproduce the problem

We have not been able to determine repro steps and the condition that causes this issue

Peek 2020-11-03 15-11

briefcase(1).log

Expected behavior

Pull/Push/Export tabs are inactive when the storage location is cleared

@kkrawczyk123
Copy link
Contributor

I was also encountering that issue but I do not have more information about reproduction steps. Sometimes it happened for me after pull, sometimes after export. I have also gif of the behavior:
Peek 2020-11-03 16-10

I was also able to ex. start pull when sd was not selected, this is the screenshot of cmd response:
Screenshot from 2020-11-03 16-11-14

@lognaturel
Copy link
Member

I can reproduce this consistently on v1.17.4 by pulling a form and then clearing the storage directory. Any time I set and clear the storage directory after that, the tabs are still active. I can see that a StorageLocationEvent.LocationCleared() event is broadcast but it's not received. I can do EventBus.getSubscribersToClass(StorageLocationEvent.LocationCleared.class) and see that there are no subscribers to the event. I'm guessing the addition of some other broadcast subscription clears this one.

I'll try to do a timeboxed exploration but since this is not a regression and it's not fatal, I think it's ok to leave as-is for now.

@lognaturel
Copy link
Member

I don't have any more insights. Something is causing subscribers to be unsubscribed but I can't tell what. I've also been able to reach a state where the UI is locked, I select a storage location, and the UI isn't unlocked. It does seem linked to performing some other action but I'm not seeing any logging that helps explain what's going on.

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

No branches or pull requests

3 participants