We have a Views Data Export attached to a view with multiple (21) exposed filters. When using IE, the link that is generated for the export is too long for IE to handle and gets truncated, and so the CSV export fails. Ideally, what we need to do is strip out those filters that are not being queried from the generated url, to shorten it sufficiently so that IE can handle it. As the main view is set to use ajax, we cannot easily intercept this ourselves. Could it be added into the code when generating the feed-icon link to exclude null queries?

Comments

jennydumitrescu’s picture

Issue summary: View changes

Edit of the description

mariaioann’s picture

Issue summary: View changes

Managed to temporarily resolve it, by emptying the field_names url parameter in views_data_export_plugin_style_export.inc, which resulted in much shorter url for the data export attachments.
Removing this param does not seem to affect the attached export file.

  /**
   * Attach this view to another display as a feed.
   *
   * Provide basic functionality for all export style views like attaching a
   * feed image link.
   */
  function attach_to($display_id, $path, $title) {

    ...

    if (!isset($this->view->feed_icon)) {
      $this->view->feed_icon = '';
    }

    $query['field_names'] = array();

    $this->view->feed_icon .= theme($theme_pattern, array(
        'image_path' => $this->definition['export feed icon'],
        'url' => $this->view->get_url(NULL, $path),
        'query' => $query,
        'text' => $this->options['attach_text'],
      )
    );

  }
steven jones’s picture

Status: Active » Postponed

Generally it's quite hard to know if a querystring argument is required or not, so I don't think we can strip them out in a general way really.

Postponing until someone has a good idea of how to solve this.

steven jones’s picture

Status: Postponed » Closed (won't fix)

Sorry for the lack of attention to your issue, please accept my apologies.

Drupal 7 is going to be end-of-life'd by the community in approximately 1 month.

As such, I am closing all non-critical looking, non-PHP compatibility issues for Views Data Export to tidy up the issue queues and reduce the noise. You can read about this on #3492246: Close down Drupal 7 issues.

If you feel like this issue has been closed by mistake, please do comment about re-opening it.
If you feel like the ticket is still relevant for the 8.x-1.x version of the module, then please search for a duplicate issue first, and if there really isn't one (and you've looked properly) then change the version on the ticket and re-open.

Thanks to everyone involved in this issue: for reporting it, and moving it along, it is truly appreciated.
The Drupal community wouldn't be what it is today without your involvement and effort, so I'm sorry that we couldn't get this issue resolved. Hopefully we'll work together in a future issue though, and get that one resolved :)