magda-io / magda

A federated, open-source data catalog for all your big data and small data
https://magda.io
Apache License 2.0
509 stars 93 forks source link

Datasets created through dataset/add are redirected by CKAN #2237

Open AlexGilleran opened 5 years ago

AlexGilleran commented 5 years ago

Problem description

Right now because new datasets end up with magda-ds as their id prefix, they're interpreted as being CKAN datasets by the CKAN redirection router (which assumes everything that doesn't start with ds- is a CKAN dataset, and as such end up looked up according to CKAN and 404ing.

We need to either make it so new datasets start with ds instead of magda-ds, or make the CKAN redirection smarter.

Problem reproduction steps

  1. Create a new dataset
  2. Go to that dataset in a browser
  3. Hit refresh
  4. 😢

Proposed New Flow (when CKAN redirection turned on)

t83714 commented 5 years ago

We probably can exclude any the followings from CKAN -redirection:

This will also solve the issue of having to disable ckan redirection in order to access add dataset function