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
add guard for non-literal titles #938
Conversation
final Node object = objects.next().getObject(); | ||
if (object.isLiteral()) { | ||
return object.getLiteral().getLexicalForm(); | ||
} |
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.
If !object.isLiteral()
is there a sensible return value?
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.
I believe the current default is to use the URI of the node.
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.
Okay, that seems pretty reasonable.
@ajs6f after rebasing, there's not much left to this PR -- just a unit test verifying that non-literal titles don't throw errors. |
That's a little troubling. That implies that my PR for |
@ajs6f to add onto that, one issue with the |
Oh, well, what the hell... |
See: https://jira.duraspace.org/browse/FCREPO-1811