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

META-249 Publish any version of package headers #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

META-249 Publish any version of package headers #53

wants to merge 1 commit into from

Conversation

sherrif10
Copy link
Member

@sherrif10
Copy link
Member Author

In consideration, Package headers are published in xml format using xstreams, modifying this class was to bring out the aspect of getting latestSubscriptionHeaderView with groupuuid and version which was already defined . kindly review this PR and your advise is highly appreciated cc. @dkayiwa , @mogoodrich , @mozzy11

@sherrif10
Copy link
Member Author

Kindly review this PR cc @ibacher ,@dkayiwa

@sherrif10
Copy link
Member Author

Kindly review this ticket @rkorytkowski @dkayiwa @ibacher

Copy link
Member Author

@sherrif10 sherrif10 left a comment

Choose a reason for hiding this comment

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

LGTM cc @dkayiwa @ibacher

@@ -103,7 +102,7 @@ public ModelAndView getSubscriptionHeader(Model model, HttpServletRequest reques
header.setContentUri(PublishUtils.createRelativeURI("../" + pack.getGroupUuid() + "/" + pack.getVersion()
+ "/download"));
model.addAttribute("header", header);
return new ModelAndView(subscriptionHeaderView, model.asMap());
return new ModelAndView((String) subscriptionHeaderView, model.asMap());
Copy link
Member

Choose a reason for hiding this comment

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

Does this actually work? This seems like a weird cast...

@@ -49,13 +48,13 @@
* The controller for publish related pages.
*/
@Controller(MetadataSharingConsts.MODULE_ID + ".PublishController")
public class PublishController {
public class PublishController<GetLatestSubscriptionHeaderView> {
Copy link
Member

Choose a reason for hiding this comment

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

Do we need the type information here?

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