Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not create custom procedure with void return type using apoc.custom.declareProcedure #3349

Closed
sterin501 opened this issue Dec 1, 2022 · 0 comments

Comments

@sterin501
Copy link

Guidelines

It is not able to create a custom procedure using apoc.custom.declareProcedure for void return type .

dbms.setConfigValue() returns void and custom procedure can not be created .

CALL apoc.custom.declareProcedure(
  'setrole(ssorole::STRING) :: (row::MAP)',
  
  'CALL {CALL dbms.listConfig() YIELD name, value WHERE name CONTAINS "dbms.security.oidc.keycloak.authorization.group_to_role_mapping" RETURN value} 
  WITH value
  CALL dbms.setConfigValue("dbms.security.oidc.keycloak.authorization.group_to_role_mapping",value+$ssorole);'
  
);

Throws ==> Failed to invoke procedure apoc.custom.declareProcedure: Caused by: java.lang.NullPointerException

Expected Behavior (Mandatory)

It should create a custom procedure

Actual Behavior (Mandatory)

Throws ==> Failed to invoke procedure apoc.custom.declareProcedure: Caused by: java.lang.NullPointerException

How to Reproduce the Problem

Run the above code

Currently used versions

Versions

  • OS:
  • Neo4j:4.4.11
  • Neo4j-Apoc:4.4.11
conker84 added a commit to conker84/neo4j-apoc-procedures that referenced this issue Dec 6, 2022
…eturn type using apoc.custom.declareProcedure
conker84 added a commit to conker84/neo4j-apoc-procedures that referenced this issue Dec 16, 2022
…eturn type using apoc.custom.declareProcedure
@jexp jexp moved this to Todo in APOC Extended Larus Dec 20, 2022
@jexp jexp moved this from Todo to Done in APOC Extended Larus Dec 20, 2022
@jexp jexp moved this from Done to Review in APOC Extended Larus Dec 20, 2022
conker84 added a commit that referenced this issue Jan 16, 2023
vga91 pushed a commit that referenced this issue Jan 17, 2023
vga91 pushed a commit that referenced this issue Jan 17, 2023
vga91 pushed a commit that referenced this issue Jan 17, 2023
vga91 pushed a commit that referenced this issue Jan 18, 2023
vga91 pushed a commit that referenced this issue Jan 18, 2023
vga91 added a commit that referenced this issue Jan 30, 2023
conker84 pushed a commit that referenced this issue Jan 30, 2023
@vga91 vga91 closed this as completed in e8d2fca Jan 30, 2023
@github-project-automation github-project-automation bot moved this from Review to Done in APOC Extended Larus Jan 30, 2023
vga91 added a commit that referenced this issue Apr 28, 2023
…type using apoc.custom.declareProcedure (#3356) (#3406)

Co-authored-by: Andrea Santurbano <[email protected]>
@vga91 vga91 moved this from Done to Cherry-picked in APOC Extended Larus May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants