-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address https://github.com/Islandora-CLAW/CLAW/issues/302 ; Query Par… #51
Conversation
…ional - DEPRECATED)
So this changes how the checksum is formatted. We used to just pass a checksum, but now that checksum is actually "<checksum type>=<checksum>". For example, in the Chullo README there is an example of
That now fails due to the change in Fedora, but using this change also doesn't work. We need to change it to specify the checksum type as well as the checksum. Like
So the code is fine, but the argument is changing. I just want to make sure that we are okay with this, or should we separate the information out into two arguments or an array of arguments? <shrug> |
We'll, since fcrepo4 really only supports one fixity type right now, I'm fine with leaving it like that. Once we get more, then we can add more. ...but...hrm...what about migrating fcrepo3 fixity information? |
I haven't tried (but I will) using a "md5=blah" checksum |
Ok, so md5 seems to be disregarded. |
@whikloj should we change it from a string to an array? Or have two string values, |
@whikloj if that's the route we want to go, I can work on updating the test where it failed. |
Current coverage is 86.48% (diff: 100%)@@ master #51 diff @@
==========================================
Files 4 4
Lines 227 222 -5
Methods 36 36
Messages 0 0
Branches 0 0
==========================================
- Hits 195 192 -3
+ Misses 32 30 -2
Partials 0 0
|
@@ -226,21 +232,23 @@ public function saveResource( | |||
public function saveGraph( | |||
$uri, | |||
\EasyRdf_Graph $graph, | |||
$checksum_algorithm = "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need this line.
@ruebot that last one looks fine. $headers is the way, less arguments, closer to fcrepo REST API 👍 |
@whikloj @DiegoPino I still need to update Crayfish and PDX, and then this issue should be resolved. |
Nothing in PDX according to |
Error in test is because you need to define the base_uri on the Client here. Check the other test. |
…ameters: CHECKSUM (Optional - DEPRECATED)
See: Islandora/documentation#302