question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when the path contains the dot char

See original GitHub issue

When the path contains the dot, the append to array function has an unexpected behaviour

For example, givin the structure

{  
   "site":{  
      "content":{  
         "it":{  
            "about-us.md":[]
         }
      }
   }
}

the instruction

db.push ("/site/content/it/about-us.md[]", {"code":0, "value": 1}) 

result in

{  
   "site":{  
      "content":{  
         "it":{  
            "about-us.md":[],
             "about-us.md[]" : {"code":0, "value": 1}
         }
      }
   }
}

instead of

{  
   "site":{  
      "content":{  
         "it":{  
            "about-us.md":[ {"code":0, "value": 1}]
         }
      }
   }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Belphemurcommented, Dec 11, 2019

That is really interesting bug, it means my regex that detect the “array” isn’t working as intended.

It’s a bug, not a decision I made 😃 I’ll see if I can fix it.

0reactions
github-actions[bot]commented, Sep 9, 2022

🎉 This issue has been resolved in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error with dot (.) character in URL - Stack Overflow
If i get another user without the '. ' character, it works fine. The error: HTTP Error 404.0 - Not Found The resource...
Read more >
dot in path breaks reload · Issue #2245 · vitejs/vite - GitHub
Describe the bug​​ In an app using an SPA router such as react-router-dom, when a dot exists in the path, one cannot link...
Read more >
Have Multiple Successive Dot Characters Receive Error 400 ...
If there is multiple successive dot characters in the browser URL header, receive Error 400 Bad Request: The request path contains illegal ...
Read more >
ValueError: 'name' may not contain a dot '.' character. (Example)
I don't understand what this means raise ValueError("'name' may not contain a dot '.' character.") ValueError: 'name' may not contain a ...
Read more >
Spring MVC @PathVariable with a dot (.) gets truncated
Learn how to handle path variables that contain a dot in Spring MVC request mappings.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found