Skip to content

Fix panic/error raised by deleted passwords.#71

Merged
louisabraham merged 4 commits intolouisabraham:masterfrom
gamesguru:master
Mar 20, 2025
Merged

Fix panic/error raised by deleted passwords.#71
louisabraham merged 4 commits intolouisabraham:masterfrom
gamesguru:master

Conversation

@gamesguru
Copy link
Contributor

consider the following row entry,

{"id": 513, "guid": "{6a83e72d-8255-4bc0-ad1a-c292613fb55b}", "timePasswordChanged": 1740354999123, "syncCounter": 0, "everSynced": true, "deleted": true}

which leads to:

Traceback (most recent call last):
  File "ffpass", line 8, in <module>
    sys.exit(main())
  File "ffpass/__init__.py", line 419, in main
    args.func(args)
  File "ffpass/__init__.py", line 322, in main_export
    logins = exportLogins(key, jsonLogins)
  File "ffpass/__init__.py", line 212, in exportLogins
    encUsername = row["encryptedUsername"]
KeyError: 'encryptedUsername'

NOTE: line numbers from a pip install ffpass, version: ffpass-0.5.0

consider the following row entry,

```json
{"id": 513, "guid": "{6a83e72d-8255-4bc0-ad1a-c292613fb55b}", "timePasswordChanged": 1740354999123, "syncCounter": 0, "everSynced": true, "deleted": true}
```

which leads to:

```text
Traceback (most recent call last):
  File "ffpass", line 8, in <module>
    sys.exit(main())
  File "ffpass/__init__.py", line 419, in main
    args.func(args)
  File "ffpass/__init__.py", line 322, in main_export
    logins = exportLogins(key, jsonLogins)
  File "ffpass/__init__.py", line 212, in exportLogins
    encUsername = row["encryptedUsername"]
KeyError: 'encryptedUsername'
```

NOTE: line numbers from a `pip install ffpass`, version: `ffpass-0.5.0`
also:

- actions/checkout@v4
- actions/setup-python@v5
Copy link
Owner

@louisabraham louisabraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@louisabraham
Copy link
Owner

Weird, I cannot run the tests despite your second commit. Any idea why?

@gamesguru
Copy link
Contributor Author

Weird, I cannot run the tests despite your second commit. Any idea why?

No idea, I assume a permissions issue is preventing them from running on forks.

@gamesguru
Copy link
Contributor Author

@louisabraham It seems like a security issue. It won't run a modified action file from a fork.

I ran it on my fork, and it passes (same commit). You may have to manually temporarily lift the status check requirement, merge it yourself, and put the status check back.

https://github.com/gamesguru/ffpass/actions/runs/13952418524

@louisabraham louisabraham merged commit b6efa11 into louisabraham:master Mar 20, 2025
2 checks passed
@louisabraham
Copy link
Owner

indeed, thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants