Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Projects and releases cannot be duplicated #417

Closed
mcjaeger opened this issue May 24, 2017 · 2 comments · Fixed by #419
Closed

Projects and releases cannot be duplicated #417

mcjaeger opened this issue May 24, 2017 · 2 comments · Fixed by #419
Assignees
Labels

Comments

@mcjaeger
Copy link
Contributor

mcjaeger commented May 24, 2017

(reported by users, thanks to Katja and Adrian!)

While testing merge request for 2.1.0-SNAPSHOT:

When trying to duplicate a project or a release, the message is e.g. "Projects is temporarily unavailable." and then the duplicate is not done.

just tested with ver simple project, looks like the custom map for roles was not covered here:

Caused by: java.lang.InstantiationException: bean customMap not found within scope
        at org.apache.jsp.html.projects.edit_jsp._jspService(edit_jsp.java:1057)
        ... 196 more
12:56:07,562 ERROR [http-nio-8080-exec-4][PortletServlet:116] javax.portlet.PortletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /html/utils/ajax/mapEditBody.jsp at line 15__12: <script src="<%=request.getContextPath()%>/js/external/jquery.validate.min.js" type="text/javascript"></script>_13: <script src="<%=request.getContextPath()%>/js/external/additional-methods.min.js" type="text/javascript"></script>_14: _15: <jsp:useBean id="customMap" type="java.util.Map<java.lang.String, java.util.Set<java.lang.String>>"  scope="request"/>_16: <core_rt:forEach items="<%=customMap.entrySet()%>" var="mapEntry" varStatus="loop1">_17:     <core_rt:forEach items="${mapEntry.value}" var="setItem" varStatus="loop2">_18:         <tr id="mapEditTableRow${loop1.count}_${loop2.count}" >___Stacktrace: [Sanitized]
javax.portlet.PortletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /html/utils/ajax/mapEditBody.jsp at line 15__12: <script src="<%=request.getContextPath()%>/js/external/jquery.validate.min.js" type="text/javascript"></script>_13: <script src="<%=request.getContextPath()%>/js/external/additional-methods.min.js" type="text/javascript"></script>_14: _15: <jsp:useBean id="customMap" type="java.util.Map<java.lang.String, java.util.Set<java.lang.String>>"  scope="request"/>_16: <core_rt:forEach items="<%=customMap.entrySet()%>" var="mapEntry" varStatus="loop1">_17:     <core_rt:forEach items="${mapEntry.value}" var="setItem" varStatus="loop2">_18:         <tr id="mapEditTableRow${loop1.count}_${loop2.count}" >___Stacktrace: [Sanitized]
@alexbrdn
Copy link
Contributor

quick search in the code shows that request attribute USING_PROJECTSis set at 14 places, but CUSTOM_MAPonly at 6. I suspect that the latter should also be set at all those places to prevent such errors

@maxhbr
Copy link
Member

maxhbr commented May 24, 2017

You are right:

2017-05-24_18 48 49
and
2017-05-24_18 50 36

maxhbr added a commit to bosch-io/sw360portal that referenced this issue May 24, 2017
maxhbr added a commit to bosch-io/sw360portal that referenced this issue May 24, 2017
closes sw360#417

Signed-off-by: Maximilian Huber <external.maximilian.huber2@bosch-si.com>
maxhbr added a commit to bosch-io/sw360portal that referenced this issue May 26, 2017
closes sw360#417

Signed-off-by: Maximilian Huber <external.maximilian.huber2@bosch-si.com>
alexbrdn added a commit that referenced this issue May 29, 2017
fix(projectportlet): fix issue #417 

reviewed-by: alex.borodin@evosoft.com
tested-by: alex.borodin@evosoft.com
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants