[NAS-2790] Creation of domains out of a domainlist with two identical domain names fails Created: 17/Jul/18  Updated: 05/Feb/19  Resolved: 18/Jul/18

Status: Resolved
Project: NetarchiveSuite
Component/s: GUI
Affects Version/s: 5.4.2
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Andreas P Assignee: Andreas P
Resolution: Fixed  
Labels: Madrid
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Creation of domains out of a domainlist with two identical domain names (which are not exist in the database) fails

go to  /HarvestDefinition/Definitions-create-domain.jsp

Enter e.g.

test4.com
test4.com

click Create

 

dk.netarkivet.common.exceptions.PermissionDenied: Cannot create already existing domain Domain:test4.com;
Comment:;
Configurations:
defaultconfig;
Seedlists:
defaultseeds;
Passwords:
Extended Fields:
---------------

at dk.netarkivet.harvester.datamodel.DomainDBDAO.create(DomainDBDAO.java:112)
at dk.netarkivet.harvester.datamodel.DomainDAO.create(DomainDAO.java:82)
at dk.netarkivet.harvester.webinterface.DomainDefinition.createDomains(DomainDefinition.java:275)
at dk.netarkivet.harvester.webinterface.DomainDefinition.CreateDomainDefinitionListInRequest(DomainDefinition.java:430)
at org.apache.jsp.Definitions_002dcreate_002ddomain_jsp._jspService(Definitions_002dcreate_002ddomain_jsp.java:169)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

 

 



 Comments   
Comment by Andreas P [ 18/Jul/18 ]

https://github.com/netarchivesuite/netarchivesuite/pull/79

Generated at Mon Sep 21 20:43:51 CEST 2020 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.