Neo4j Traverser not working probably - traversal

I have the following tree:
1-[HAS]->2-[HASSUBPAGE]->3-[HASSUBPAGE]->4
Now I want to traverse this tree starting at 4 and go up to 1 with this traverser (postng to /db/data/node/4/traverse/node):
{"order":"breadth_first","uniqueness":"node_path","relationships":[{"type":"HASSUBPAGE","direction":"in"},{"type":"HAS","direction":"in"}]}
But it stops at node 3 so all I get is node 3.
Any Ideas, why?

You must provide the max_depth parameter, as it defaults to 1 (to prevent infinite traversals).
Please try that and report if it worked for you.

Related

Query builder API is giving 0 results in publish, But the /libs/cq/search/content/querydebug.html console is giving proper result

I am using Query builder API in java code to get pages with a particluar tag, In all environments its is giving a proper result, But in one of the environment it is giving 0 results in publish,We cross verified the permissions also. Not sure why this is happening.
But the /libs/cq/search/content/querydebug.html console is giving proper result.
We have found the solution for it,
I tried Running the Querydebug.html, it gave me proper result.
We fixed it by giving permission to etc node(root node) and specific child nodes.
Earlier we missed giving permission to etc(root node) node(but gave read permission to child nodes).

How to disable HTML transformation in TYPO3 8 LTS completely

In TYPO3 8.7.8 LTS and a clean installation with the setting to create one blank basis page during install and the CKEditor extension disabled when you write something in a text element (I think it is the tt_content.bodytext field) it gets transformed (<p> tags added, line breaks removed etc...) even so there is no WYSIWYG-Editor enabled. So this transformation has to happen in the TYPO3 backend.
I'm trying to disable this now for a while but I failed so far. I tried the approaches from https://docs.typo3.org/typo3cms/CoreApiReference/Rte/Transformations/Tsconfig/Index.html
And here mainly
This configuration in "Page TSconfig" will disable the RTE altogether:
RTE.default.disabled = 1
To be precise my Page TSConfig looks like this and the transformation still happens:
RTE.default.proc.dontRemoveUnknownTags_db = 1
RTE.default.proc.entryHTMLparser_db = 0
RTE.default.proc.exitHTMLparser_db = 0
RTE.default.disabled = 1
RTE.config.tt_content.bodytext.proc.dontRemoveUnknownTags_db = 1
RTE.config.tt_content.bodytext.proc.entryHTMLparser_db = 0
RTE.config.tt_content.bodytext.proc.exitHTMLparser_db = 0
RTE.config.tt_content.bodytext.disabled = 1
So the question is, how can I disable the HTML transformations completely? Do I need to add something in the TypoScript Setup (I tried a bit but no luck) or do I have to do something completely different/in a different stop than the Page TSConfig?
Looking at (and debugging) \TYPO3\CMS\Core\Html\RteHtmlParser and here RTE_transform($value, $specConf = [], $direction = 'rte', $thisConfig = []) which seems to be the responsible function for the transformation of this field, I know that the transformations for my case happen in the mode foreach.
I also know that my RTE.default.disabled = 1 wasn't in the wrong place. It was part of the loaded config, however at least at this point it has no effect at all.
What has an effect is setting RTE.default.proc.overruleMode = none or RTE.default.proc.mode = none. One would do it and any string which is not a registered mode works to disable any transformation.
IMHO: The TYPO3 documentation seems as messy as its code base, maybe RTE.default.disabled = 1 has a use case somewhere and maybe you would find it if you would digg further into the documentation but I fear it may also just be an artefact from some old version which most of this pre- and postprocessing logic seems to be (and from what I've seen here in the last two hours I'm not confident other parts of this framework are 'modern', the mere amount of db queries for simplest backend tasks indicates I could be right). Anyways, my problem is solved and good luck to anyone who also needs to work with this reptile from the past for some reason.
tl;dr: set RTE.default.proc.overruleMode = none in your Page TSConfig

mbsync error: UID is beyond highest assigned UID

