summaryrefslogtreecommitdiff
path: root/issues/auth
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-05-15 18:58:39 +0300
committerMunyoki Kilyungi2024-05-15 18:58:39 +0300
commit7bbfaccdddc775f4e44ca9bfb744b09c78106bf0 (patch)
tree20b7ae53544cbe8c1487b319a56b31012e9d5569 /issues/auth
parent612bbb5db0eaef65faf2d2022602e11505383f46 (diff)
downloadgn-gemtext-7bbfaccdddc775f4e44ca9bfb744b09c78106bf0.tar.gz
New issue.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'issues/auth')
-rw-r--r--issues/auth/masquarade-as-bug.gmi49
1 files changed, 49 insertions, 0 deletions
diff --git a/issues/auth/masquarade-as-bug.gmi b/issues/auth/masquarade-as-bug.gmi
new file mode 100644
index 0000000..12c2c5f
--- /dev/null
+++ b/issues/auth/masquarade-as-bug.gmi
@@ -0,0 +1,49 @@
+# Can't Masquarade as another user as a system admin
+
+* assigned: fredm
+* tags: critical
+
+Right now you can't masquared as another user. Here's the trace:
+
+```
+ GeneNetwork 2.11-rc2 https://qa.genenetwork.org/oauth2/user/masquerade ( 3:38PM UTC May 15, 2024)
+Traceback (most recent call last):
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request
+ rv = self.dispatch_request()
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request
+ return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/gn2/wqflask/oauth2/users.py", line 126, in masquerade
+ return client.get("auth/user/list").either(
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/pymonad/either.py", line 91, in either
+ return left_function(self.monoid[0])
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/gn2/wqflask/oauth2/users.py", line 127, in <lambda>
+ lambda err: render_ui(
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/gn2/wqflask/oauth2/ui.py", line 22, in render_ui
+ return render_template(templatepath, **kwargs)
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/flask/templating.py", line 148, in render_template
+ return _render(
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/flask/templating.py", line 128, in _render
+ rv = template.render(context)
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/jinja2/environment.py", line 1291, in render
+ self.environment.handle_exception()
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/jinja2/environment.py", line 926, in handle_exception
+ raise rewrite_traceback_stack(source=source)
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/gn2/wqflask/templates/oauth2/masquerade.html", line 3, in top-level template code
+ {%from "oauth2/display_error.html" import display_error%}
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/gn2/wqflask/templates/base.html", line 200, in top-level template code
+ {% block content %}
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/gn2/wqflask/templates/oauth2/masquerade.html", line 7, in block 'content'
+ {{profile_nav("masquerade", user_privileges)}}
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/jinja2/runtime.py", line 777, in _invoke
+ rv = self._func(*arguments)
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/gn2/wqflask/templates/oauth2/profile_nav.html", line 58, in template
+ <a href="{{url_for('oauth2.user.login')}}">Login</a>
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/flask/helpers.py", line 336, in url_for
+ return appctx.app.handle_url_build_error(error, endpoint, values)
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/flask/helpers.py", line 323, in url_for
+ rv = url_adapter.build(
+ File "/gnu/store/5c185c9plrhqa0wg9cwi961qzw6gf43m-profile/lib/python3.10/site-packages/werkzeug/routing.py", line 2314, in build
+ raise BuildError(endpoint, values, method, self)
+werkzeug.routing.BuildError: Could not build url for endpoint 'oauth2.user.login'. Did you mean 'oauth2.user.logout' instead?
+
+```