aodn / aatams

Animal Tracking (formerly AATAMS)
https://aatams.aodn.org.au
8 stars 3 forks source link

Unable to register new tags #345

Closed xhoenner closed 8 years ago

xhoenner commented 8 years ago

Reported by @astecken and Phil McDowall on 29/07/2016.

Steps to reproduce

Go to the [Animal Tracking web app](https://animaltracking.aodn.org.au). Log in as an admin. Then go to the [Tag creation page](https://animaltracking.aodn.org.au/sensor/create). Enter the information indicated in the image below. ![screen shot 2016-08-01 at 1 24 48 pm](https://cloud.githubusercontent.com/assets/3443821/17282643/6271416a-57eb-11e6-8448-750d0fb53e4a.jpg) Then hit the `Create` button.

What happens?

The web app returns the error below. ![screen shot 2016-08-01 at 1 26 11 pm](https://cloud.githubusercontent.com/assets/3443821/17282674/9f9509aa-57eb-11e6-92ef-f4c52a0bd22a.jpg)

What should happen?

No error should be returned. As a consequence of this bug it is now impossible for users to register tags via the web app. I therefore suggest to raise this bug as a VIT @smancini and @pblain.

ghost commented 8 years ago

@xhoenner @julian1 We will most likely need to rollback https://github.com/aodn/chef-private/pull/1991/files and https://github.com/aodn/chef/pull/372 unless the source of the "/aatams" URI(s) can be identified...

xhoenner commented 8 years ago

that's fine with me @lwgordonimos.

julian1 commented 8 years ago

Wouldn't a hibernate issue be more likely to be caused by some database inconsistency and the db updates, rather than shuffling around of uris?

ghost commented 8 years ago

@julian1 It seemed very suspicious that the error refers to a "/aatams" URL. Unless it only occurred during the transition.

@xhoenner is this something you are able to replicate yourself currently?

julian1 commented 8 years ago

@lwgordonimos Can you point me at the /aatams URL?.

Note that the au.org.emii.aatams stuff in the trace is just the java namespacing used in the app and is expected.

julian1 commented 8 years ago

Ok, I see it.

xhoenner commented 8 years ago

Would you mind trying to register those tags again @astecken and let us know if it's okay now or if you're still experiencing the same issue?

astecken commented 8 years ago

Just checked. Issue remains.

julian1 commented 8 years ago

probably best to wait and we can try to run up a copy to experiment on.

jonescc commented 8 years ago

Problem occurs when using the Create Tag (or Sensor) page to add a new sensor to a tag that already exists, changing the device model at the same time.

bhasin85 commented 8 years ago

Issue fixed.

create tag

xhoenner commented 8 years ago

Can this issue be closed then @bhasin85?

bhasin85 commented 8 years ago

Sure :)