8
0
Fork
You've already forked pEpPythonAdapter
0

add a correct way to check if an identity is own #20

Open
opened 2023年07月27日 15:28:56 +02:00 by positron · 0 comments
positron commented 2023年07月27日 15:28:56 +02:00 (Migrated from gitea.pep.foundation)
Copy link

The python adapter relies on the user_id being pEp_own_userId to check if an identity is own: if the userid is different then the identity is assumed not to be own. That is wrong (the Engine explicitly specifies that user_id being pEp_own_userId is a sufficient but not necessary condition for an identity to be own). Fix this, adding a proper method to check own-ness in the Identity class.

When this is done, update pmt not to rely on this wrong assumption (https://gitea.pep.foundation/pEp.foundation/pEp-mail-tool/issues/3 ).

@fdik confirmed that this requires fixing, and gave a rationale for the complicated way of handling this in the Engine: some existing address books automatically assign arbitrary user ids for own identities, and we want to use the identifiers they supply.

The python adapter relies on the user_id being `pEp_own_userId` to check if an identity is own: if the userid is different then the identity is assumed not to be own. That is *wrong* (the Engine explicitly specifies that user_id being `pEp_own_userId` is a sufficient but not necessary condition for an identity to be own). Fix this, adding a proper method to check own-ness in the Identity class. When this is done, update pmt not to rely on this wrong assumption (https://gitea.pep.foundation/pEp.foundation/pEp-mail-tool/issues/3 ). @fdik confirmed that this requires fixing, and gave a rationale for the complicated way of handling this in the Engine: some existing address books automatically assign arbitrary user ids for own identities, and we want to use the identifiers they supply.
Sign in to join this conversation.
No Branch/Tag specified
master
positron-check-signature
positron-misleading-help-string
positron-pEp-mail-tool
positron-nkls-mixnet
Release_3.2
Release_2.1
gitea-008
PYADPT-140
PYADPT-139
lucasaiu/message-struct-change
lucasaiu/message-rating-field
PYDAPT-138
PYADPT-116
PYADPT-110
build-windows
REWORK
PYADPT-100
PYADPT-96_init_version
PYADAPT-99
PYADAPT-98
PYADAPT-97_doxygen
PYADPT-97
PYADPT-81
sync
PYADPT-55
v3.3.0
v3.3.0-RC0
v3.2.1
v3.2.0
v3.2.0-RC2
v3.2.0-RC1
v3.2.0-RC0
2.1.13
2.1.12
2.1.11
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
Release_2.1.0
Release_2.1.0-RC2
Release_2.1.0-RC1
Release_2.1.0-RC0
Release_2.0.5
imap
0.3
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pEp/pEpPythonAdapter#20
Reference in a new issue
pEp/pEpPythonAdapter
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?