Project

General

Profile

Bug #7293

Metacat maps the decoded REST URL in the D1ResourceHandler

Added by Jing Tao over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Metacat
Target version:
Start date:
2015-08-12
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Description

It can cause some issues when Metacat analyses the decoded REST URL. For example, this is an URL to get a package with the "application/bigit" format and the "/" between the "application" and "bagit" was encoded:

https://mn-demo-6.test.dataone.org/knb/d1/mn/v2/package/application%2Fbagit/test.20152049387.2

Metacat decodes it first and get:

https://mn-demo-6.test.dataone.org/knb/d1/mn/v2/package/application/bagit/test.20152049387.2

Metacat thinks that the format type is "application" and the id is "bagit/test.20152049387.2"

So we should map first, then decode each part.

History

#1 Updated by Jing Tao over 8 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 30

Modified the MN/CNResourceHandler and we need more extensive tests.

#2 Updated by Jing Tao over 8 years ago

Andrei and I tested and don't see any issue.

#3 Updated by Jing Tao over 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 30 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)