Re: push messaging

2014-08-13 Thread Matthias Wessendorf
On Wed, Aug 13, 2014 at 7:57 AM, jas...@apps4u.com.au wrote:

 I was thinking that I would use these two packages as Ive got existing
 code using these two libraries and Ive got client side code that would not
 take long to add the the ios and Android SDK's that was I get auth for free
 from the sdk's  usergrid and the queue server can be a option either
 iron.io or beanstalk .


 com.google.android.gcm.server

 http://notnoop.github.com/java-apns



yep - we, internally, use the same bits




 August 13 2014 3:44 PM, jas...@apps4u.com.au wrote:
  Im get one of my team members to download your code and have a look
 weather this would could be
  integrated into usergrid.
 
  August 13 2014 3:36 PM, Matthias Wessendorf mat...@apache.org wrote:
 
  Hello Jason,
 
  perhaps you can integrate our UnifiedPush Server (e.g. running on a
  different box, or on Openshift).
  It supports the concept of Application:
 
 http://staging.aerogear.org/docs/unifiedpush/ups_userguide/admin-ui/#_sending_a_push_notification
 
  You can even narrow down to specific platforms (we call them Variants),
  e.g. just ping all Android (or iOS) users of the Application
 
  -Matthias
 
  On Wed, Aug 13, 2014 at 7:30 AM, jas...@apps4u.com.au wrote:
 
  HI I'm wanting to add push messaging to usergrid I would like to
 submit a
  pull request once its done but I wanted to get some input form the dev
 team
  on my Idea as I would like to submit a pull request ,
 
  The Idea I had for push messaging is a bit different to how ApiGee has
  implemented it I want to have notifiers but in context to a
 Application so
  instead of having notifiers for each type of device I want to have
 notifier
  for applications . Also the current code I have user queues to queue
 up the
  messages using either iron,io or beanstalk .
 
  Please let me know if this is not something that would be accepted as a
  pull request and if any body has any input please respond, I should
 have a
  pull request ready within a week.
 
  --
  Matthias Wessendorf
 
  blog: http://matthiaswessendorf.wordpress.com/
  sessions: http://www.slideshare.net/mwessendorf
  twitter: http://twitter.com/mwessendorf




-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf


[jira] [Created] (USERGRID-207) Fix license headers in portal Angular.js files

2014-08-13 Thread Lewis John McGibbney (JIRA)
Lewis John McGibbney created USERGRID-207:
-

 Summary: Fix  license headers in portal Angular.js files
 Key: USERGRID-207
 URL: https://issues.apache.org/jira/browse/USERGRID-207
 Project: Usergrid
  Issue Type: Story
  Components: Portal
Affects Versions: 1.0
Reporter: Lewis John McGibbney
Assignee: Lewis John McGibbney
Priority: Blocker
 Fix For: 1.0


As reported here [0], it appears the commit to add licnese headers to all HTML 
files in the codebase broke some parsing behavhiour for Angular.js.

The PR which is coming up fixes this for me locally as I now no longer have any 
errors or warnings when I debug thw portal code in the browser.

[0] 
http://www.mail-archive.com/dev%40usergrid.incubator.apache.org/msg01345.html



