tubackkhoa / gbif-dataportal

Automatically exported from code.google.com/p/gbif-dataportal
0 stars 1 forks source link

data tracking area: fix download of log entries for new providers / datasets #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
For giving data providers access to the log entries regarding their
datasets, the data portal connects to the indexing database (e.g. from
http://data.gbif.org/datasets/resource/7858/indexing/20049001). 

For a newly registered dataset / provider, the provider and dataset entry
does exist on the indexing database, but not on the portal database. While
display in the web portal does work for new datasets, a download of the log
records fails:

java.lang.NullPointerException
        at
org.gbif.portal.web.controller.dataset.LogQuery.outputLogStats(LogQuery.java: 
124)
        at  
org.gbif.portal.web.download.log.LogFileWriter.writeFile(LogFileWriter.java:78)
        at org.gbif.portal.web.download.FileWriter.run(FileWriter.java:64)

Original issue reported on code.google.com by josecua...@gmail.com on 31 Jul 2009 at 1:15