Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-2790

Creation of domains out of a domainlist with two identical domain names fails

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.2
    • Fix Version/s: None
    • Component/s: GUI
    • Labels:

      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)

       

       

        Attachments

          Activity

            People

            • Assignee:
              aponb Andreas P
              Reporter:
              aponb Andreas P
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: