framework icon indicating copy to clipboard operation
framework copied to clipboard

CKAN plugin import violates name pattern validation

Open n0rdlicht opened this issue 3 years ago • 1 comments

Overview

When using format: ckan the name of the resource/package is directly copied from the name the portal uses. This leads to violations in name validation.

Example:

# src/example.pipeline.yaml

tasks:
  - type: resource
    source:
      name: data
      path: https://data.stadt-zuerich.ch
      format: ckan
      dialect:
        dataset: bev_monat_zuz_quartier_geschl_ag_herkunft_od3530
        resource: BEV353OD3530.csv
    steps:
    - code: table-write
      path: data-cache/stadt-zuerich-zuzug.csv

$ frictionless transform src/example.pipeline.yaml
[task-error] The task has an error: [resource-error] The data resource has an error: "'BEV353OD3530.csv' does not match '^([-a-z0-9._/])+$'" at "name" in metadata and at "properties/name/pattern" in profile

Please replace this line with full information about your idea or problem. If it's a bug share as much as possible to reproduce it

n0rdlicht avatar Jul 27 '22 13:07 n0rdlicht

Thanks @n0rdlicht

We're reworking ckan support for v5 -- we will fix this problem also. A beta is about to be released but ckan rework is more probably be ready around early September

roll avatar Aug 01 '22 06:08 roll

DONE in https://github.com/frictionlessdata/framework/pull/1332

roll avatar Dec 05 '22 11:12 roll