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

add proper support for tm_user_webdir = None #8768

Closed
belforte opened this issue Nov 6, 2024 · 1 comment
Closed

add proper support for tm_user_webdir = None #8768

belforte opened this issue Nov 6, 2024 · 1 comment
Assignees

Comments

@belforte
Copy link
Member

belforte commented Nov 6, 2024

current code fails with HTTP 500.
Returning "None" is a gentler way which allows the calling client to deal with it.
Ref: #6544 (comment)

code is

if row.user_webdir:
#extract /cms1425/taskname from the user webdir
suffix = re.search(r"(/[^/]+/[^/]+/?)$", row.user_webdir).group(0)
else:
raise ExecutionError("Webdir not set in the database. Cannot build proxied webdir")

And in the example reported in there the DB has this (from the UI )
image

@belforte belforte self-assigned this Nov 6, 2024
belforte added a commit to belforte/CRABServer that referenced this issue Nov 6, 2024
@belforte
Copy link
Member Author

belforte commented Nov 7, 2024

closed via #8767

@belforte belforte closed this as completed Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant