decidim / decidim

The participatory democracy framework. A generator and multiple gems made with Ruby on Rails
https://decidim.org/
GNU Affero General Public License v3.0
1.44k stars 398 forks source link

Importing Assemblies #10357

Open lawrencemcn opened 1 year ago

lawrencemcn commented 1 year ago

Describe the bug When you try to import an Assemblie, if the boxes Import Attachments and/or Import Categories are checked you have an error wether the Assemblie you are trying to import have or doesn't have Categories and/or Attachments

To Reproduce Steps to reproduce the behavior:

  1. Go to an Assemblie and export it
  2. Go to Assemblie panel and click on Import
  3. Check Import Attachments and/or Import Categories
  4. Click on 'Import'
  5. See error

Expected behavior We should be able to import Assemblies that have or haven't Categories and/or Attachments if we checked the boxes Import Attachments and/or Import Categories

Screenshots Importing an Assemblie image

image

Error on try.decidim.org image

Error on dev in English image

Error on dev in French image

Stacktrace If applicable, add the error stacktrace to help explain your problem.

Extra data (please complete the following information):

Additional context Add any other context about the problem here. For instance, add Metadecidim link.

alecslupu commented 1 year ago

hello @lawrencemcn after thoroughly investigating this, I have found several issues that may be related with the error you get

I could get the error : "No implicit conversion of nil into String" when i had to resubmit the form (most likely the attachment was lost) I could get the TCP related error, when i have tried to import assemblies having an image attached (like the banner image): There are 2 possible issues with this, and may be related to your set-up (i would need more information in order to confirm that )

There could be another issue with the banner image upload, caused by the issue from here #10028, case in which the importer is trying to use a html / xml file as image, causing an error.

Please consider upgrading to 0.27.2, case in which the assets issue may be solved. If not, please attach to this ticket an export file that replicates the issue.

andreslucena commented 7 months ago

Hi @lawrencemcn! Have you seen the last comment from Alex?