Coder Social home page Coder Social logo

PHOTO broken since 0.9.7 about ez-vcard HOT 6 CLOSED

mangstadt avatar mangstadt commented on July 4, 2024
PHOTO broken since 0.9.7

from ez-vcard.

Comments (6)

mangstadt avatar mangstadt commented on July 4, 2024

Hey rfc2822,

By "broken" do you mean you tried to get Android to consume such a vCard, and it failed?

Yes, that empty line was added in 0.9.7. Someone reported an issue where Outlook 2010 sometimes has problems reading base64-encoded property values without a trailing empty line (see this issue). But if it's breaking on Android, then this issue should be revisited.

from ez-vcard.

rfc2822 avatar rfc2822 commented on July 4, 2024

By "broken" do you mean you tried to get Android to consume such a vCard, and it failed?

No, I mean that DAVdroid (which is an Android app, which is the only relation between this issue and Android) generated the VCard (using ez-vcard), sent it to a CardDAV server (using HTTP PUT). This server then refused to accept the VCard because it couldn't parse it.

Yes, that empty line was added in 0.9.7. Someone reported an issue where Outlook 2010 sometimes has problems reading base64-encoded property values without a trailing empty line (see this issue). But if it's breaking on Android, then this issue should be revisited.

The issue is not related to Android at all. The issue is that other VCard parsers can't parse this VCard because it contains an (illegal? didn't scan the specs for that, but I have never seen empty lines in VCard before) empty line.

from ez-vcard.

mangstadt avatar mangstadt commented on July 4, 2024

This server then refused to accept the VCard because it couldn't parse it.

Well, that's not good. Do you know what CardDAV server is being used?

The specs definitely don't say to include an empty line after base64 property values. Sounds like a case of Outlook being "special".

from ez-vcard.

rfc2822 avatar rfc2822 commented on July 4, 2024

I believe it was the Oracle Communications Contacts server. However, I'd expect other servers to reject such VCards, too.

Would it be possible to enable (Outlook-)workarounds only on request?

from ez-vcard.

mangstadt avatar mangstadt commented on July 4, 2024

That's what I'm thinking. Some sort of reader.setOutlookCompatibility(true).

from ez-vcard.

mangstadt avatar mangstadt commented on July 4, 2024

Added VCardWriter.setOutlookCompatibility() method. Outlook compatibility is disabled by default.

Fixed in c8da9a4

from ez-vcard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.