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

[v4r3] WebHandler does not accept numeric character in the handler name #730

Open
hmiyake opened this issue Mar 10, 2023 · 2 comments
Open

Comments

@hmiyake
Copy link

hmiyake commented Mar 10, 2023

With WebApp v4r3p11, we realized our handler does not work if its handler name contains numerical character (say B2XXX), while working with v4r2p12.
We think it comes from WebAppDIRAC/Core/HandlerMgr.py:

handlerRoute = hn[len(re.sub(r".[A-z]+$", "", hn)) :].replace(".", "/").replace("Handler", "")

We confirmed correct handlerRoute is given if "0-9" is added to the regular expression above.
May I open PR for that?

On the other hand, it's not trivial for me if WebApp v5 is affected since that code is much refactored in v5 and I could not find corresponding regular expression. I guess it is safe in v5...is it true?

@fstagni
Copy link
Contributor

fstagni commented Mar 10, 2023

Yes, do open a PR for v4r3. I let you discover about v5...

@hmiyake
Copy link
Author

hmiyake commented Mar 10, 2023

Okay, probably we are only community using numerical character...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants