[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-09-08 Thread Jussi Kangas
Tested with rtm silo 001 in Krillin r16 and utopic silo 18 in mako r221.
Fix works.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-09-08 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/utopic-proposed/ofono

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-09-08 Thread Launchpad Bug Tracker
This bug was fixed in the package ofono -
1.12.bzr6876+14.10.20140904-0ubuntu1

---
ofono (1.12.bzr6876+14.10.20140904-0ubuntu1) utopic; urgency=medium

  [ Jussi Kangas ]
  * src/gprs.c: Fix to allow MMS properties to be set (LP: #1362068)

  [ Tony Espy ]
  * rilmodem/sim.c: Fix EnterPIN logic (LP: #1363413)

  [ Ubuntu daily release ]
  * New rebuild forced
 -- Ubuntu daily release ps-jenk...@lists.canonical.com   Thu, 04 Sep 2014 
22:31:59 +

** Changed in: ofono (Ubuntu)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-09-08 Thread Tony Espy
** Changed in: ofono (Ubuntu RTM)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-09-04 Thread Launchpad Bug Tracker
** Branch linked: lp:~phablet-team/ofono/lp1363413

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-09-04 Thread Tony Espy
** Changed in: ofono (Ubuntu)
   Status: In Progress = Fix Committed

** Changed in: ofono (Ubuntu RTM)
   Status: In Progress = Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-09-03 Thread Tony Espy
** Also affects: ofono (Ubuntu RTM)
   Importance: Undecided
   Status: New

** Changed in: ofono (Ubuntu RTM)
   Status: New = Confirmed

** Changed in: ofono (Ubuntu RTM)
   Importance: Undecided = Critical

** Changed in: ofono (Ubuntu RTM)
 Assignee: (unassigned) = Tony Espy (awe)

** Changed in: ofono (Ubuntu)
   Status: Confirmed = In Progress

** Changed in: ofono (Ubuntu RTM)
   Status: Confirmed = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-09-02 Thread Pat McGowan
need this for APN support among other things

** Tags added: rtm14

** Changed in: ofono (Ubuntu)
   Importance: Undecided = Critical

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-09-02 Thread Pat McGowan
** Changed in: ofono (Ubuntu)
 Assignee: Antti Kaijanmäki (kaijanmaki) = Tony Espy (awe)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-09-01 Thread Jussi Kangas
Sure.  Here it is:

https://github.com/rilmodem/ofono/pull/114

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-08-29 Thread Jussi Kangas
Sorry I wrote down wrong line number. It should have been 1231.

Fix proposal can be found from
https://github.com/jkangas/ofono-1/commit/d0cc0d4723f550bd0fefbadd64a220b938af6695

When you set the property using for example test case set-context-
property you call method context interface method SetProperty, which is
mapped to method pri_set_property in gprs.c GDBusMethodTable
context_methods.

I added some additional traces as following to my proposed fix:

DBG(JUSSI LOGS: ctx-type is %d., ctx-type)

if (ctx-type == OFONO_GPRS_CONTEXT_TYPE_ANY ||
ctx-type == OFONO_GPRS_CONTEXT_TYPE_WAP || 
ctx-type == OFONO_GPRS_CONTEXT_TYPE_IMS) {

DBG(JUSSI LOGS: Calling invalid args.)

return __ofono_error_invalid_args(msg);
}

Now, my context listing gives this value for context 2

[ /ril_0/context2 ]
IPv6.Settings = { }
Password = 
Active = 0
Type = wap
Settings = { }
Username = 
Protocol = ip
AccessPointName = mms
Name = PALLO

If I run this:

set-context-property 1 MessageCenter KOEPALLO

I get response Invalid arguments in method call as expected

and traces show

JUSSI LOGS: ctx-type is 3.
JUSSI LOGS: Calling invalid args.

Next if I change the type to mms and try to set the MessageCenter like
this

set-context-property 1 Type mms
set-context-property 1 MessageCenter KOEPALLO

I get no error from the scripts and extra logs are just

JUSSI LOGS: ctx-type is 2.

Now, if I add same extra traces to original
7f3955122af8b0349fb7d3f2db8abd754459d146 fix like this:

DBG(JUSSI LOGS: ctx-type is %d., ctx-type);

if (ctx-type != OFONO_GPRS_CONTEXT_TYPE_MMS ||
ctx-type != OFONO_GPRS_CONTEXT_TYPE_INTERNET) {

DBG(JUSSI LOGS: Calling invalid args.);

return __ofono_error_invalid_args(msg);
}

And do the same steps, I get

JUSSI LOGS: ctx-type is 3.
JUSSI LOGS: Calling invalid args

to first attempt and later one to the second.

JUSSI LOGS: ctx-type is 2.
JUSSI LOGS: Calling invalid args.

I think this proves the issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-08-29 Thread Tony Espy
Got it, it makes sense now.

The check says if the context is NOT MMS  *OR* NOT INTERNET then return
invalid args.  Well if it's MMS then it's NOT INTERNET, and visa versa.
Pretty dumb mistake.

Can you please go ahead an propose a pull request against
rilmodem/ofono?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-08-28 Thread Jussi Kangas
** Changed in: ofono (Ubuntu)
   Status: Incomplete = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-08-28 Thread Jussi Kangas
This seems to be caused by commit
7f3955122af8b0349fb7d3f2db8abd754459d146: src: allow MessageCenter/Proxy
for TYPE_INTERNET. Invalid arguments is returned by change introduced
in line 2921 in the commit.

I recommed changing the check as follows:

if (ctx-type == OFONO_GPRS_CONTEXT_TYPE_ANY ||
ctx-type == OFONO_GPRS_CONTEXT_TYPE_WAP || 
ctx-type == OFONO_GPRS_CONTEXT_TYPE_IMS)
return __ofono_error_invalid_args(msg);

That seems to fix  the problem.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-08-28 Thread Tony Espy
@Jussi

Please either include the git repository or more preferred an actual
hyperlink to the commit on github, as it makes it easier for someone
looking at the bug to view directly.

https://github.com/rilmodem/ofono/commit/7f3955122af8b0349fb7d3f2db8abd754459d146

I'm not sure I understand how the check in provision_context() could
trigger an InvalidParameter return to a SetProperty DBus call?   I
checked and provision_context() is static and is only called by
provision_contexts() which in turn is only called by the spn and gid1
callback functions.  Am I missing something?

Looking at pri_set_property (
https://github.com/rilmodem/ofono/blob/master/src/gprs.c#L1122 ), if the
property being set is MessageCenter or MessageProxy, invalid arg is
returned if the context type isn't MMS or INTERNET, or if the DBus type
isn't a string.

@Antti

FYI, as opposed to doing everything via dfeet or dbus-send, check ofono-
scripts.  There's such a script called 'set-context-property' which
*should* handle this for you.   That said, it might not have been
patched, so please let us know if it doesn't work.

Also can you please include your full command-line for dbus-send?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-08-27 Thread Antti Kaijanmäki
tested on desktop, with ofono 1.12.bzr6872+14.10.20140804-0ubuntu1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-08-27 Thread Tony Espy
** Changed in: ofono (Ubuntu)
 Assignee: (unassigned) = Jussi Kangas (jkangas)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1362068] Re: setting ConnectionContext MessageCenter or MessageProxy always returns invalid parameters

2014-08-27 Thread Tony Espy
@Antti

Can you please me a little more explicit on how you tested this on the
desktop.  Did you copy a gprs settings file from a phone onto the
desktop?

How did you start ofono, did  you use phonesim?

Can you attach the output of list-contexts *before* you tried to modify
MessageCenter/MessageProxy?

Note, if the APNs in question do not already have MessageCenter and
MessageProxy defined this might be the source of your problem.

FYI, I've asked Jussi Kangas to help you debug and as you're both in the
timezone, feel free to ping him tomorrow.

** Changed in: ofono (Ubuntu)
   Status: New = Incomplete

** Changed in: ofono (Ubuntu)
 Assignee: Jussi Kangas (jkangas) = Antti Kaijanmäki (kaijanmaki)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1362068

Title:
  setting ConnectionContext MessageCenter or MessageProxy always returns
  invalid parameters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ofono/+bug/1362068/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs