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

Removing blacklisting with bad res_id returns 500 #2835

Closed
juholehtonen opened this issue Jan 24, 2022 · 0 comments
Closed

Removing blacklisting with bad res_id returns 500 #2835

juholehtonen opened this issue Jan 24, 2022 · 0 comments

Comments

@juholehtonen
Copy link
Collaborator

/api/blacklist/remove returns 500, if 'resource id' is wrong.

Trace:

2022-01-24 09:04:08,873 [qtp2068615081-21 3659397fef7a6b4607e76a7e81d8f52c4917edd7@elixir-europe.org POST /api/blacklist/remove] DEBUG o.e.jetty.server.HttpConnection - releaseRequestBuffer HttpConnection@6a1f41a4::SocketChannelEndPoint@6f1fadd6{l=/10.128.10.183:3001,r=/10.128.2.1:56060,OPEN,fill=-,flush=-,to=23/200000}{io=0/0,kio=0,kro=1}->HttpConnection@6a1f41a4[p=HttpParser{s=END,203 of 203},g=HttpGenerator@5290d9b3{s=START}]=>HttpChannelOverHttp@17c7b020{s=HttpChannelState@5dd21e36{s=HANDLING rs=BLOCKING os=OPEN is=IDLE awp=false se=false i=true al=0},r=1,c=false/false,a=HANDLING,uri=//rems-bona-fide-test.rahtiapp.fi/api/blacklist/remove,age=22}
2022-01-24 09:04:08,882 [qtp2068615081-21 3659397fef7a6b4607e76a7e81d8f52c4917edd7@elixir-europe.org POST /api/blacklist/remove] ERROR compojure.api.exception - resource doesn't exist
java.lang.IllegalArgumentException: resource doesn't exist
	at rems.db.blacklist$check_foreign_keys.invokeStatic(blacklist.clj:45)
	at rems.db.blacklist$check_foreign_keys.invoke(blacklist.clj:41)
	at rems.db.blacklist$add_event_BANG_.invokeStatic(blacklist.clj:50)
	at rems.db.blacklist$add_event_BANG_.invoke(blacklist.clj:49)
	at rems.api.services.blacklist$remove_user_from_blacklist_BANG_.invokeStatic(blacklist.clj:19)
	at rems.api.services.blacklist$remove_user_from_blacklist_BANG_.invoke(blacklist.clj:18)
	at rems.api.blacklist$fn__32228.invokeStatic(blacklist.clj:76)
	at rems.api.blacklist$fn__32228.invoke(blacklist.clj:71)
	at compojure.core$wrap_response$fn__5391.invoke(core.clj:158)
	at compojure.core$pre_init$fn__5444.invoke(core.clj:331)
	at compojure.api.coercion$wrap_coerce_response$fn__27344.invoke(coercion.clj:89)
	at compojure.core$pre_init$fn__5446$fn__5449.invoke(core.clj:338)
	at compojure.core$wrap_route_middleware$fn__5375.invoke(core.clj:127)
	at compojure.core$wrap_route_info$fn__5380.invoke(core.clj:137)
	at compojure.core$wrap_route_matches$fn__5384.invoke(core.clj:146)
	at compojure.core$wrap_routes$fn__5456.invoke(core.clj:351)
	at compojure.api.routes.Route.invoke(routes.clj:89)
	at compojure.core$routing$fn__5399.invoke(core.clj:185)
	at clojure.core$some.invokeStatic(core.clj:2701)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants