TAN Lists | 14 Jul 2012 16:43

Wrong user being inserted when using API

Hey All,

When using the REST API to ack a notice i can see it is inserting "admin" as the user, despite logging in with a different user (which does have access to REST)
If i do it through the OpenNMS GUI it inserts the correct one

Command in use is:
curl -v -X POST -d 'ack' -u testuser:TEST http://opennmsdev:8980/opennms/rest/acks?notifId=45

It acks the event, but the ack'ing user always shows as admin

Is anyone able to replicate this?

Thoughts appreciated

Thanks guys!

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
TAN Lists | 18 Jul 2012 15:00

Re: Wrong user being inserted when using API

Anyone?

I just want to make sure i didnt do something silly - otherwise, i think it might be a bug, and ill create an issue

On 15 July 2012 00:43, TAN Lists <lists <at> theatticnetwork.net> wrote:
Hey All,

When using the REST API to ack a notice i can see it is inserting "admin" as the user, despite logging in with a different user (which does have access to REST)
If i do it through the OpenNMS GUI it inserts the correct one

Command in use is:
curl -v -X POST -d 'ack' -u testuser:TEST http://opennmsdev:8980/opennms/rest/acks?notifId=45

It acks the event, but the ack'ing user always shows as admin

Is anyone able to replicate this?

Thoughts appreciated

Thanks guys!

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Alejandro Galue | 18 Jul 2012 15:03
Favicon
Gravatar

Re: Wrong user being inserted when using API

Hello,

Which version of OpenNMS are you using ?

Alejandro.

On Jul 18, 2012, at 8:30 AM, TAN Lists wrote:

Anyone?

I just want to make sure i didnt do something silly - otherwise, i think it might be a bug, and ill create an issue

On 15 July 2012 00:43, TAN Lists <lists <at> theatticnetwork.net> wrote:
Hey All,

When using the REST API to ack a notice i can see it is inserting "admin" as the user, despite logging in with a different user (which does have access to REST)
If i do it through the OpenNMS GUI it inserts the correct one

Command in use is:
curl -v -X POST -d 'ack' -u testuser:TEST http://opennmsdev:8980/opennms/rest/acks?notifId=45

It acks the event, but the ack'ing user always shows as admin

Is anyone able to replicate this?

Thoughts appreciated

Thanks guys!

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
TAN Lists | 18 Jul 2012 15:14

Re: Wrong user being inserted when using API

Hey

I can see the issue in both 1.10.3 and after I upgraded to 1.10.4 today, the issue is still present

Running on CentOS 5.8 x64 installed from stable OpenNMS repo

On 18 July 2012 23:03, Alejandro Galue <agalue <at> opennms.org> wrote:
Hello,

Which version of OpenNMS are you using ?

Alejandro.

On Jul 18, 2012, at 8:30 AM, TAN Lists wrote:

Anyone?

I just want to make sure i didnt do something silly - otherwise, i think it might be a bug, and ill create an issue

On 15 July 2012 00:43, TAN Lists <lists <at> theatticnetwork.net> wrote:
Hey All,

When using the REST API to ack a notice i can see it is inserting "admin" as the user, despite logging in with a different user (which does have access to REST)
If i do it through the OpenNMS GUI it inserts the correct one

Command in use is:
curl -v -X POST -d 'ack' -u testuser:TEST http://opennmsdev:8980/opennms/rest/acks?notifId=45

It acks the event, but the ack'ing user always shows as admin

Is anyone able to replicate this?

Thoughts appreciated

Thanks guys!


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
TAN Lists | 19 Jul 2012 00:58

Re: Wrong user being inserted when using API

I found http://issues.opennms.org/browse/NMS-5183

But this suggests the opposite to what I'm seeing - i dont see the user and see admin for all acks, he is seeing users but wants admin from what i understand

On 18 July 2012 23:14, TAN Lists <lists <at> theatticnetwork.net> wrote:
Hey

I can see the issue in both 1.10.3 and after I upgraded to 1.10.4 today, the issue is still present

Running on CentOS 5.8 x64 installed from stable OpenNMS repo

On 18 July 2012 23:03, Alejandro Galue <agalue <at> opennms.org> wrote:
Hello,

Which version of OpenNMS are you using ?

Alejandro.

On Jul 18, 2012, at 8:30 AM, TAN Lists wrote:

Anyone?

I just want to make sure i didnt do something silly - otherwise, i think it might be a bug, and ill create an issue

On 15 July 2012 00:43, TAN Lists <lists <at> theatticnetwork.net> wrote:
Hey All,

When using the REST API to ack a notice i can see it is inserting "admin" as the user, despite logging in with a different user (which does have access to REST)
If i do it through the OpenNMS GUI it inserts the correct one

Command in use is:
curl -v -X POST -d 'ack' -u testuser:TEST http://opennmsdev:8980/opennms/rest/acks?notifId=45

It acks the event, but the ack'ing user always shows as admin

Is anyone able to replicate this?

Thoughts appreciated

Thanks guys!


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
TAN Lists | 23 Jul 2012 04:06

Re: Wrong user being inserted when using API

Anybody?

On 19 July 2012 08:58, TAN Lists <lists <at> theatticnetwork.net> wrote:
I found http://issues.opennms.org/browse/NMS-5183

But this suggests the opposite to what I'm seeing - i dont see the user and see admin for all acks, he is seeing users but wants admin from what i understand


On 18 July 2012 23:14, TAN Lists <lists <at> theatticnetwork.net> wrote:
Hey

I can see the issue in both 1.10.3 and after I upgraded to 1.10.4 today, the issue is still present

Running on CentOS 5.8 x64 installed from stable OpenNMS repo

On 18 July 2012 23:03, Alejandro Galue <agalue <at> opennms.org> wrote:
Hello,

Which version of OpenNMS are you using ?

Alejandro.

On Jul 18, 2012, at 8:30 AM, TAN Lists wrote:

Anyone?

I just want to make sure i didnt do something silly - otherwise, i think it might be a bug, and ill create an issue

On 15 July 2012 00:43, TAN Lists <lists <at> theatticnetwork.net> wrote:
Hey All,

When using the REST API to ack a notice i can see it is inserting "admin" as the user, despite logging in with a different user (which does have access to REST)
If i do it through the OpenNMS GUI it inserts the correct one

Command in use is:
curl -v -X POST -d 'ack' -u testuser:TEST http://opennmsdev:8980/opennms/rest/acks?notifId=45

It acks the event, but the ack'ing user always shows as admin

Is anyone able to replicate this?

Thoughts appreciated

Thanks guys!


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

Gmane