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 Network Fails in Webapp After Period of Inactivity #43

Open
ian-jarrett opened this issue Sep 6, 2024 · 0 comments
Open

Add Network Fails in Webapp After Period of Inactivity #43

ian-jarrett opened this issue Sep 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ian-jarrett
Copy link
Contributor

Summary
After approximately 90 minutes of inactivity in the webapp, it is impossible to add a new network. The UI gives a generic error, and by putting the browser into developer mode (F12), selecting "Network" and viewing the response traffic it is possible to see an HTTP Error 403. This is believed to be caused by the crumb that was originally generated for the session by Jenkins has timed out, and the resulting request is forbidden.

Workaround
From the nita host, restarting the webapp with nita-cmd webapp restart and logging back in fixes it (although the operation to add a new network will need to be repeated).

Culprit
It is unclear what the exact cause is, but we think that views.py is the first place to look. We noticed that these functions use crumbRequestor code:

  • deleteCampusTypeView
  • triggerAction

But these functions do not:

  • deleteCampusNetworkView
  • addCampusTypeView
  • addCampusNetworkView

Perhaps these other add & delete functions should also use the crumbRequestor code?

@ian-jarrett ian-jarrett added the bug Something isn't working label Sep 6, 2024
vpomuran added a commit to vpomuran/nita-webapp_cicd that referenced this issue Oct 17, 2024
…ctivity Juniper#43

      added ARM64 support. By some reason PyYAML 5.4 could not be built on ARM64 based ubuntu.
      Probably this issue: yaml/pyyaml#724.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants