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

[JENKINS-64150] Fix blank manifest view #76

Closed

Conversation

abioteau
Copy link

@abioteau abioteau commented Jan 5, 2022

As describe on #75 and on JENKINS-64150, the repo manifest informations are blanked on existing jobs after restart of Jenkins server on release 1.14.0. It is related to changes made on #62.

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@abioteau abioteau force-pushed the bugfix/blank-manifest-view branch 2 times, most recently from 82d5de1 to 48e9a3b Compare January 5, 2022 10:21
@abioteau
Copy link
Author

abioteau commented Jan 5, 2022

Hi @francoisferrand, could you have a look on this PR?

@abioteau abioteau force-pushed the bugfix/blank-manifest-view branch from 48e9a3b to 5ceb8fe Compare May 30, 2022 11:00
@@ -47,7 +48,7 @@ public class ManifestAction implements RunAction2, Serializable, BuildBadgeActio
private static final long serialVersionUID = 1;

private transient Run<?, ?> run;
private transient RevisionState revisionState;
private RevisionState revisionState;
Copy link

@francoisferrand francoisferrand May 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revisionState is a large object, which should not be persisted I think; and it will anyway be re-loaded on call to setIndex, hence the transient annotation.
Isn't the @DataBoundSetter annotation enough to fix the problem here?

Copy link
Author

@abioteau abioteau May 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, I cannot test my fix.

I add @DataBoundSetter annotation to follow your comment in #75 but ManifestAction is not created from StaplerRequest.bindJSON() or StaplerRequest.bindParameters(), so I don't think setIndex will be call.

So I remove transient annotation to keep revisionState object has setIndex is only call at creation of ManifestAction.

@abioteau
Copy link
Author

Issue solved by #82

@abioteau abioteau closed this Sep 13, 2022
@abioteau abioteau deleted the bugfix/blank-manifest-view branch September 13, 2022 07:35
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

Successfully merging this pull request may close these issues.

2 participants