Metadecidim
Sign in

Process

Report a Bug

finished not yet on protocol

Participatory text with wrong format should return an error on upload

When I upload a participatory text not compliant with the format expected by the application, the file upload generates an error visible on the log I, [2019-05-13T14:10:12.080021 gid://metadecidim/Decidim::Hashtag/72/121877] INFO -- : [3711be75-85d8-4bb3-934f-64513c8c8cc5] Completed 500 Internal Server Error in 25ms (ActiveRecord: 2.8ms) F, [2019-05-13T14:10:12.081692 gid://metadecidim/Decidim::Hashtag/72/121877] FATAL -- : [3711be75-85d8-4bb3-934f-64513c8c8cc5] F, [2019-05-13T14:10:12.081752 gid://metadecidim/Decidim::Hashtag/72/121877] FATAL -- : [3711be75-85d8-4bb3-934f-64513c8c8cc5] Zip::Error (File # has zero size. Did you mean to pass the create flag?): F, [2019-05-13T14:10:12.081794 gid://metadecidim/Decidim::Hashtag/72/121877] FATAL -- : [3711be75-85d8-4bb3-934f-64513c8c8cc5] F, [2019-05-13T14:10:12.081938 gid://metadecidim/Decidim::Hashtag/72/121877] FATAL -- : [3711be75-85d8-4bb3-934f-64513c8c8cc5] rubyzip (1.2.2) lib/zip/file.rb:81:in `initialize' but no error is showed on the GUI, so apparently the upload was not successful without any further explanation. Can you please check? Thanks, Gian Luca

7 comments

  1. Hi @jeanluc_1974, I would say that this bug has been corrected in release 0.18. @ or @pau could you please chime in and confirm? Thanks!

    0 votes up 0 votes down
    1. Yes @carol, you're right

      Image: https://imgur.com/lostQRY

      If that is the case, could you please withdrawn the proposal? Thanks

      0 votes up 0 votes down
    2. No unfortunately I think that is not the case. Correct me if I am wrong: in that case the *extension* of the file is not correct, so it happens when you upload a file which is not a .md or a .odt. What I'm talking about is actually raising to the GUI an error in case the *file format* expected by the application for a participatory text is wrong (so let me be more clear it happens when the content of the file, which can represented in a Word's model, is not as expected by the application).

      1 votes up 0 votes down
  2. So, trying to be as clear as possible: the log reported above happened when I tried to upload a file with correct extension (.odt, in that case) but respecting no model (or format) at all, just some random text.

    1 votes up 0 votes down
    1. Thanks for the clarification. Issue reported here: https://github.com/decidim/decidim/issues/5225

      1 votes up 0 votes down
  3. Fixed in https://github.com/decidim/decidim/pull/5320

    0 votes up 0 votes down
    1. Thanks!

      0 votes up 0 votes down

Sign in with your Atmosphere account to comment.