cancel
Showing results for 
Search instead for 
Did you mean: 

View in browser or downloading a file named 'metadata.json' does not work

sabtharishi
Champ in-the-making
Champ in-the-making
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.

 
{
    "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?
4 REPLIES 4

mitpatoliya
Star Collaborator
Star Collaborator
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?

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.

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.

sabtharishi
Champ in-the-making
Champ in-the-making
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.