Error encoding edge label
See original GitHub issueOrientDB Version, operating system, or hardware.
- v2.2.6
Operating System
- Linux
- MacOSX
- Windows
- Other Unix
- Other, name?
Expected behavior and actual behavior
Transparently encode&decode edges’ labels
Steps to reproduce the problem
Insert an edge with a _label
like /color/red
.
It will log a warning and then an exception like:
WARNING: $ANSI{green {db=db}} Requested command 'create edge type '%2Fcolor%2Fred' as subclass of 'E'' must be executed outside active transaction: the transaction will be committed and reopen right after it. To avoid this behavior execute it outside a transaction
javax.script.ScriptException: java.lang.IllegalArgumentException: Invalid field name 'out_%2Fcolor%2Fred'. Character '%' is invalid
NOTE:
- Loading a dataset via gremlin API.
- Potentially related to #5424
Issue Analytics
- State:
- Created 7 years ago
- Comments:35 (17 by maintainers)
Top Results From Across the Web
'utf8' TextDecoder Error from 'fast-text-encoding' dependency ...
RangeError: Failed to construct 'TextDecoder': The encoding label provided ('utf8') is invalid. The issue was not reproducible on any browser ...
Read more >utf 8 - Edge warning says "'content-type' header charset value ...
I was facing the same issue. The browser just wants you to define the mime type <link rel="stylesheet" href="styles.css" type="text/css"> ...
Read more >Edge Dev PDF reader with wrong title encoding
If you open a pdf file with a name containing Chinese, it shows title in a wrong encoding while the link itself and...
Read more >Solving R110Xi4 Tag Errors - VOIDS or Encoding the wrong tag
If your printer is printing VOIDS when you try to read or write to your RFID tags or encoding the wrong tag, try...
Read more >Unicode Labels - yWorks - yFiles Knowledge Base
Set the proper encoding. Files or streams contain only bytes which have to be properly interpreted in order to treat the contents in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry for disappearing, but other critcal things required my attention.
I’ve now updated to the latest version: 2.2.13
But the inconsistency seams to remain. Here comes a small example with
/
in nodes’ attributes and edges’ labels.The query
SELECT *
shows how the strings are stored escaped but also how they are returned escaped.Using gremlin (bundeled in the installation) to query on the attributes or labels return no elements.
Thanks, Martin
** Data have been loaded with the combination of your suggestions:
@smolinari you’ve already done much! Thank you =)