--
This message was sent by Atlassian JIRA
(v6.2#6252)


Re: AngularJS template error

2014-08-13 Thread Lewis John Mcgibbney
Hi Folks,
Please see
https://github.com/apache/incubator-usergrid/pull/44
and
https://issues.apache.org/jira/browse/USERGRID-207
Thanks
Lewis


On Tue, Aug 12, 2014 at 10:43 PM, Lewis John Mcgibbney 
lewis.mcgibb...@gmail.com wrote:

 I am going to fix this right now... but I actually feel that this must be
 a bug in Angular.
 I can't believe that I am 'fixing' an HTML file which contains a
 synatactically valid and legal HTML comment!!!
 PR coming up folks.
 Lewis


 On Tue, Aug 12, 2014 at 2:05 PM, Shawn Feldman shawn.feld...@gmail.com
 wrote:

 Thanks craig. Looks like a commit came in without a PR:(.

 Lewis, it looks like your commit broke the portal, can you resubmit with
 the headers under the root element?

 -shawn


 On Tue, Aug 12, 2014 at 12:23 PM, Charles Craig ccrai...@gmail.com
 wrote:

 Hi,

 I tried using Usergrid for the first time today and was unable to get
 the buttons in the admin portal to work. I noticed that Angular was
 throwing an error and also provided a link for more information (
 https://docs.angularjs.org/error/$compile/tplrt?p0=orgMenup1=menus%2ForgMenu.html
 ).

 Apparently, it does not like the commit from 4 days ago, “Add license
 headers to ALL HTML files in Usergrid” ( Example:
 https://github.com/apache/incubator-usergrid/blob/master/portal/js/menus/orgMenu.html
 ), because this adds a second element to the root level of template. I
 removed the html comments from all of the templates locally and things
 started working as they should.

 I would imagine you need that license in those files, though, so simply
 removing them like I did is not acceptable. I was wondering if wrapping the
 comment and the actual template code in yet another element would be a
 viable solution?

 This:

 !-- comment --
 ul…/ul

 Would become:

 div
 !-- comment --
 ul…/ul
 /div

 -charles





 --
 *Lewis*




-- 
*Lewis*


[GitHub] incubator-usergrid pull request: USERGRID-207 Fix license headers ...

2014-08-13 Thread lewismc
GitHub user lewismc opened a pull request:

https://github.com/apache/incubator-usergrid/pull/44

USERGRID-207 Fix license headers in portal Angular.js files

Hi Folks,
OK, this PR proposes the following

 * nests all Apache License headers within the root element of the HTML.
 * correctly formats the html within all the files touched by the above 
bullet format. 
That is it.
I am still slightly puzzled as to why Angular cannot interpret a perfectly 
legal HTML comment as such. Oh well... never mind. I may head over there if I 
find the energy later on tonight.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lewismc/incubator-usergrid master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-usergrid/pull/44.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #44


commit efade6fc817974b2ab04fb7b7fa5ceb4695151f5
Author: Lewis John McGibbney lewis.j.mcgibb...@jpl.nasa.gov
Date:   2014-08-13T06:24:42Z

USERGRID-207 Fix license headers in portal Angular.js files

commit a945495062e0f93815c2b375a4d2f477ed70d793
Author: Lewis John McGibbney lewis.j.mcgibb...@jpl.nasa.gov
Date:   2014-08-13T06:39:01Z

USERGRID-207 Fix license headers in portal Angular.js files




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (USERGRID-207) Fix license headers in portal Angular.js files

2014-08-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/USERGRID-207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14095213#comment-14095213
 ] 

ASF GitHub Bot commented on USERGRID-207:
-

GitHub user lewismc opened a pull request:

https://github.com/apache/incubator-usergrid/pull/44

USERGRID-207 Fix license headers in portal Angular.js files

Hi Folks,
OK, this PR proposes the following

 * nests all Apache License headers within the root element of the HTML.
 * correctly formats the html within all the files touched by the above 
bullet format. 
That is it.
I am still slightly puzzled as to why Angular cannot interpret a perfectly 
legal HTML comment as such. Oh well... never mind. I may head over there if I 
find the energy later on tonight.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lewismc/incubator-usergrid master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-usergrid/pull/44.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #44


commit efade6fc817974b2ab04fb7b7fa5ceb4695151f5
Author: Lewis John McGibbney lewis.j.mcgibb...@jpl.nasa.gov
Date:   2014-08-13T06:24:42Z

USERGRID-207 Fix license headers in portal Angular.js files

commit a945495062e0f93815c2b375a4d2f477ed70d793
Author: Lewis John McGibbney lewis.j.mcgibb...@jpl.nasa.gov
Date:   2014-08-13T06:39:01Z

USERGRID-207 Fix license headers in portal Angular.js files




 Fix  license headers in portal Angular.js files
 ---

 Key: USERGRID-207
 URL: https://issues.apache.org/jira/browse/USERGRID-207
 Project: Usergrid
  Issue Type: Story
  Components: Portal
Affects Versions: 1.0
Reporter: Lewis John McGibbney
Assignee: Lewis John McGibbney
Priority: Blocker
 Fix For: 1.0


 As reported here [0], it appears the commit to add licnese headers to all 
 HTML files in the codebase broke some parsing behavhiour for Angular.js.
 The PR which is coming up fixes this for me locally as I now no longer have 
 any errors or warnings when I debug thw portal code in the browser.
 [0] 
 http://www.mail-archive.com/dev%40usergrid.incubator.apache.org/msg01345.html



--
This message was sent by Atlassian JIRA
(v6.2#6252)


Triggers for Github PR's

2014-08-13 Thread Lewis John Mcgibbney
Hi Folks,
Whoever set up the triggers for Github PR's, thank you so bloody much.
I love this.
Lewis

-- 
*Lewis*


[jira] [Created] (USERGRID-208) License headers for all XML files

2014-08-13 Thread Lewis John McGibbney (JIRA)
Lewis John McGibbney created USERGRID-208:
-

 Summary: License headers for all XML files
 Key: USERGRID-208
 URL: https://issues.apache.org/jira/browse/USERGRID-208
 Project: Usergrid
  Issue Type: Improvement
Affects Versions: 1.0
Reporter: Lewis John McGibbney
Assignee: Lewis John McGibbney
Priority: Blocker
 Fix For: 1.0


This issue should add license headers to the following XML files

cloudbees.xml
maven-metadata-local.xml
usergrid-rest-deploy-context.xml





--
This message was sent by Atlassian JIRA
(v6.2#6252)


[GitHub] incubator-usergrid pull request: USERGRID-208 License headers for ...

2014-08-13 Thread lewismc
GitHub user lewismc opened a pull request:

https://github.com/apache/incubator-usergrid/pull/45

USERGRID-208 License headers for all XML files

Hi Folks,
Final commit simply adds license headers to all XML files e.g. 
```
modified:   
sdks/android/m2/repository/org/usergrid/usergrid-java-client/maven-metadata-local.xml
modified:   stack/cloudbees.xml
modified:   
stack/m2/repository/com/apple/AppleJavaExtensions/maven-metadata-local.xml
modified:   
stack/m2/repository/net/tanesha/recaptcha4j/recaptcha4j/maven-metadata-local.xml
modified:   
stack/m2/repository/org/usergrid/usergrid-java-client/maven-metadata-local.xml
modified:   stack/rest/src/test/resources/project.properties
modified:   
stack/rest/src/test/resources/usergrid-custom-test.properties
modified:   
stack/rest/src/test/resources/usergrid-rest-deploy-context.xml
modified:   stack/rest/src/test/resources/usergrid-test-context.xml
```
Once these ones are committed we only have 
javascript  
x-c 
x-java-source   
x-sh

Then we can roll a release candidate... I think.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lewismc/incubator-usergrid USERGRID-208

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-usergrid/pull/45.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #45


commit efade6fc817974b2ab04fb7b7fa5ceb4695151f5
Author: Lewis John McGibbney lewis.j.mcgibb...@jpl.nasa.gov
Date:   2014-08-13T06:24:42Z

USERGRID-207 Fix license headers in portal Angular.js files

commit a945495062e0f93815c2b375a4d2f477ed70d793
Author: Lewis John McGibbney lewis.j.mcgibb...@jpl.nasa.gov
Date:   2014-08-13T06:39:01Z

USERGRID-207 Fix license headers in portal Angular.js files

commit 18204c55686989380f5e0bfd384dbe9352408d10
Author: Lewis John McGibbney lewis.j.mcgibb...@jpl.nasa.gov
Date:   2014-08-13T07:02:21Z

USERGRID-208 License headers for all XML files




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (USERGRID-208) License headers for all XML files

2014-08-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/USERGRID-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14095229#comment-14095229
 ] 

ASF GitHub Bot commented on USERGRID-208:
-

GitHub user lewismc opened a pull request:

https://github.com/apache/incubator-usergrid/pull/45

USERGRID-208 License headers for all XML files

Hi Folks,
Final commit simply adds license headers to all XML files e.g. 
```
modified:   
sdks/android/m2/repository/org/usergrid/usergrid-java-client/maven-metadata-local.xml
modified:   stack/cloudbees.xml
modified:   
stack/m2/repository/com/apple/AppleJavaExtensions/maven-metadata-local.xml
modified:   
stack/m2/repository/net/tanesha/recaptcha4j/recaptcha4j/maven-metadata-local.xml
modified:   
stack/m2/repository/org/usergrid/usergrid-java-client/maven-metadata-local.xml
modified:   stack/rest/src/test/resources/project.properties
modified:   
stack/rest/src/test/resources/usergrid-custom-test.properties
modified:   
stack/rest/src/test/resources/usergrid-rest-deploy-context.xml
modified:   stack/rest/src/test/resources/usergrid-test-context.xml
```
Once these ones are committed we only have 
javascript  
x-c 
x-java-source   
x-sh

Then we can roll a release candidate... I think.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/lewismc/incubator-usergrid USERGRID-208

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-usergrid/pull/45.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #45


commit efade6fc817974b2ab04fb7b7fa5ceb4695151f5
Author: Lewis John McGibbney lewis.j.mcgibb...@jpl.nasa.gov
Date:   2014-08-13T06:24:42Z

USERGRID-207 Fix license headers in portal Angular.js files

commit a945495062e0f93815c2b375a4d2f477ed70d793
Author: Lewis John McGibbney lewis.j.mcgibb...@jpl.nasa.gov
Date:   2014-08-13T06:39:01Z

USERGRID-207 Fix license headers in portal Angular.js files

commit 18204c55686989380f5e0bfd384dbe9352408d10
Author: Lewis John McGibbney lewis.j.mcgibb...@jpl.nasa.gov
Date:   2014-08-13T07:02:21Z

USERGRID-208 License headers for all XML files




 License headers for all XML files
 -

 Key: USERGRID-208
 URL: https://issues.apache.org/jira/browse/USERGRID-208
 Project: Usergrid
  Issue Type: Improvement
Affects Versions: 1.0
Reporter: Lewis John McGibbney
Assignee: Lewis John McGibbney
Priority: Blocker
 Fix For: 1.0


 This issue should add license headers to the following XML files
 cloudbees.xml
 maven-metadata-local.xml
 usergrid-rest-deploy-context.xml



--
This message was sent by Atlassian JIRA
(v6.2#6252)


build errors

2014-08-13 Thread jasonk
Hi Im getting errors when trying to build Ive cloned the repo from github and I 
can run 
 mvn clean package -DskipTests=true 

 but If I try to run 

 mvn clean install -DskipTests=true  

 I get a error saying it can not create usergrid-rest.jar and I also get a 
error saying it  can not get hector.jar

 I can not run either 
 mvn  clean site -DskipTests=true 

 after running package I can run the local launcher but only if Im connected to 
the internet if I try to run the launcher on local mac when not conntected to 
the internet It won't run it gives me a error saying that there is a error in 
the beans  (standalone spring context) I don't know if they are the same issues 
or two different issues.

 any help would be good thanks.

  


Re: push messaging

2014-08-13 Thread Todd Nine
Hey Jason,
  We've already build this at Apigee.  We're in the process of contributing
it back, but I'm not sure on the timeline of this.  It's stable and been in
production use for some time.  Below is the documentation and the API
overview.

http://apigee.com/docs/app-services/content/push-notifications-overview

We've found our api works well and it's easy for our users to understand
and get set up.  Internally, we're using our scheduler to perform large
batch delivery, and the master/worker distribution semantics to increase
the delivery throughput.


For the push clients, we're using these libraries


iOs

https://github.com/relayrides/pushy/tree/master

Android

https://developer.android.com/google/gcm/client.html


Let me know if you have any more question.

Later,
Todd



On Wed, Aug 13, 2014 at 12:11 AM, Matthias Wessendorf mat...@apache.org
wrote:

 On Wed, Aug 13, 2014 at 7:57 AM, jas...@apps4u.com.au wrote:

  I was thinking that I would use these two packages as Ive got existing
  code using these two libraries and Ive got client side code that would
 not
  take long to add the the ios and Android SDK's that was I get auth for
 free
  from the sdk's  usergrid and the queue server can be a option either
  iron.io or beanstalk .
 
 
  com.google.android.gcm.server
 
  http://notnoop.github.com/java-apns



 yep - we, internally, use the same bits


 
 
  August 13 2014 3:44 PM, jas...@apps4u.com.au wrote:
   Im get one of my team members to download your code and have a look
  weather this would could be
   integrated into usergrid.
  
   August 13 2014 3:36 PM, Matthias Wessendorf mat...@apache.org
 wrote:
  
   Hello Jason,
  
   perhaps you can integrate our UnifiedPush Server (e.g. running on a
   different box, or on Openshift).
   It supports the concept of Application:
  
 
 http://staging.aerogear.org/docs/unifiedpush/ups_userguide/admin-ui/#_sending_a_push_notification
  
   You can even narrow down to specific platforms (we call them
 Variants),
   e.g. just ping all Android (or iOS) users of the Application
  
   -Matthias
  
   On Wed, Aug 13, 2014 at 7:30 AM, jas...@apps4u.com.au wrote:
  
   HI I'm wanting to add push messaging to usergrid I would like to
  submit a
   pull request once its done but I wanted to get some input form the
 dev
  team
   on my Idea as I would like to submit a pull request ,
  
   The Idea I had for push messaging is a bit different to how ApiGee
 has
   implemented it I want to have notifiers but in context to a
  Application so
   instead of having notifiers for each type of device I want to have
  notifier
   for applications . Also the current code I have user queues to queue
  up the
   messages using either iron,io or beanstalk .
  
   Please let me know if this is not something that would be accepted
 as a
   pull request and if any body has any input please respond, I should
  have a
   pull request ready within a week.
  
   --
   Matthias Wessendorf
  
   blog: http://matthiaswessendorf.wordpress.com/
   sessions: http://www.slideshare.net/mwessendorf
   twitter: http://twitter.com/mwessendorf
 



 --
 Matthias Wessendorf

 blog: http://matthiaswessendorf.wordpress.com/
 sessions: http://www.slideshare.net/mwessendorf
 twitter: http://twitter.com/mwessendorf



[GitHub] incubator-usergrid pull request: USERGRID-208 License headers for ...

2014-08-13 Thread shawnfeldman
Github user shawnfeldman commented on the pull request:

https://github.com/apache/incubator-usergrid/pull/45#issuecomment-52064838
  
i merged this request, also noticed the e2e tests weren't working


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (USERGRID-207) Fix license headers in portal Angular.js files

2014-08-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/USERGRID-207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14095584#comment-14095584
 ] 

ASF GitHub Bot commented on USERGRID-207:
-

Github user asfgit closed the pull request at:

https://github.com/apache/incubator-usergrid/pull/44


 Fix  license headers in portal Angular.js files
 ---

 Key: USERGRID-207
 URL: https://issues.apache.org/jira/browse/USERGRID-207
 Project: Usergrid
  Issue Type: Story
  Components: Portal
Affects Versions: 1.0
Reporter: Lewis John McGibbney
Assignee: Lewis John McGibbney
Priority: Blocker
 Fix For: 1.0


 As reported here [0], it appears the commit to add licnese headers to all 
 HTML files in the codebase broke some parsing behavhiour for Angular.js.
 The PR which is coming up fixes this for me locally as I now no longer have 
 any errors or warnings when I debug thw portal code in the browser.
 [0] 
 http://www.mail-archive.com/dev%40usergrid.incubator.apache.org/msg01345.html



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[GitHub] incubator-usergrid pull request: USERGRID-208 License headers for ...

2014-08-13 Thread shawnfeldman
Github user shawnfeldman commented on the pull request:

https://github.com/apache/incubator-usergrid/pull/45#issuecomment-52065095
  
also under running and deploying 
https://github.com/apache/incubator-usergrid/blob/master/portal/README.md#running-deploying-or-developing

you can run the e2e tests by running ./build.sh e2e, this will validate 
that nothing is broken


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (USERGRID-208) License headers for all XML files

2014-08-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/USERGRID-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14095589#comment-14095589
 ] 

ASF GitHub Bot commented on USERGRID-208:
-

Github user shawnfeldman commented on the pull request:

https://github.com/apache/incubator-usergrid/pull/45#issuecomment-52065095
  
also under running and deploying 
https://github.com/apache/incubator-usergrid/blob/master/portal/README.md#running-deploying-or-developing

you can run the e2e tests by running ./build.sh e2e, this will validate 
that nothing is broken


 License headers for all XML files
 -

 Key: USERGRID-208
 URL: https://issues.apache.org/jira/browse/USERGRID-208
 Project: Usergrid
  Issue Type: Improvement
Affects Versions: 1.0
Reporter: Lewis John McGibbney
Assignee: Lewis John McGibbney
Priority: Blocker
 Fix For: 1.0


 This issue should add license headers to the following XML files
 cloudbees.xml
 maven-metadata-local.xml
 usergrid-rest-deploy-context.xml



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[GitHub] incubator-usergrid pull request: USERGRID-207 Fix license headers ...

2014-08-13 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-usergrid/pull/44


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Created] (USERGRID-209) Fix JSP processing in two-dot-o branch

