Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Full URL of the resource stored in the DB #4382
CKAN Version if known (or site URL)
Please describe the expected behaviour
When editing resource metadata, we should store the filename in the database, at
Please describe the actual behaviour
When editing resource metadata, full URL is saved in the database
What steps can be taken to reproduce the issue?
1.Go to edit resource page
I've tested of this occurs on edit dataset and the issue is not reproducible.It occurs only on edit resource.
This occurs because we are generating the full url on reading the resource and it is stored as it in the DB on save
Here what's happening:
So far so good.
Now, when we add a new resource to the same dataset, or edit the existing resource:
We need to strip the full URL and store just the file name again when storing resources (only for resources where
Note that the creation of the fully qualified URL is done at the same level of 1 in