Skip to content

Commit

Permalink
SAK-29456 - Site archive import does not process attachment.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
jonespm committed Jun 30, 2015
1 parent 2ac4324 commit d65e485
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,16 @@ else if (element.getTagName().equals(UserDirectoryService.APPLICATION_ID))
return;
}

String serviceName;
//Support for attachment.xml created prior to SAK-29456
if (element.getTagName().equals(ContentHostingService.APPLICATION_ID))
{
serviceName = "org.sakaiproject.content.api.ContentHostingService";
}
else {
// get the service name
String serviceName = translateServiceName(element.getTagName());
serviceName = translateServiceName(element.getTagName());
}

// get the service
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7634,7 +7634,7 @@ public String archiveResources(List attachments, Document doc, Stack stack, Stri
StringBuilder results = new StringBuilder();

// start with an element with our very own name
Element element = doc.createElement(APPLICATION_ID);
Element element = doc.createElement(ContentHostingService.class.getName());
((Element) stack.peek()).appendChild(element);
stack.push(element);

Expand Down

0 comments on commit d65e485

Please sign in to comment.