2014-08-13 Thread David Johnson (JIRA)
David Johnson created USERGRID-209:
--

 Summary: Fix JSP processing in two-dot-o branch
 Key: USERGRID-209
 URL: https://issues.apache.org/jira/browse/USERGRID-209
 Project: Usergrid
  Issue Type: Bug
  Components: Stack
Reporter: David Johnson
Assignee: David Johnson


In the two-dot-o branch, these fail due to JSP processing problem:
  MUUserResourceIT.checkPasswordReset:476 null
  MUUserResourceIT.checkPasswordChangeTime:594 null
  MUUserResourceIT.testUnconfirmedAdminLogin:200 » UniformInterface GET 
http://l...
  ApplicationResourceIT.authorizationCodeWithWrongCredentials:378 null

The four test methods above have been marked as Ignore.

To fix this bug you should re-enable those tests above and then fix whatever is 
breaking JSP processing in our test framework so that the tests will pass again 
as they did before in the master branch.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


Re: build errors

2014-08-13 Thread Shawn Feldman
also are you connected to the internet when you are building?

-shawn


On Wed, Aug 13, 2014 at 9:39 AM, Shawn Feldman shawn.feld...@gmail.com
wrote:

 what version of java and maven are you running?

 what is output of mvn -v?


 -shawn


 On Wed, Aug 13, 2014 at 1:08 AM, jas...@apps4u.com.au wrote:

 Hi Im getting errors when trying to build Ive cloned the repo from github
 and I can run
  mvn clean package -DskipTests=true

  but If I try to run

  mvn clean install -DskipTests=true

  I get a error saying it can not create usergrid-rest.jar and I also get
 a error saying it  can not get hector.jar

  I can not run either
  mvn  clean site -DskipTests=true

  after running package I can run the local launcher but only if Im
 connected to the internet if I try to run the launcher on local mac when
 not conntected to the internet It won't run it gives me a error saying that
 there is a error in the beans  (standalone spring context) I don't know if
 they are the same issues or two different issues.

  any help would be good thanks.







