Rhizi / rhizi

Connective intelligence
GNU Affero General Public License v3.0
13 stars 3 forks source link

Error when using :, ", ?,., or ' chars in input bar. #594

Closed Garbash closed 8 years ago

Garbash commented 9 years ago

If I type in input bar ":" or "test hello:" or "hello is: fine": I get the following error: ajax error: status: 'error', error-msg: cypher parse error: rgx match failure: rgx: ^(?P<value>[\w\d_\-\s]+(\*\d*\.\.\d*)?)(?P.*)$, input: "Is: {link_attr}]->(dst) with r, src, dst order by r.id return {id: r.id, src_id: src.id, __dst_id: dst.id, type: type(r)}"on_error_wrapper @ rz_api_backend.js:25jQuery.Callbacks.fire @ jquery.js:3119jQuery.Callbacks.self.fireWith @ jquery.js:3231done @ jquery.js:9277jQuery.ajaxTransport.send.callback @ jquery.js:9685

alon commented 9 years ago

אוקיי, קל לתיקון.

On 07/30/2015 10:49 AM, dor garbash wrote:

If I type in input bar ":" or "test hello:" or "hello is: fine": I get the following error: ajax error: status: 'error', error-msg: cypher parse error: rgx match failure: rgx: ^|(?P[\w\d-\s]+(*\d..\d_)?)|(?P.*)$, input: "|Is:| {link_attr}]->(dst) with r, src, dst order by r.id return {id: r.id, src_id: src.id, __dst_id: dst.id, type: type(r)}"on_error_wrapper @ rz_api_backend.js:25jQuery.Callbacks.fire @ jquery.js:3119jQuery.Callbacks.self.fireWith @ jquery.js:3231done @ jquery.js:9277jQuery.ajaxTransport.send.callback @ jquery.js:9685

— Reply to this email directly or view it on GitHub https://github.com/Rhizi/rhizi/issues/594.

Garbash commented 9 years ago

Note that I've add " and ? chars as ones that also cause error

alon commented 9 years ago

Fixed by 2f0be9ac314efc927ba7dd108908306622193957.

Note that the double quote char is accepted but dropped silently. Opened issue #623 to track that.

Garbash commented 8 years ago

Another critical chars causing same bug: . " ) (

Garbash commented 8 years ago

It's in fact a different bug, as the nodes are actually created, just not displayed after submit. Posting this as a separate issue