-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed poor implementations of vCard 3.0 being rejected by server #415
Conversation
I think you should report the bug first to blackberry and see if they can fix it. If they refuse or don't respond, we can reopen this discussion. |
BlackBerry dropped support for OS10 last year. Any chance in accepting the reception of BASE64 vCards and doing the stripping of the extra 5 chars on the fly? |
I didn't know! In that case, I would propose the following: Change your PR to not remove the error, but instead 'repair' the problem (with the sabre/dav will call validate with the repair option by default, so this should fix your problem in a more correct way |
Will try that tonight. EDIT: Moreover, this just seems to be more of a trick that would need to be used only by people affected by that problem, and doesn't seem to be PR worthy. I don't actually know what you, @evert, wanted me to do with that information... Add the REPAIR node if the card came from BB phones ? Add the REPAIR node every time it's V3 and BASE64 ? |
I see this has been closed. Has a fix been made available anywhere ? Or an alternative ? |
Please reopen; there is no fix yet! |
@msberends if you want to provide a good PR for this, it would get accepted. |
(edited) @evert ...Would this work properly ? Do I need to call Like so ? EDIT2 : definitely sorry about the PR spam, I didn't know how else to avoid polluting the commit log. |
Let's take an example of the BlackBerry 10 OS.
It shares the vCards in the v3 format, but uses the "BASE64" encoding instead of the "B" one. This results in really odd behaviour in the communication between the sabre server and the BB client :
This PR effectively fixes that issue for each and every OS10 based BlackBerry device, and I assume will fix every client implementation that uses the "BASE64" encoding instead of "B".
I have tested this patch successfully in both sabre standalone and in Nextcloud 12 and 13.