[jira] [Created] (USERGRID-210) Fix the test 10 app limit test in the two-dot-o branch

2014-08-13 Thread David Johnson (JIRA)
David Johnson created USERGRID-210:
--

 Summary: Fix the test 10 app limit test in the two-dot-o branch
 Key: USERGRID-210
 URL: https://issues.apache.org/jira/browse/USERGRID-210
 Project: Usergrid
  Issue Type: Bug
Reporter: David Johnson
Assignee: David Johnson


This test fails because it fails to account for default apps created by the 
test framework. Also, do we need to enforce a 10 app limit in Usergrid?

  ApplicationsIT.test10AppLimit:84 All elements removed expected:0 but was:3

The test method above has been marked as Ignore.

To fix this bug you should re-enable the test above and then fix the test to 
properly check the 10 app limit.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (USERGRID-211) Fix start paging in the two-dot-o branch

2014-08-13 Thread David Johnson (JIRA)
David Johnson created USERGRID-211:
--

 Summary: Fix start paging in the two-dot-o branch
 Key: USERGRID-211
 URL: https://issues.apache.org/jira/browse/USERGRID-211
 Project: Usergrid
  Issue Type: Bug
 Environment: This test fails because (apparently) startPaging is only 
be supported for queues and not for generic collections as this test assumes:

  PagingResourceIT.startPaging:127 expected:[9] but was:[0]

