Menu

#8 export vcf donne des erreurs

1.0
closed
None
Defect
2018-01-11
2017-12-18
No

The createVcf function creates a vcf file but this file gives errors when the checkVcf function is applied.

Discussion

  • Gijs Verhoeven

    Gijs Verhoeven - 2017-12-18

    C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js check ./vCards/Marie.VCF
    The database.txt file contains error

    C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js check ./vCards/jean.VCF
    The database.txt file contains error

    11-01-18 EDIT: Later it was found that this obviously does not work since the function checks the correctness of the .txt file and not the correctness of .vcf files, so this was not the real error. The real error is explained further down.

     

    Last edit: Gijs Verhoeven 2018-01-11
  • Gijs Verhoeven

    Gijs Verhoeven - 2017-12-18

    C:\Users\Gijs Verhoeven\Documents\Twente\BSc3\Frankrijk\GL02\SujetA_FCJavaScript_l2\vCard>node caporalCli.js createVcf database.txt

    11-01-18 EDIT: The function to create VCF files out of a .txt file, this gives problems, explained later.

     

    Last edit: Gijs Verhoeven 2018-01-11
  • Gijs Verhoeven

    Gijs Verhoeven - 2018-01-05

    I think the problem is that the VCF files that you can make, do not have a ###Domaine in them and are also one long line of text.

     
  • Gijs Verhoeven

    Gijs Verhoeven - 2018-01-11

    createVcf succesfully makes vcf files from the database.txt file. But then if you want a vcf contact, just created, to go back in the database, with the import function, it gives parsing errors. These errors do not occur when a premade vcf file is imported, eventhough both files are already in the database file.

     
  • Gijs Verhoeven

    Gijs Verhoeven - 2018-01-11

    Problem solved by making adjustments in the createVcf function in caporalCli.js and in the database.txt to make the vcf files that are created have the structure that is expected by the parser when the import function is called.

     

    Last edit: Gijs Verhoeven 2018-01-11
  • Gijs Verhoeven

    Gijs Verhoeven - 2018-01-11
    • status: open --> closed
     

Log in to post a comment.