metacat icon indicating copy to clipboard operation
metacat copied to clipboard

View service isn't url-encoding path parts (PIDs) in online distribution section

Open amoeba opened this issue 6 years ago • 0 comments

e.g., https://arcticdata.io/catalog/view/doi:10.18739/A2GX44T8M

<div class="control-group">
  <label class="control-label">Online Distribution Info</label>
  <div class="controls controls-well">
    <a href="https://cn.dataone.org/cn/v2/resolve/urn:uuid:889b0bea-4dbe-45f2-bf42-9c216ad5de23" target="_blank">https://cn.dataone.org/cn/v2/resolve/urn:uuid:889b0bea-4dbe-45f2-bf42-9c216ad5de23</a>
  </div>
</div>

The URL should be to https://cn.dataone.org/cn/v2/resolve/urn%3Auuid%3A889b0bea-4dbe-45f2-bf42-9c216ad5de23

Fix this and look for other areas where this might be happening so that the URLs the view service generates are consistently escaped.

amoeba avatar Apr 11 '19 01:04 amoeba