The test above has been marked as Ignore.

To fix this bug, re-enable the above test and then fix whatever has broken 
startPaging in generic collections. 

Also, consider this: do we really need start paging?
Reporter: David Johnson
Assignee: David Johnson






--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (USERGRID-212) Fix EventsResourceIT.testEventPostandGet in the two-dot-o branch

2014-08-13 Thread David Johnson (JIRA)
David Johnson created USERGRID-212:
--

 Summary: Fix EventsResourceIT.testEventPostandGet in the two-dot-o 
branch
 Key: USERGRID-212
 URL: https://issues.apache.org/jira/browse/USERGRID-212
 Project: Usergrid
  Issue Type: Bug
Reporter: David Johnson
Assignee: David Johnson


This test fails in code that is still using Hector. 

EventsResourceIT.testEventPostandGet:111 » UniformInterface GET 
http://localho...
org.apache.usergrid.persistence.exceptions.QueueException: Neccessary queue 
bounds not found
at 
org.apache.usergrid.mq.cassandra.io.AbstractSearch.getQueueRange(AbstractSearch.java:160)
at 
org.apache.usergrid.mq.cassandra.io.NoTransactionSearch.getIds(NoTransactionSearch.java:102)
at 
org.apache.usergrid.mq.cassandra.io.NoTransactionSearch.getResults(NoTransactionSearch.java:72)
at 
org.apache.usergrid.mq.cassandra.QueueManagerImpl.getFromQueue(QueueManagerImpl.java:404)
at 
org.apache.usergrid.rest.applications.events.EventsResource.executeGet(EventsResource.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)


The test method above has been marked as Ignored.

To fix this bug, re-enable the test, figure out why it fails and fix it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


Re: build errors

2014-08-13 Thread Todd Nine
The error you're seeing when you run the stack and aren't connected to the
internet
is the Spring XML validation failing.   We have a ticket open to turn that
off, but I'm not sure anyone has done it yet.

On Wednesday, August 13, 2014, Shawn Feldman shawn.feld...@gmail.com
wrote:

 also are you connected to the internet when you are building?

 -shawn


 On Wed, Aug 13, 2014 at 9:39 AM, Shawn Feldman shawn.feld...@gmail.com
 javascript:;
 wrote:

  what version of java and maven are you running?
 
  what is output of mvn -v?
 
 
  -shawn
 
 
  On Wed, Aug 13, 2014 at 1:08 AM, jas...@apps4u.com.au javascript:;
 wrote:
 
  Hi Im getting errors when trying to build Ive cloned the repo from
 github
  and I can run
   mvn clean package -DskipTests=true
 
   but If I try to run
 
   mvn clean install -DskipTests=true
 
   I get a error saying it can not create usergrid-rest.jar and I also get
  a error saying it  can not get hector.jar
 
   I can not run either
   mvn  clean site -DskipTests=true
 
   after running package I can run the local launcher but only if Im
  connected to the internet if I try to run the launcher on local mac when
  not conntected to the internet It won't run it gives me a error saying
 that
  there is a error in the beans  (standalone spring context) I don't know
 if
  they are the same issues or two different issues.
 
   any help would be good thanks.
 
 
 
 
 



-- 
https://pages.apigee.com/i-love-apis-2014.html?utm_source=sigutm_medium=email


[jira] [Assigned] (USERGRID-82) Cannot change custom entity name

2014-08-13 Thread Strong Liu (JIRA)

 [ 
https://issues.apache.org/jira/browse/USERGRID-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Strong Liu reassigned USERGRID-82:
--

Assignee: Strong Liu

 Cannot change custom entity name
 

 Key: USERGRID-82
 URL: https://issues.apache.org/jira/browse/USERGRID-82
 Project: Usergrid
  Issue Type: Bug
  Components: Stack
Reporter: Scott Ganyo
Assignee: Strong Liu
 Fix For: 1.1


 If you have a custom entity and attempt to update the entity's name (via 
 PUT), the system will accept the request and return success (200), but the 
 name will remain unchanged.
 eg. using ugc:
 ugc create foo name: 'bar'
 ugc update foo/bar name: 'baz'
 (Note: Referencing the entity in the PUT via UUID has the same effect.)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[GitHub] incubator-usergrid pull request: USERGRID-82 Cannot change custom ...

2014-08-13 Thread stliu
GitHub user stliu opened a pull request:

https://github.com/apache/incubator-usergrid/pull/46

USERGRID-82 Cannot change custom entity name

also, update log4j.xml to avoid duplicate log message
update spring configuration to configure static attribute

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/stliu/incubator-usergrid USERGRID-82

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-usergrid/pull/46.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #46


commit 19652732248af2855141371a83452bbd1515bd7a
Author: Strong Liu st...@hibernate.org
Date:   2014-08-13T18:26:54Z

USERGRID-82 Cannot change custom entity name
also, update log4j.xml to avoid duplicate log message
update spring configuration to configure static attribute




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (USERGRID-82) Cannot change custom entity name

2014-08-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/USERGRID-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14095887#comment-14095887
 ] 

ASF GitHub Bot commented on USERGRID-82:


GitHub user stliu opened a pull request:

https://github.com/apache/incubator-usergrid/pull/46

USERGRID-82 Cannot change custom entity name

also, update log4j.xml to avoid duplicate log message
update spring configuration to configure static attribute

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/stliu/incubator-usergrid USERGRID-82

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-usergrid/pull/46.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #46


