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

File event cleanup #767

Closed
wants to merge 2 commits into from
Closed

File event cleanup #767

wants to merge 2 commits into from

Conversation

escowles
Copy link
Contributor

@escowles escowles commented Apr 9, 2015

  • fixing fcr:content/jcr:content mixup
  • tagging content events with fedora:hasContent property

Fixes https://jira.duraspace.org/browse/FCREPO-1445

@@ -123,6 +124,9 @@ public void remove() {

private void addProperty( final FedoraEvent fedoraEvent, final Event ev ) {
try {
if (ev.getPath().indexOf(JCR_CONTENT) != -1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not simply String.contains() here?

@awoods
Copy link

awoods commented Apr 9, 2015

Why did the integration test in:
3de050c

not catch this?

@escowles
Copy link
Contributor Author

escowles commented Apr 9, 2015

@awoods I think the IT doesn't sufficiently capture the way the REST API creates binary content to trigger emitting both nodes. I'll see if I can trigger the bug in the current IT, and if not then I'll add a new IT to fcrepo-webapp (where we have both the REST API and JMS available).

@awoods
Copy link

awoods commented Apr 9, 2015

@escowles, thanks. We should hold off on merging this PR until you come back with more IT updates.

@awoods
Copy link

awoods commented Apr 9, 2015

Resolved with: 6749488

@awoods awoods closed this Apr 9, 2015
@escowles escowles deleted the event-file2 branch April 20, 2015 13:49
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