cartography icon indicating copy to clipboard operation
cartography copied to clipboard

ModuleSyncMetadata breaks for Okta trial

Open danielsaporo opened this issue 2 years ago • 3 comments

I am checking out Cartography with an Okta trial. So, my Okta account looks like trial-xxxxxxx.

When Okta finishes sync'ing, I get the following error in util.py:

{code: Neo.ClientError.Statement.SyntaxError} {message: Variable trial not defined (line 7, column 23 (offset: 277)) " n.groupid=trial-xxxxxxx,"

That's because the dash in the groupid breaks the syntax. To fix it, it's enough to surround the parameter with single quotes.

Note: the actual code I'm using is a little different since I've modified the Cypher queries to work with Neo4j 4.4, but you should be able to reproduce this on the current Cartography codebase.

danielsaporo avatar Jun 09 '22 09:06 danielsaporo

Thanks for the find. Can you submit a PR?

ramonpetgrave64 avatar Jun 22 '22 17:06 ramonpetgrave64

Is this issue still valid now that we are completely on Neo4j 4.x? If so, we'd love a PR from anyone to help out, looks like it'd be fairly quick to do.

achantavy avatar Nov 08 '22 23:11 achantavy

@achantavy From my end I don't have access to a trial any more (it expired) so I can neither answer the question nor test a potential fix before submitting it. If someone else could check this quickly, it would be great.

danielsaporo avatar Nov 09 '22 10:11 danielsaporo