Revision 4473
Added by daigle about 16 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
1396 | 1396 |
Hashtable unReadableInlineDataList = |
1397 | 1397 |
PermissionController.getUnReadableInlineDataIdList(docId, |
1398 | 1398 |
user, groups, false); |
1399 |
if (unReadableInlineDataList.containsValue(
|
|
1400 |
MetaCatUtil.getInlineDataIdWithoutRev(inlineDataId))) {
|
|
1399 |
String inlineDataIdWithoutRev = MetaCatUtil.getInlineDataIdWithoutRev(inlineDataId);
|
|
1400 |
if (unReadableInlineDataList.containsValue(inlineDataIdWithoutRev)) {
|
|
1401 | 1401 |
throw new Exception("User " + user |
1402 | 1402 |
+ " doesn't have permission " + " to read inlinedata " |
1403 | 1403 |
+ inlineDataId); |
... | ... | |
1802 | 1802 |
"attachment; filename=" + docid + ".xml"); |
1803 | 1803 |
|
1804 | 1804 |
// Try to get the metadata file from disk. If it isn't |
1805 |
// found, create it from the |
|
1806 |
// db and write it to disk then. |
|
1805 |
// found, create it from the db and write it to disk then. |
|
1807 | 1806 |
String documentPath = documentDir + FileUtil.getFS() + docid; |
1808 | 1807 |
try { |
1809 | 1808 |
if (FileUtil.getFileStatus(documentPath) == FileUtil.DOES_NOT_EXIST) { |
Also available in: Unified diff
Debug and comment changes