usap-dc-dev / usap-dc-website

repository for usap-dc website. Includes javascript client side app and python/flask server side.
2 stars 0 forks source link

issue with link to data management plan (DMP) #9

Closed fnitsche2001 closed 1 year ago

fnitsche2001 commented 1 year ago

There is an issue with a wrong link being added to the database when a DMP is uploaded as part of the project registration. The DMP gets saved in the directory awards//, but the link in the database is wrong. Instead of the award number it uses the award field from the json project form (e.g., "award": "2001646 Chereskin, Teresa") and creates a link "awards/2001646 Chereskin, Teresa/DMP.pdf" instead of the correct link "awards/2001646/DMP.pdf", which is where the DMP is actually saved. So " Chereskin, Teresa" need to be removed from the link path.

In this case, I have corrected this manually in the database, so that the user could check the correct link. But here is screenshot before the correction: usap-issue_DMP_path

astrong-ldeo commented 1 year ago

I think I fixed it and have the fix in dev since EOD yesterday. Could use a little more testing though.