WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@hmiyake

Description

@hmiyake

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions