View in browser or downloading a file named 'metadata.json' does not work
![sabtharishi sabtharishi](https://connect.hyland.com/legacyfs/online/avatars/Blue-user-logo.png)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2016 02:16 PM
I have uploaded a file with name "metadata.json" in to Alfresco document library. This file could not be downloaded or viewed in browser. Whenever I try to do it I am getting below error.
But the node ref is there and I could see it node browser.
If I rename the file to different case that is from "metadata.json" to "meta<b>D</b>ata.json" then I could download the file without any issues.
what is the problem and what is the solution to keep a file with name "metadata.json" as is?
{ "status" : { "code" : 404, "name" : "Not Found", "description" : "Requested resource is not available." }, "message" : "01170049 Unable to find nodeRef: content:\/\/workspace\/SpacesStore\/712d48e1-bca6-43b5-a7bb-db8b3181c06a", "exception" : "org.springframework.extensions.webscripts.WebScriptException - 01170049 Unable to find nodeRef: content:\/\/workspace\/SpacesStore\/712d48e1-bca6-43b5-a7bb-db8b3181c06a", "callstack" : [ "" ,"org.springframework.extensions.webscripts.WebScriptException: 01170049 Unable to find nodeRef: content:\/\/workspace\/SpacesStore\/712d48e1-bca6-43b5-a7bb-db8b3181c06a"
But the node ref is there and I could see it node browser.
If I rename the file to different case that is from "metadata.json" to "meta<b>D</b>ata.json" then I could download the file without any issues.
what is the problem and what is the solution to keep a file with name "metadata.json" as is?
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2016 12:25 AM
I do not think name should be an issue. There must be something else causing that.Have you uploaded using alfresco UI? or through API?
![sabtharishi sabtharishi](https://connect.hyland.com/legacyfs/online/avatars/Blue-user-logo.png)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2016 12:24 PM
I tried with both NodeService and as well as using Share UI. Both giving me the same error.
Whereas all other files with different names works perfectly fine.
Whereas all other files with different names works perfectly fine.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2016 03:29 AM
What is the content inside your metadata.json file? If you create a new file with a different name and adding the same content to it, does it work?
Try creating a new file metadata.json file adding some dummy content to it and see if that works for you or not?
This may give you hints about what is causing the issue? Ideally, file name shouldn't be an issue.
Hope this helps.
Try creating a new file metadata.json file adding some dummy content to it and see if that works for you or not?
This may give you hints about what is causing the issue? Ideally, file name shouldn't be an issue.
Hope this helps.
![sabtharishi sabtharishi](https://connect.hyland.com/legacyfs/online/avatars/Blue-user-logo.png)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2016 12:24 AM
Thanks for your reply.
I tested with content "test" but still facing the same error. The test file has only one line and one word "test". I uploaded the file using Share UI.
I tested with content "test" but still facing the same error. The test file has only one line and one word "test". I uploaded the file using Share UI.
![](/skins/images/3EA4296CAFBBFFCF1FE252BDE05FE3BC/responsive_peak/images/icon_anonymous_message.png)