I'm using emacs 24.5.1 on OSX with mu4e and mbsync. I'm synchronising with my imac and laptop so maybe it's the same error as mentioned here, but no one has posted a solution.
My specific error is that during the sync I'm receiving the following:
mbsync error: UID is 3 beyond highest assigned UID 1
mbsync error: UID is 7 beyond highest assigned UID 6
Any ideas on what's causing this and how to solve it?
I was able to fix this by editing the .uidvalidity file in the folder(s) in question; the second line is the maximum value U= filename. So I just changed this to match and it synced perfectly.
In yourMaildir/INBOX/cur folder (or Maildir/otherfolder/cur), there'll be a file named something like 1568901502.26338_1.hostname,U=3:2,S. You can strip off everything from the ,U= from that filename and resync and it should be fine, e.g.
mv '1568901502.26338_1.hostname,U=3:2,S' '1568901502.26338_1.hostname'
This also solves the duplicate UID error. See http://tiborsimko.org/mbsync-duplicate-uid.html for more info.
This has worked for me – but since mbsync doesn't do it automatically there may be some good reason, so take a backup before you try :)
Try this:
(setq mu4e-change-filenames-when-moving t)
If that doesn't work, you can do what I did and start over by creating a new mu4e Mail folder and resyncing everything. Your messages will just download to the new folder with new UID's.
I had a similar issue with a quite big inbox with lots of nested folders. I wanted to go for the solution #unhammer provided but I had a hard time finding the problematic message. (grepping UID didn't help because I had tons of e-mails with the same UID). What I did was to note the number of the problematic box.
C: 0/1 B: 133/162 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
Maildir error: UID 22 is beyond highest assigned
Then I ran with verbose option mbsync -V mymailchannel. The verbose option outputs so much information quite quickly. But I knew where to stop, so I stopped when we passed the number 133. (Of course, you can write it to a file and just grep it with the few lines above).
And there was my problematic folder:
C: 0/1 B: 133/262 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
Opening master box INBOX/my_folder/2020/my_other_folder...
Opening slave box INBOX/my_folder/2020/my_other_folder...
Loading master...
Loading slave...
Maildir error: UID 22 is beyond highest assigned UID 21.
And stipped off everything from ,U=22 in my problematic file as #unhammer suggested and my problem was fixed.

neo4j spatial findGeometriesWithinDistance REST

Using neo4j 1.9 and neo4j spatial for 1.9.
Trying to get findGeometriesWithinDistance REST call working.
I can confirm that the install has worked and that the function exists BUT, using the http console I get a "Node 0 does not exist" error. The REST request I make is exactly as in the docs but instead of returning nodes I get this error.
What is going on that requires node 0 to exist and hence causes the error?
For info, the REST findGeometriesInBBox works fine.
On Further Investigation...
Using py2neo to interact with the DB. In particular, we make use of the GregorianCalendar functionality (see here). When removed from our logic the process of findGeometriesWithinDistance works fine.
Looking into it further, there are comments in the py2neo code that say #retain a handle to the root node (see the first code example here).
Does this "handle" do something with the node of index 0 so we can't use it?
Did you accidentally clean out your database?
I.e. remove node 0, which was the reference node that neo4j-spatial connected its root elements to (in 1.9)?

SAMLart How built it?

Well, i have 2 apps(idp, sp) and I tried to communicate both for Artifact... but i don't knowed how doing...
And I found googling this steps: http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0-cd-02_html_19b6d40c.gif
but now i questioned... how operate for this via (between step 4 to 5 with Java)?
What object i must build for pass this to SAMLart parameter?
Thanks for Advance!
Looks like you can use this class in opensaml http://www.jarvana.com/jarvana/view/org/opensaml/opensaml/2.4.1/opensaml-2.4.1-javadoc.jar!/org/opensaml/saml2/core/Artifact.html
My guess is that you use this one to send it to SP
http://www.jarvana.com/jarvana/view/org/opensaml/opensaml/2.4.1/opensaml-2.4.1-javadoc.jar!/org/opensaml/saml2/binding/encoding/HTTPArtifactEncoder.html