xwikisas / application-googleapps

Google Apps Integration
0 stars 5 forks source link

Importing a doc as Original transforms the attachment in a JSON doc #28

Open ane-gabriela opened 5 years ago

ane-gabriela commented 5 years ago

Preconditions: Have the Google app configured.

Steps to reproduce:

  1. Access a page in xwiki
  2. Click on Attachments tab
  3. Click on the "Import from Google Apps" button
  4. Search for a document from the Google drive
  5. Select "original" format
  6. Click on the imported doc from Attachments

Expected results: The doc imported appears as per Google docs.

Actual results: The doc imported is opened as a JSON.

Result Original

polx commented 5 years ago

We can filter this type out. However, I can only see one possible reason to keep this original: people try to avoid Google storing their document and so are happy to store it in their own wiki and probably delete it at Google's. This would only make sense if one can re-import such an original file.

Can this be checked? If not, we should just filter out the possibility to pull the "original" format. paul