commit 19652732248af2855141371a83452bbd1515bd7a
Author: Strong Liu st...@hibernate.org
Date:   2014-08-13T18:26:54Z

USERGRID-82 Cannot change custom entity name
also, update log4j.xml to avoid duplicate log message
update spring configuration to configure static attribute




 Cannot change custom entity name
 

 Key: USERGRID-82
 URL: https://issues.apache.org/jira/browse/USERGRID-82
 Project: Usergrid
  Issue Type: Bug
  Components: Stack
Reporter: Scott Ganyo
Assignee: Strong Liu
 Fix For: 1.1


 If you have a custom entity and attempt to update the entity's name (via 
 PUT), the system will accept the request and return success (200), but the 
 name will remain unchanged.
 eg. using ugc:
 ugc create foo name: 'bar'
 ugc update foo/bar name: 'baz'
 (Note: Referencing the entity in the PUT via UUID has the same effect.)



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (USERGRID-35) Cannot delete an entity that has a connection to it

2014-08-13 Thread Strong Liu (JIRA)

[ 
https://issues.apache.org/jira/browse/USERGRID-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14095896#comment-14095896
 ] 

Strong Liu commented on USERGRID-35:


I saw same issue before but can't remember how do i workarounded it :(
let me check once i have some time.

 Cannot delete an entity that has a connection to it
 ---

 Key: USERGRID-35
 URL: https://issues.apache.org/jira/browse/USERGRID-35
 Project: Usergrid
  Issue Type: Bug
  Components: Stack
Reporter: Rod Simpson
 Fix For: 1.1


 To repro, attempt to delete an entity that has a connection to it such as: 
 curl -X DELETE https://api.com/fdsafdsa/testapp/dog/Dachsund; 
 Notice that you get error message: 
 {error:class_cast,timestamp:1386200483978,duration:0,exception:java.lang.ClassCastException,error_description:org.usergrid.persistence.cassandra.ConnectedEntityRefImpl
  cannot be cast to org.usergrid.persistence.cassandra.ConnectionRefImpl} 
 It is expected that the entity is deleted and the connection is deleted as 
 well.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Resolved] (USERGRID-25) Unable to set token ttl. Defaults to 604800

2014-08-13 Thread Strong Liu (JIRA)

 [ 
https://issues.apache.org/jira/browse/USERGRID-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Strong Liu resolved USERGRID-25.


Resolution: Not a Problem
  Assignee: Strong Liu

this is not an issue, but the API probably is a little bit misleading

the api is POST /:org/:app/token {grant_type:password,username:aaa, 
password:bob, ttl:18000}

 Unable to set token ttl. Defaults to 604800
 ---

 Key: USERGRID-25
 URL: https://issues.apache.org/jira/browse/USERGRID-25
 Project: Usergrid
  Issue Type: Bug
  Components: Stack
Reporter: Rod Simpson
Assignee: Strong Liu
 Fix For: 1.1


 /token endpoint appears to be slightly busted. 
 Currently I am unable to set a token ttl with grant type password. No matter, 
 what I specify, the token is created with a ttl of 604800 
 For example, this: 
 curl -X POST -i -H Content-Type: application/json 
 https://api.usergrid.com/fdsafdsa/sandbox/token?ttl=180; -d 
 '{grant_type:password,username:b,password:b}' 
 returns this: 
 {access_token:YWMtQiN_UEyeEeO6-W_A3bgITwAAAUJ3GZZ9ep8l2ukYxkegT_wF_8x7VMgnyfw,expires_in:604800,user:{uuid:89469434-4b14-11e3-ae68-ff6ddb9bb1aa,type:user,name:b,created:1384203732578,modified:1384203732578,username:b,email:b...@b.com,activated:true,picture:http://www.gravatar.com/avatar/2076105f6efe7c11e285add95f514b9a}};



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (USERGRID-213) inconsistent api when setting ttl for token

2014-08-13 Thread Strong Liu (JIRA)
Strong Liu created USERGRID-213:
---

 Summary: inconsistent api when setting ttl for token 
 Key: USERGRID-213
 URL: https://issues.apache.org/jira/browse/USERGRID-213
 Project: Usergrid
  Issue Type: Improvement
  Components: Stack
Reporter: Strong Liu


found a problem when I'm working on a JIRA about setting ttl for a token

the token expires time is returned in SECONDs, but the ttl property used in 
acquire a token is required in MILLISECOND which really confused me.

And also, if the ttl value in request is less then 1000 (1s), the method 
_org.apache.usergrid.security.tokens.cassandra.TokenServiceImpl#calcTokenTime_ 
will resolve is to 0, which in turn, this exception gets thrown

me.prettyprint.hector.api.exceptions.HInvalidRequestException: 
InvalidRequestException(why:ttl must be positive)

I know it probably means nothing when set the ttl less then 1s, but we probably 
need to make some change about this



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[GitHub] incubator-usergrid pull request: USERGRID-63 JSON parse failure on...

2014-08-13 Thread stliu
GitHub user stliu opened a pull request:

https://github.com/apache/incubator-usergrid/pull/47

USERGRID-63 JSON parse failure on POST should not return HTTP 500 error



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/stliu/incubator-usergrid USERGRID-63

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-usergrid/pull/47.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #47


commit 30115d31c04df7f734ff0b8f74e70737862153a0
Author: Strong Liu st...@hibernate.org
Date:   2014-08-13T19:13:00Z

USERGRID-63 JSON parse failure on POST should not return HTTP 500 error




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Assigned] (USERGRID-63) JSON parse failure on POST should not return HTTP 500 error

2014-08-13 Thread Strong Liu (JIRA)

 [ 
https://issues.apache.org/jira/browse/USERGRID-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Strong Liu reassigned USERGRID-63:
--

Assignee: Strong Liu

 JSON parse failure on POST should not return HTTP 500 error
 ---

 Key: USERGRID-63
 URL: https://issues.apache.org/jira/browse/USERGRID-63
 Project: Usergrid
  Issue Type: Story
  Components: Stack
Reporter: Rod Simpson
Assignee: Strong Liu
 Fix For: 1.1


 Uatempting to POST data to /mcit/system.v1/errorlog and there is a problem 
 in the JSON they are posting. We are incorrectly returning a 500 error and we 
 should be giving them a 400 with an informative JSON parse failure error 
 message instead. 
 Here's the POST in the access log: 
 192.168.78.222 - - [25/Nov/2013:13:56:11 +] POST 
 /mcit/system.v1/errorlog HTTP/1.1 500 309 25 - application/json 
 Host: rtc02usergrid Name: 
 /var/log/tomcat7/localhost_access_log.2013-11-25.txt Category: 
 eu-west-1c-production-morrison-usergrid_tomcat 
 accept_header: - content_type: application/json date: 25/Nov/2013:13:56:11 
 + method: POST request: HTTP/1.1 request_time_ms: 25 size: 309 src_ip: 
 192.168.78.222 status: 500 url: /mcit/system.v1/errorlog 
 Here's the post in the catalina.out log: 
 2013-11-25 13:56:11,891 ERROR (http-bio-8080-exec-2835) [package 
 org.usergrid.rest.exceptions] - org.codehaus.jackson.JsonParseException 
 Server Error (500) 
 org.codehaus.jackson.JsonParseException: Unexpected character ('}' (code 
 125)): was expecting double-quote to start field name 
 at [Source: java.io.BufferedInputStream@7e93a1fc; line: 23, column: 18] 
 at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433) 
 at 
 org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
  
 at 
 org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)
  
 at 
 org.codehaus.jackson.impl.Utf8StreamParser._handleUnusualFieldName(Utf8StreamParser.java:1537)
  
 at 
 org.codehaus.jackson.impl.Utf8StreamParser._parseFieldName(Utf8StreamParser.java:1227)
  
 at 
 org.codehaus.jackson.impl.Utf8StreamParser.nextToken(Utf8StreamParser.java:495)
  
 at 
 org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.mapObject(UntypedObjectDeserializer.java:219)
  
 at 
 org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:47)
  
 at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2704) 
 at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1315) 
 at 
 org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(JacksonJsonProvider.java:419)
  
 at 
 com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.readFrom(JacksonProviderProxy.java:139)
  
 at 
 com.sun.jersey.core.impl.provider.entity.EntityHolderReader.readFrom(EntityHolderReader.java:120)
  
 at 
 com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:488)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)
  
 at 
 com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:183)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
  
 at 
 com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
  
 at 
 com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
  
 at 
 com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  
 at 
 com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
  
 at 
 com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  
 at 
 com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
  
 at 
 com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  
 at 
 com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
  
 at 
 com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  
 at 
 com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
  
 at 
 

