Skip to content
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

FCREPO-1505 (https://jira.duraspace.org/browse/FCREPO-1505) #829

Closed
wants to merge 4 commits into from
Closed

FCREPO-1505 (https://jira.duraspace.org/browse/FCREPO-1505) #829

wants to merge 4 commits into from

Conversation

jrgriffiniii
Copy link

Extending the FedoraLdp#createObject method for handling the creation of child objects for pairtree child resources; Implementing the FedoraLdpIT#testIngestOnPairTree method for integration testing.

…handling the creation of child objects for pairtree child resources; Implementing the FedoraLdpIT#testIngestOnPairTree method for integration testing
@@ -415,6 +421,9 @@ public Response createObject(@QueryParam("checksum") final String checksum,

if (!(resource() instanceof Container)) {
throw new ClientErrorException("Object cannot have child nodes", CONFLICT);
} else if (resource().hasType(FEDORA_PAIRTREE)) {

throw new ClientErrorException("Object cannot themselves be children of a pairtree child node", FORBIDDEN);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we fix the grammar of this message?

…n FedoraLdp#createObject; Restructuring the test case for FedoraLdpIT#testIngestOnPairtree (following the approach used in FedoraExportIT#shouldRoundTripOnePairtree)
createLiteral(FEDORA_PAIRTREE)));

// Attempting to POST to the child of the pairtree node...
method = new HttpPost(serverAddress + pairtreeName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use AbstractResourceIT::postObjMethod.

jrgriffiniii and others added 2 commits July 9, 2015 07:51
…e AbstractResourceIT::getObjMethod, AbstractResourceIT::postObjMethod, and AbstractResourceIT::getStatus where appropriate; Modifying the 403 response message within FedoraLdp#createObject and FedoraLdpIT#testIngestOnPairtree
… is declared as "final" within FedoraLdpIT#testIngestOnPairtree
@awoods
Copy link

awoods commented Jul 10, 2015

Resolved with: 15373cb

@awoods awoods closed this Jul 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants