nansencenter / django-geo-spaas

GeoDjango apps for satellite data management in Geo-Scientific Platform as a Service
GNU General Public License v3.0
20 stars 6 forks source link

Add validation of uri before saving DatasetURI objects #24

Open mortenwh opened 6 years ago

mortenwh commented 6 years ago

The URI generic syntax consists of a hierarchical sequence of five components:

URI = scheme:[//authority]path[?query][#fragment]

DatasetURI.uri is presently not validated. This could be a big problem if a lot of data is wrongly ingested. We should add some validation in the get_or_create method of this model:

mortenwh commented 6 years ago

The two first tasks are done in #38