[jira] [Commented] (USERGRID-63) JSON parse failure on POST should not return HTTP 500 error

2014-08-13 Thread Strong Liu (JIRA)

[ 
https://issues.apache.org/jira/browse/USERGRID-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14095959#comment-14095959
 ] 

Strong Liu commented on USERGRID-63:


PR created https://github.com/apache/incubator-usergrid/pull/47

 JSON parse failure on POST should not return HTTP 500 error
 ---

 Key: USERGRID-63
 URL: https://issues.apache.org/jira/browse/USERGRID-63
 Project: Usergrid
  Issue Type: Story
  Components: Stack
Reporter: Rod Simpson
Assignee: Strong Liu
 Fix For: 1.1


 Uatempting to POST data to /mcit/system.v1/errorlog and there is a problem 
 in the JSON they are posting. We are incorrectly returning a 500 error and we 
 should be giving them a 400 with an informative JSON parse failure error 
 message instead. 
 Here's the POST in the access log: 
 192.168.78.222 - - [25/Nov/2013:13:56:11 +] POST 
 /mcit/system.v1/errorlog HTTP/1.1 500 309 25 - application/json 
 Host: rtc02usergrid Name: 
 /var/log/tomcat7/localhost_access_log.2013-11-25.txt Category: 
 eu-west-1c-production-morrison-usergrid_tomcat 
 accept_header: - content_type: application/json date: 25/Nov/2013:13:56:11 
 + method: POST request: HTTP/1.1 request_time_ms: 25 size: 309 src_ip: 
 192.168.78.222 status: 500 url: /mcit/system.v1/errorlog 
 Here's the post in the catalina.out log: 
 2013-11-25 13:56:11,891 ERROR (http-bio-8080-exec-2835) [package 
 org.usergrid.rest.exceptions] - org.codehaus.jackson.JsonParseException 
 Server Error (500) 
 org.codehaus.jackson.JsonParseException: Unexpected character ('}' (code 
 125)): was expecting double-quote to start field name 
 at [Source: java.io.BufferedInputStream@7e93a1fc; line: 23, column: 18] 
 at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433) 
 at 
 org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
  
 at 
 org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)
  
 at 
 org.codehaus.jackson.impl.Utf8StreamParser._handleUnusualFieldName(Utf8StreamParser.java:1537)
  
 at 
 org.codehaus.jackson.impl.Utf8StreamParser._parseFieldName(Utf8StreamParser.java:1227)
  
 at 
 org.codehaus.jackson.impl.Utf8StreamParser.nextToken(Utf8StreamParser.java:495)
  
 at 
 org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.mapObject(UntypedObjectDeserializer.java:219)
  
 at 
 org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:47)
  
 at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2704) 
 at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1315) 
 at 
 org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(JacksonJsonProvider.java:419)
  
 at 
 com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.readFrom(JacksonProviderProxy.java:139)
  
 at 
 com.sun.jersey.core.impl.provider.entity.EntityHolderReader.readFrom(EntityHolderReader.java:120)
  
 at 
 com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:488)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)
  
 at 
 com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:183)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
  
 at 
 com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
  
 at 
 com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
  
 at 
 com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  
 at 
 com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
  
 at 
 com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  
 at 
 com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
  
 at 
 com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  
 at 
 com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
  
 at 
 com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
  
 at 
 com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
 

[jira] [Commented] (USERGRID-63) JSON parse failure on POST should not return HTTP 500 error

