Uploaded image for project: 'Clowder'
  1. Clowder
  2. CATS-596

Creating a datapoint fails if no cache directory exists

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None
    • GeoStreams
    • None

      Steps to reproduce:

      1. Enable `geostream.cache` in custom.conf and point it to a directory that doesn't exist (or a directory that might someday go away, like /tmp/some_directory)
      2. POST a datapoint

      The error thrown:

      var jsonData = JSON.stringify({"badRequest": 'POST /api/geostreams/datapoints', "exceptions":'@70l66egmf: Execution exception in /Users/brockangelo/projects/clowder/app/api/Geostreams.scala:1522 at play.api.Application$class.handleError(Application.scala:293) at play.api.DefaultApplication.handleError(Application.scala:399) at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:264) at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:264)

      And here is line number 1522 in Geostreams.scala at the current commit

              brock Brock Angelo (Inactive)
              brock Brock Angelo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: