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

PUT/POST must fail if triples not persisted #801

Closed
wants to merge 3 commits into from

Conversation

whikloj
Copy link
Collaborator

@whikloj whikloj commented May 26, 2015

Addresses FCREPO-1417

@ajs6f
Copy link
Contributor

ajs6f commented May 26, 2015

I can't comment on this PR because @whikloj has made it from his clone and not from the fcrepo4 repo, but I don't think you have to explicitly call toString() for an argument to String.format().

@awoods
Copy link

awoods commented May 27, 2015

I am getting test failures when building this PR:

Tests run: 7, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.406 sec <<< FAILURE! - in org.fcrepo.integration.connector.file.BasicReadWriteFedoraFileSystemConnectorIT
testWriteProperty(org.fcrepo.integration.connector.file.BasicReadWriteFedoraFileSystemConnectorIT)  Time elapsed: 0.347 sec  <<< ERROR!
java.lang.Exception: Unexpected exception, expected<javax.jcr.RepositoryException> but was<org.fcrepo.kernel.exception.MalformedRdfException>
        at org.fcrepo.kernel.impl.utils.JcrPropertyStatementListener.assertNoExceptions(JcrPropertyStatementListener.java:179)
        at org.fcrepo.kernel.impl.FedoraResourceImpl.updateProperties(FedoraResourceImpl.java:405)
        at org.fcrepo.integration.connector.file.BasicReadWriteFedoraFileSystemConnectorIT.testWriteProperty(BasicReadWriteFedoraFileSystemConnectorIT.java:74)

testRemoveProperty(org.fcrepo.integration.connector.file.BasicReadWriteFedoraFileSystemConnectorIT)  Time elapsed: 0.009 sec  <<< ERROR!
java.lang.Exception: Unexpected exception, expected<javax.jcr.RepositoryException> but was<org.fcrepo.kernel.exception.MalformedRdfException>
        at org.fcrepo.kernel.impl.utils.JcrPropertyStatementListener.assertNoExceptions(JcrPropertyStatementListener.java:179)
        at org.fcrepo.kernel.impl.FedoraResourceImpl.updateProperties(FedoraResourceImpl.java:405)
        at org.fcrepo.integration.connector.file.BasicReadWriteFedoraFileSystemConnectorIT.testRemoveProperty(BasicReadWriteFedoraFileSystemConnectorIT.java:100)

INFO 14:23:22.694 (ModeShapeRepositoryFactoryBean) Initiating shutdown of ModeShape
INFO 14:23:22.792 (ModeShapeRepositoryFactoryBean) Repository repo undeployed.
INFO 14:23:22.794 (ModeShapeRepositoryFactoryBean) ModeShape Engine has shutdown.

Results :

Tests in error: 
  BasicReadWriteFedoraFileSystemConnectorIT.testRemoveProperty »  Unexpected exc...
  BasicReadWriteFedoraFileSystemConnectorIT.testWriteProperty »  Unexpected exce...

@whikloj
Copy link
Collaborator Author

whikloj commented May 27, 2015

Sorry @ajs6f I always forget to push to fcrepo4, and @awoods I did see this, but I think I was late. I have fixed it here.

@@ -89,13 +89,15 @@ public boolean apply(final Triple t) {
"Discovered a Fedora-relevant subject in triple: {}.",
t);
} else {
LOGGER.debug("Ignoring triple: {}.", t);
LOGGER.error("subject ({}) is not in repository domain.", t.getSubject().toString());
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to explicitly call toString() here.

@whikloj
Copy link
Collaborator Author

whikloj commented Aug 13, 2015

This never got closed, how is that @awoods says it.

Resolved with c5a9b37

@whikloj whikloj closed this Aug 13, 2015
@awoods awoods deleted the FCREPO-1417 branch August 13, 2015 16:08
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