2014-08-13 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/USERGRID-63?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14095960#comment-14095960
 ] 

ASF GitHub Bot commented on USERGRID-63:


GitHub user stliu opened a pull request:

https://github.com/apache/incubator-usergrid/pull/47

USERGRID-63 JSON parse failure on POST should not return HTTP 500 error



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/stliu/incubator-usergrid USERGRID-63

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-usergrid/pull/47.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #47


commit 30115d31c04df7f734ff0b8f74e70737862153a0
Author: Strong Liu st...@hibernate.org
Date:   2014-08-13T19:13:00Z

USERGRID-63 JSON parse failure on POST should not return HTTP 500 error




 JSON parse failure on POST should not return HTTP 500 error
 ---

 Key: USERGRID-63
 URL: https://issues.apache.org/jira/browse/USERGRID-63
 Project: Usergrid
  Issue Type: Story
  Components: Stack
Reporter: Rod Simpson
Assignee: Strong Liu
 Fix For: 1.1


 Uatempting to POST data to /mcit/system.v1/errorlog and there is a problem 
 in the JSON they are posting. We are incorrectly returning a 500 error and we 
 should be giving them a 400 with an informative JSON parse failure error 
 message instead. 
 Here's the POST in the access log: 
 192.168.78.222 - - [25/Nov/2013:13:56:11 +] POST 
 /mcit/system.v1/errorlog HTTP/1.1 500 309 25 - application/json 
 Host: rtc02usergrid Name: 
 /var/log/tomcat7/localhost_access_log.2013-11-25.txt Category: 
 eu-west-1c-production-morrison-usergrid_tomcat 
 accept_header: - content_type: application/json date: 25/Nov/2013:13:56:11 
 + method: POST request: HTTP/1.1 request_time_ms: 25 size: 309 src_ip: 
 192.168.78.222 status: 500 url: /mcit/system.v1/errorlog 
 Here's the post in the catalina.out log: 
 2013-11-25 13:56:11,891 ERROR (http-bio-8080-exec-2835) [package 
 org.usergrid.rest.exceptions] - org.codehaus.jackson.JsonParseException 
 Server Error (500) 
 org.codehaus.jackson.JsonParseException: Unexpected character ('}' (code 
 125)): was expecting double-quote to start field name 
 at [Source: java.io.BufferedInputStream@7e93a1fc; line: 23, column: 18] 
 at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433) 
 at 
 org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
  
 at 
 org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)
  
 at 
 org.codehaus.jackson.impl.Utf8StreamParser._handleUnusualFieldName(Utf8StreamParser.java:1537)
  
 at 
 org.codehaus.jackson.impl.Utf8StreamParser._parseFieldName(Utf8StreamParser.java:1227)
  
 at 
 org.codehaus.jackson.impl.Utf8StreamParser.nextToken(Utf8StreamParser.java:495)
  
 at 
 org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.mapObject(UntypedObjectDeserializer.java:219)
  
 at 
 org.codehaus.jackson.map.deser.std.UntypedObjectDeserializer.deserialize(UntypedObjectDeserializer.java:47)
  
 at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2704) 
 at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1315) 
 at 
 org.codehaus.jackson.jaxrs.JacksonJsonProvider.readFrom(JacksonJsonProvider.java:419)
  
 at 
 com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.readFrom(JacksonProviderProxy.java:139)
  
 at 
 com.sun.jersey.core.impl.provider.entity.EntityHolderReader.readFrom(EntityHolderReader.java:120)
  
 at 
 com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:488)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)
  
 at 
 com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:183)
  
 at 
 com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
  
 at 
 com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
  
 at 
 com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
  
 at 
 

[jira] [Commented] (USERGRID-35) Cannot delete an entity that has a connection to it

2014-08-13 Thread Todd Nine (JIRA)

[ 
https://issues.apache.org/jira/browse/USERGRID-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14095964#comment-14095964
 ] 

Todd Nine commented on USERGRID-35:
---

Is this still broken?  I thought we fixed this a couple of months ago.

 Cannot delete an entity that has a connection to it
 ---

 Key: USERGRID-35
 URL: https://issues.apache.org/jira/browse/USERGRID-35
 Project: Usergrid
  Issue Type: Bug
  Components: Stack
Reporter: Rod Simpson
 Fix For: 1.1


 To repro, attempt to delete an entity that has a connection to it such as: 
 curl -X DELETE https://api.com/fdsafdsa/testapp/dog/Dachsund; 
 Notice that you get error message: 
 {error:class_cast,timestamp:1386200483978,duration:0,exception:java.lang.ClassCastException,error_description:org.usergrid.persistence.cassandra.ConnectedEntityRefImpl
  cannot be cast to org.usergrid.persistence.cassandra.ConnectionRefImpl} 
 It is expected that the entity is deleted and the connection is deleted as 
 well.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


Re: build errors

2014-08-13 Thread jasonk
yes


August 14 2014 1:41 AM, Shawn Feldman shawn.feld...@gmail.com wrote: 
 also are you connected to the internet when you are building?
 
 -shawn
 
 On Wed, Aug 13, 2014 at 9:39 AM, Shawn Feldman shawn.feld...@gmail.com
 wrote:
 
 what version of java and maven are you running?
 
 what is output of mvn -v?
 
 -shawn
 
 On Wed, Aug 13, 2014 at 1:08 AM, jas...@apps4u.com.au wrote:
 
 Hi Im getting errors when trying to build Ive cloned the repo from github
 and I can run
 mvn clean package -DskipTests=true
 
 but If I try to run
 
 mvn clean install -DskipTests=true
 
 I get a error saying it can not create usergrid-rest.jar and I also get
 a error saying it can not get hector.jar
 
 I can not run either
 mvn clean site -DskipTests=true
 
 after running package I can run the local launcher but only if Im
 connected to the internet if I try to run the launcher on local mac when
 not conntected to the internet It won't run it gives me a error saying that
 there is a error in the beans (standalone spring context) I don't know if
 they are the same issues or two different issues.
 
 any help would be good thanks.