/srv/irclogs.ubuntu.com/2014/12/02/#ubuntu-touch.txt

=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== pitti` is now known as pitti
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== duflu_ is now known as duflu
dholbachgood morning08:12
bzoltanmvo_: I lost the pastebin link to the codelet what you suggested for the qt5-qmake-arm-linux-gnueabih. In my hack I simple listed it in teh frameworks, but I remember your suggestion was more civilized.08:16
mvo_bzoltan: no worries, I still have it, thanks08:16
bzoltanmvo_: If you post it again I will carry on with the click/oxide stuff ...08:17
bzoltanmvo_: and let you suffer from whatever you suffer :D08:17
mvo_bzoltan: https://launchpadlibrarian.net/190980713/click_0.4.35-1~0ubuntu1~0trusty1_0.4.35-1~0ubuntu1~0trusty2.diff.gz - but I talk to asac, the mail from Pat sounds urgent enough to justify spending a bit of time on this to unblock you guys08:23
bzoltanmvo_:  the story with the China training is that they need a snapshot of a very recent and bugfree Ubuntu SDK tools with qmake support (more simple than cmake) for that i need to release the trunk of our project to the SDK PPA. But i do not want to release my hack.08:26
bzoltanmvo_:  err :) that diff from my hack08:30
mvo_bzoltan: just to double check (sorry, I'm sure you answered this already but I forgot): qt5-qmake-cross-armhf is only for ubuntu-sdk-15.04+ - correct? it won't be backported to 14.04 and 14.10? or will it?09:23
ogra_mvo_, i had to upload livecd-rootfs, you had un-uploaded changes there, hope it was ok to upload them along09:24
bzoltanmvo_:  no, it would be too much to SRU the qtbase to Utopic and Trusty09:25
bzoltanmvo_:  we have pushed the oxide-qt to the silo13 and expect it to land on vivid as soon as it can be verified -> https://launchpadlibrarian.net/191665109/oxide-qt_1.3.5-0ubuntu1_1.3.5-0ubuntu2.diff.gz09:29
mvo_ogra_: yeah, that was fine09:30
bzoltanmvo_:  I would like to add the MR to the lp:click with the qt5-qmake support to that silo.09:30
mvo_bzoltan: oh? is chriscoulson ok with the idea? if so, great09:30
mvo_bzoltan: I thought he had some concerns that these are real dependencies etc09:31
bzoltanmvo_: I do not know... he will have the right to say ok/nok once the silo is ready to land09:31
* mvo_ nods09:31
bzoltanmvo_:  this issue is pending for 2 months ... the China training freeze is this week's Friday.09:32
bzoltanmvo_:  :) I thought creating a ready to land package will be a good alert :D09:32
mvo_bzoltan: heh09:32
bzoltanmvo_: are these oxide packages actually ever apt-get installed/upgraded on a real device?09:33
mvo_bzoltan: I don't know :) ideally we would make them co-isntallable09:40
mvo_bzoltan: and thats probably not too hard, its just takes *time*09:41
mvo_bzoltan: I already have a idea how to make it in a simple way09:41
bzoltanmvo_:  I would be happy to see an ideal solution to land .. straight after we unblocked the SDK ;)09:46
JamesTaitGood morning all; happy Giving Tuesday! :-D09:56
bzoltanHello JamesTait09:58
bzoltanmvo_:  so will you create a branch for the native qt5-qmake-cross-armhf or should I do it. I would simple put in the fw the native qt5-qmake-cross-armhf package, what is a less pretty solution.09:59
mvo_bzoltan: https://code.launchpad.net/~mvo/click/qt5-qmake-cross-armhf10:02
bzoltanmvo_:  thank you10:02
bzoltanmvo_:  note that the qt5-qmake-arm-linux-gnueabihf is not just useless on armhf arch, but it does not exist, so attempting to install it will fail10:03
bzoltanmvo_: that is why i am not fully happy with my own hack, because I do the same.. I do not know if we will ever support native arrmhf chroots10:04
bzoltanmvo_:  but as I see the click code, it knows only the target arch and does nothing with the host arch ... so should we just ignore that problem?10:25
mvo_bzoltan: it does not care much about the host arch right now - and yes, it break armhf -> armhf chroots, but we can fix it once we support that10:26
mvo_bzoltan: this is mostly to unblock you, its not prefect10:26
bzoltanmvo_:  I am happy with it.. we never said that we support armhf based environment for the SDK :D10:27
=== greyback__ is now known as greyback
mandelogra_, are you in image 45 on vivid? does the check for updates in system settings work?10:58
ogra_mandel, only RTM on my devices atm ... ask davidcalle11:05
ogra_err11:05
ogra_ask davmor211:05
davmor2mandel: how are you on 45?11:06
mandeldavmor2, do you have vivid 45? I'm testing the system image updates and it never stops checking, is get stuck for ever11:06
mandeldavmor2, well, that is the img number I get from the "About this phone" page11:07
mandeldavmor2, Ubuntu 15.04 (r45)11:07
davmor2mandel: image 39 is the latest devel-proposed image so I don't know if you are on a different channel11:08
davmor2mandel: image 40 is building currently11:08
mandeldavmor2, wtf?? that is weird11:08
davmor2ogra_: ^ I'm not dreaming this right11:08
ogra_davmor2, mandel,  different arches, different numbers ;)11:09
ogra_someone doesnt use mako here ;)11:10
mandelI'm sure is 4511:10
jibeldavmor2, 39 is on mako, 45 on another arch11:11
davmor2jibel: yeap solved11:11
=== _salem is now known as salem_
=== dandrader is now known as dandrader|afk
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
bzoltanmvo_: how is the click landing procedure? I assume you wish to see cjwatson's nod on that MR  for merging it to thde click/devel branch.11:36
cjwatsonbzoltan: He should feel free to go ahead without that, since I'm moving out of click development11:37
bzoltancjwatson: Good for you :) bad for us11:38
cjwatsonThere are other members of ~click-hackers if you (plural) want to get a review, and probably a good habit to be in11:38
=== MacSlow is now known as MacSlow|lunch
=== chihchun is now known as chihchun_afk
=== dandrader|afk is now known as dandrader
bzoltancjwatson: good point11:53
=== chihchun_afk is now known as chihchun
Stskeepsout of morbid curiousity, do you guys still have surfaceflinger running in some form on your mir images?12:06
bzoltanmvo_:  would you take the risk :)  to add me to the ~click-hackers team? I could help with integration and testing as start.12:07
popeyStskeeps: no12:08
Stskeepsgood12:08
popeyheh12:08
popeyalthough I note the binary is still in the image12:08
popeyI guess so you can switch to it optionally if you want to12:08
Stskeepsyeah, always good for testing environment12:08
=== Ursinha is now known as Ursinha-brb
=== Ursinha-brb is now known as Ursinha
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== alan_g is now known as alan_g|lunch
=== MacSlow|lunch is now known as MacSlow
=== alan_g|lunch is now known as alan_g
=== dandrader is now known as dandrader|lunch
=== pstolowski is now known as pstolowski|lunch
=== dandrader_ is now known as dandrader
mardyjdstrand: are apparmor denials logged by default, or do I have to do something to enable them?14:34
jdstrandmardy: they are logged by default, but two things might affect logging: kernel rate limiting and explicit deny rules14:35
jdstrandmardy: when doing policy debugging, I do this: sudo sysctl -w kernel.printk_ratelimit=014:35
jdstrandmardy: you might do a 'grep deny /path/to/profile' to see what explicit denials there are. explicit denials silence logging (if you see 'audit deny', that is an explicit deny that will be logged)14:37
mardyjdstrand: oh, and actually I just notice that the problem I'm debugging is unconfined, so I guess I can safely rule apparmor issues out :-)14:37
jdstrandheh, yes14:37
=== ryukafal1 is now known as ryukafalz
mardyalan_g: hi! To start a client inside a trusted session, does the client process need to be a fork of the process which created the trusted session?14:47
barrymandel: ping14:49
mandelbarry, pong, yes landing today, testing first in the following silo => https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/landing-00414:50
alan_gmardy: no it just needs to use the socket provide by the helper14:50
mandelbarry, if you can give it a +1 I'll appreciate it :)14:50
barrymandel: thanks!  i'll test it14:50
alan_gforking is one way to pass it the needed fd - but is hardly a convenient approach if you've any threads running14:51
mardyalan_g: I get an error that the connection to Mir server failed; any hints on how to debug it? the MIR_SOCKET is set to "fd://12"14:51
mandelbut 139655914:52
mandelbug 139655914:52
ubot5Error: Launchpad bug 1396559 could not be found14:52
=== pstolowski|lunch is now known as pstolowski
aquariusHow do I upgrade the version of Ubuntu running in the emulator I've created?14:53
alan_gmardy: how are you passing the fd to the client? Over dbus?14:53
popeyaquarius: i think the advice I have seen is "destroy it and make it again"14:55
mardyalan_g: OK, that might be the issue: I'm not passing it at all :-)14:56
alan_gmardy: that would be a good starting point. ;)14:57
mardytedg: is there a way to pass an fd with ubuntu-app-launch? how do you share the fd between the pay-service and the pay-ui?14:57
mardyalan_g: thanks! It may be that forking then is the easiest way to get it working...14:58
aquariuspopey, oh. really? :(14:59
popeyaquarius: rsalveti may know more15:00
alan_gmardy: FWIW system()  also inherits FDs15:00
=== chihchun is now known as chihchun_afk
tedgmardy, No, I use dbus to share it. But you could use any socket connection.15:02
tedgmardy, Reality is that you need something that is in the same process chain as the final executable, so it's hard to pass through the phases of Upstart.15:02
nicksthttp://payripo.com/?share=7080 If any of you is looking for an online job, this is your website. I've earned like 70 dollars for the last 4 days.15:02
tedgmardy, https://wiki.ubuntu.com/Pay/Architecture#Trusted_Prompt_Sessions15:04
mterrycharles, did you ever track down that indicator-power/unity8 freeze?15:04
mterrycharles, it's blocking my greeter-profiles branch15:04
mardytedg: ah, thanks!15:05
tedgmardy, http://bazaar.launchpad.net/~indicator-applet-developers/pay-service/trunk.15.04/view/head:/service/mir-connection-demangler.c15:05
charlesmterry, argh, no I sidetracked myself onto other things. I didn't realize it was blocking you!15:05
tedgmardy, Also, make sure to do this. That one line cost me 3 days :-)  http://bazaar.launchpad.net/~indicator-applet-developers/pay-service/trunk.15.04/view/head:/service/mir-connection-demangler.c#L10515:05
charlesmterry, is the change you made to the indicator profile configuration file not enough to unblock?15:06
mterrycharles, oh sorry yeah.  My branch to actually enable different indicator profiles can't land if we keep freezing the UI  :)15:06
mterrycharles, it would be I think, but then we don't get the nice greeter profile for the power indicator15:06
mterryBut I could move forward at lesat15:06
mterryAnd we'd get greeter profiles for other indicator15:06
mterrys15:06
mterrySo probably a win15:06
mardytedg: however, I think I might be better off without UAL, using just QProcess makes things simpler15:07
mardytedg: QProcess + aa_change_profile15:07
tedgmardy, It makes things simpler from the process part, but you need all the cgroups support etc to ensure PIDs don't leak.15:07
charlesmterry, I'll resume that right now then so we can get you unblocked15:08
mterrycharles, ok thanks, yeah just fixing the power indicator should be enough for now15:09
=== chihchun_afk is now known as chihchun
rsalvetipopey: aquarius: right, unfortunately image updates is not yet supported by the emulator15:10
popeyrsalveti: is it on the roadmap?15:11
aquariusrsalveti, so, the way to get a new emulator is to just delete the old one(s) and create a new one from scratch?15:13
rsalvetiaquarius: yes15:14
rsalvetipopey: yup15:14
aquariusWhich channel should I use to have an up-to-date emulator?15:14
rsalvetiit depends if you want to use vivid or RTM, they are different series15:15
rsalvetivivid is the latest, but not necessarily stable15:15
rsalvetiRTM is more stable in general15:15
ogra_right, vivid is develoiper playground15:15
ogra_no warranty :)15:15
aquariusmy options appear to be: devel, devel-proposed, stable, rtm-14.09, rtm-14.09-proposed, and "custom". I'd like to use whatever's going to be most reminiscent of an Ubuntu device which hits the market. :)15:15
popeywhereas that lengthy warranty on the rtm channel...15:16
ogra_:D15:16
ogra_aquarius, ubuntu-rtm/devel or ubuntu-rtm/devel-proposed are what you want ...15:17
aquariusogra_, so, I should use "custom" and enter "ubuntu-rtm/devel"?15:17
ogra_both should be similarly stable, -propoased has more fixes and a bit less QA15:17
ogra_custom ?15:18
aquariusogra_, and if tomorrow some changes have done into ubuntu-rtm/devel, I need to destroy my emulator and re-create it?15:18
ogra_yeah, currently you have to15:19
aquariusogra_, the options I have are those above. Is "devel" the same thing as "ubuntu-rtm/devel"?15:19
ogra_no, devel is vivid ... ubuntu-rtm/devel is the same as rtm-14.09 (where do these names come from ?)15:19
aquariusno idea where they come from -- they're what I get in Ubuntu SDK in the "Create emulator" popup.15:20
ogra_oh15:20
ogra_no idea about the SDK15:21
ogra_i use vi for my apps :P15:21
ogra_(and the emulator natively if i need it)15:21
jgdxpopcorn.gif15:21
ogra_silent.wav15:21
kenvandinejgdx, did you see my less_flaky branch?  it includes some of the steps to be more inline with the page object model we want and makes some of our really flaky tests less flaky15:23
kenvandinejgdx, next i want to prune the autopilot tests of the tests that should be qml tests, then refactor the remaining tests15:24
jgdxkenvandine, I just looked at it. Good stuff. :)15:26
jgdxright, that would remove 10+ tests right off the bat15:27
kenvandinejgdx, at least... i hope :)15:28
kenvandinewhich would reduce the number of tests we need to refactor15:28
kenvandinejgdx, but i wanted to do something to make it more reliable... landing that silent mode branch drove me insane...15:28
kenvandineevery CI run had different failures... crazy!15:29
jgdxkenvandine, wut? The one just now? ted's?15:29
kenvandinelast week15:29
kenvandineor week before15:29
kenvandinebut i was seeing like datetime failures every 3rd CI run, etc15:29
kenvandinecompletely unrelated15:30
kenvandineswitching to use the go_to_page model helps stabilize that15:30
kenvandinejgdx, one thing i've been beating my head against the desk over is test_phone.py15:31
jgdxkenvandine, what's happening?15:31
kenvandinewe have the test case there for dialpad sounds, which is based on SoundBaseTestCase15:31
kenvandinenot the ofono one15:31
kenvandineit passes fine if i run that one test case15:31
kenvandinebut if i run all the tests in there15:31
kenvandinemost of them fail15:31
kenvandineit's like the setUp and tearDown has issues15:32
kenvandineit basically stops getting input15:32
jgdxactually, that reminds me of an error I hit a while back15:32
jgdxkenvandine, do you get a timeout?15:32
kenvandineno obvious timeout15:32
kenvandinebut i suspect it is15:32
kenvandineif i run PhoneSoundTestCase and PhoneTestCase separately they pass 100% of the time15:33
kenvandinebut if i run test_phone15:33
jgdxokay, I found that if I tried to change a readonly interface *something* broke down, and that manifested itself like how you explain15:33
kenvandinesome random number of the total tests fail every time15:33
jgdxkenvandine, could you paste the log for the most common way it fails?15:35
jgdxkenvandine, updated my cellular "manual persist" branch btw, addressing your comment.15:51
kenvandinejgdx, thx15:51
kenvandinei'll get a log in a bit15:51
kenvandinei already moved the test out :)15:51
kenvandinebut i would like to know wtf is up!15:52
kenvandinejgdx, http://paste.ubuntu.com/9346242/15:56
=== om26er is now known as om26er|dinner
=== yorick_ is now known as yorick
aquariusmardy, is http://developer.ubuntu.com/apps/platform/guides/online-accounts-developer-guide/ out of date? There doesn't seem to be a Setup element any more16:39
aquariusmardy, and when I create an AccountServiceModel, my QML app throws an error: "Error opening accounts DB: unable to open database file. Manager could not be created. DB is locked"16:40
aquariusmardy, and applicationId no longer seems to exist on an AccountServiceModel either16:40
aquariusdbarth_, do you know about online accounts stuff?16:49
rickspencer3hey all, is it possible to take screenshots directly on the phone now, without phablet-screenshot?16:52
popeyrickspencer3: press vol+ and vol- together16:52
ogra_rsalveti, press bpth vol keys16:52
ogra_*both16:52
rickspencer3thanks popey16:52
popeyyou get a popup unfortunately16:52
rickspencer3popey, yeah, so, no way to turn off the volume notification?16:55
ogra_you can crop it out with gimp afterwards ... leaves a hole though :P16:56
rickspencer3lol16:56
ogra_(no, there isnt)16:56
dbarth_aquarius: hi; yes i may be able to help16:56
rickspencer3I think the idea is that you can share the pic from your phone16:56
ogra_there is a bug open for that though16:56
dbarth_aquarius: ah, sorry ready the logs16:56
rickspencer3thanks ogra16:56
dbarth_aquarius: if you are developing an app, the best is too take a look at the slide deck from UOS16:57
dbarth_aquarius: https://docs.google.com/a/canonical.com/presentation/d/1_BnaAASynFES-kwHoiIh2e9V2nBpYak5h_vmLfAbSIA/edit#slide=id.g1877ebb12_6_016:57
dbarth_which contains the latest from mardy on how to use the API and the various configuration files16:58
bzoltanogra_: aquarius: they are the emulator channels. The same as the device channels, but they are i38616:58
popeyrickspencer3: known bug16:59
dbarth_aquarius: more specifically: there is still a setup element; that's what we use to request account creations16:59
rickspencer3thanks popey16:59
dbarth_aquarius: for another working example, you can look into the reminders app code: it does query the account db, and offers to create accounts if needed17:00
dbarth_aquarius: otherwise goes on to request an access token with the evernote api17:00
=== salem_ is now known as _salem
=== _salem is now known as salem_
=== salem_ is now known as _salem
=== mozzarel1 is now known as mozzarella
=== om26er|dinner is now known as om26er
=== _salem is now known as salem_
aquariusdbarth_, http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.OnlineAccounts/ does not mention a Setup element?17:52
aquariusChipaca or ralsina_, ping about push message handlers and the network17:55
mterrykenvandine, any objection to landing the drop-wizard branch soon?18:00
=== alan_g is now known as alan_g|EOD
=== salem_ is now known as _salem
kenvandinemterry, no real objection18:08
mterrykenvandine, now you made me worried about your fake objections18:09
kenvandinei think we have some wizard related fixes in vivid that we'll land in rtm soon18:09
kenvandineso we should land those first18:09
kenvandineto ease backporting18:09
kenvandineunless the wizard add to unity8 is planned for ota-1 :)18:09
mterrykenvandine, I doubt it  :)  -- ok well then.  I guess let me know when I can land18:16
aquariusChipaca, ralsina_, __lucio__, specifically: when a push notification comes in, my app's message handler gets run to process it even if my app isn't running (I think?). Can my handler reply to the network and so my server and my app have a little conversation without user intervention?18:16
kenvandinemterry, so after we're done with the backports to rtm18:16
kenvandinemterry, i am quite excited about landing that :)18:16
mterrykenvandine, that's not in a silo yet?18:17
__lucio__aquarius, you have ~10seconds to do whatever permissions the helper gets18:19
__lucio__aquarius, then we kill it18:19
aquarius__lucio__, ooh. Does "talk to the network" come under the handler's permissions?18:19
__lucio__aquarius, not sure. maybe Chipaca can tell you.18:20
aquarius__lucio__, what I want to do is talk to a server and say "hey, server, my unique token is XYZ; remember it". But the server doesn't know whether I'm lying about that. So my thought was, the server then sends back a push notification to that token saying "ok, prove you're you: the magic word is 'ahaha'". And then the push helper gets that message and says to the server "the word is 'ahaha'" without telling the use18:21
aquariusr or showing any visible notification...18:21
__lucio__aquarius, the idea is that the app that sends the token has the login information for the user (or something like that)18:23
aquarius__lucio__, sure, but there's nothing stopping you just making a curl request from your desktop to myserver/register?token=ABCDEF18:23
aquarius__lucio__, and I'm trying to avoid having the user actually have to *sign up*, because there's no need :)18:23
__lucio__aquarius, that token is a) going to be invalid, b) generated in the device or with the users account + device id18:25
__lucio__so, if you have the users u1 credentials, it should be ok for you to fake his tokens18:25
aquarius__lucio__, the server doesn't *know* that it's invalid, though. I want the server to verify it's valid by sending a push notification to it, and having my app respond to that push notification; make sense?18:26
__lucio__aquarius, your server will know as soon as it tries to push the first notifications18:26
__lucio__aquarius, push "{}", check for the token to be valid, in the helper ignore it18:26
aquarius__lucio__, aha, the push server will tell my server if a token is invalid? nice18:27
aquariusI didn't know that :)18:27
__lucio__aquarius, we are working on more docs :)18:27
aquarius__lucio__, ya, I was just about to note that I didn't know it because the documentation doesn't mention it :P18:28
__lucio__Chipaca, ^ something to mention in the docs18:29
aquariusChipaca, yeah: "how does my server verify that a token it's been given is real" would be a good thing to have18:29
=== _salem is now known as salem_
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
mardyaquarius: hi! The guide is new and correct but the API reference is way outdated19:50
mardymhall119: is it possible to update our api docs there?19:51
Chipacaaquarius: __lucio__: I seem to have missed out on some excitement over dinner; what's going on?19:52
aquariusChipaca, see scrollback :)19:53
Chipacaaquarius: i've got a lot of that :) from when?19:54
mhall119mardy: which API doc?19:55
aquariusChipaca, summary: I was worried about being told the push token by a client but being lied to, but __lucio__ says that the push server will throw an error if I supply a bad push token with a message, which is lovely but undocumented ;)19:55
Chipacaaquarius: well... you could be given somebody else's token, if we're getting mitm'ed somehow i guess?19:56
aquariusChipaca, also, an extra question from above: can my push helper talk to the network? in particular, can my server send a push message to my phone and my push helper on the phone connect back to my server without the user seeing anything and without my app being open?19:56
Chipacaaquarius: not at all reliably19:56
Chipacaaquarius: and i'd have to check with jamie as to whether it's allowed at all; i think not19:56
Chipacaaquarius: if i don't remember wrong, the *only* thing you can have as a push helper is the push helper bits19:57
aquariusChipaca, right, but I am assuming that I'm not given someone else's token, because tokens are secret like passwords, so if someone else gets my token they can already sod me up and I'm not making it any worse. It's more whether I have to verify a token that I'm handed or whether I can just say, well, if you lie to me about what your token is, you don't get any messages, and that's OK19:57
Chipacaaquarius: yeah, lying isn't a problem19:58
Chipacaunless you're a very unlucky liar :)19:59
aquariusChipaca, I can do a verify dance, where you say "this is my token", and I say "oh really? prove it: I'll push a secret message to that token and you tell me what the secret message is and I'll believe you"19:59
aquariusbut if I don't have to do that then I won't :)19:59
Chipacaaquarius: and if user A can convince you that they're actually user B and you use A's token meaning to talk to B, that's all you19:59
mardymhall119: accounts-qml-module-doc and qml-module-ubuntu-onlineaccounts-client-doc19:59
Chipacaaquarius: there's an easier way, i think, that you could do20:00
Chipacaaquarius: as a reply to the client telling you their token, you give them a public key20:00
Chipacaaquarius: crypt the notification contents with the private key20:00
aquariusnah, that's OK -- I don't think I need it20:00
Chipacaaquarius: store the public key in one of the package-accessible directories20:01
mhall119mardy: are the docs you want in utopic's archive?20:01
Chipacaaquarius: the helper can then decrypt20:01
Chipacaaquarius: but yeah, it's taking it a bit far :)20:01
mhall119qtdeclarative5-online-accounts-client-doc_0.4+14.10.20141006-0ubuntu120:01
Chipacaanyway, i've got to evict somebody from a bathtub20:01
Chipacattfn!20:01
aquariusChipaca, is there anything I can guarantee about the tokens? like, how long they are, or which characters they contain?20:01
aquariusChipaca, ok cheers :)20:03
mhall119mardy: check http://91.189.92.89/api/qml/sdk-14.10/ and if it looks correct I'll publish to production20:03
mhall119Chipaca is either a parent, of a very bad landlord20:04
mhall119s/of/or/20:04
davmor2mhall119: or both20:05
mhall119that's one way of describing parenthood :)20:05
mardymhall119: they are correct, please publish :-)20:14
Chipacamhall119: aquarius: https://www.youtube.com/watch?v=t-PFNHQAh5s20:17
Chipacadavmor2: ^ also20:17
Chipacaanyway20:17
Chipacaaquarius: why would you want to know that about a token?20:17
Chipaca(i do have a non-question answer, but i need to know :)20:17
davmor2Chipaca: man only one hand, you're not strict enough as a landlord, with no hand no damage ;)20:21
Chipacadavmor2: i know, but what're you going to do, they're family20:21
davmor2Chipaca: hahaha20:23
dobeyaquarius: u1 auth tokens? they are the same as oauth1.0a tokens.20:29
beunowell20:33
beunowe changed the length of tokens generated with the 2.0 SSO api from the 1.0 api20:33
=== greyback_ is now known as greyback
mhall119mardy: pushed to production20:35
jgdxkenvandine, apart from the different error message, that paste describes what happened to me. Not to send you out on a wild-goose chaseā€¦20:37
kenvandineyeah... the output isn't really helpful20:38
kenvandinei think the "Connection closed" bits are the real problem20:38
jgdxkenvandine, check the mock delta and see if anything is not supposed to be touched from a lib point of view20:38
kenvandinelike dbus getting yanked out from uner it20:38
kenvandinewhat do you mean?20:39
dobeybeuno: the token, or the secret? or both?20:39
beunodobey, I'm going to say token20:39
=== salem_ is now known as _salem
jgdxkenvandine, in my case I made a change in a modem property that was readonly from ofono and libqofono's POV.20:40
jgdxwhich then caused dbus to just say "nope" to all requests20:40
kenvandinei didn't make any changes there...20:40
kenvandinein fact, i hadn't made any changes to the mock's at all20:40
dobeyactually, oauth1.0[a] spec doesn't specify exactly what the contnet of the token would be20:41
kenvandinejgdx, does the tests in test_phone work for you on desktop?20:42
kenvandinejgdx, i just tried trunk and got the same problem20:43
dobeybut, as it is used in HTTP request parameters and/or the headers, it has to be ascii, and not contain certain special chars which are used by HTTP in those two instances20:43
jgdxkenvandine, hang on20:44
kenvandinejgdx, what really drives me nuts is that test_phone.PhoneSoundTestCase passes and test_phone.PhoneTestCase passes20:44
kenvandinebut test_phone together doesn't20:44
kenvandinetest_phone.PhoneDualSimTestCase passes too20:44
dobeyso it's pretty much [a-z0-9]+ most every case20:44
dobeynot that a random application using u1 auth should care or need to know20:44
kenvandinejgdx, it's only a problem when i include PhoneSoundTestCase, which inherits from SoundBaseTestCase, with the ofono based tests20:45
jgdxkenvandine, no failures in trunk @121520:47
jgdxor rather, one actually20:47
jgdxbut that's the one we're seeing on jenkins20:47
kenvandinejgdx, ok... fails on my desktop20:48
kenvandinewell that's annoying :)20:48
jgdxhave you tried rebuting it20:48
aquariusChipaca, I'd like to know it because I need to store them in a database, probably, and if tomorrow you turn around and make them a 2 kilobyte PGP key or something you'll sod up my DB schema :)20:51
dobeyaquarius: if your db schema can't deal with arbitrarily long access token strings, then you're schema is already sodded up ;)20:52
aquariusdobey, well, perhaps. I'm just trying to get a sense of what the deal is with them; at the moment they're a relatively short string. Are they likely to roughly stay that way?20:53
dobeyaquarius: i can't say for sure, but i wouldn't expect them to change length often. but i can't guarantee that we don't wake up one day with a fancy security hack and we suddenly have to destroy all existing tokens and generate new ones that are 4096 bytes long. :)20:56
aquariusdobey, yeah -- I can understand that, and if that happens then everyone's token gets invalidated, my app breaks, and I fix the server :)20:56
dobeyaquarius: the trick is to write your app/server to deal with invalid tokens21:00
Chipacaaquarius: sorry, was afk. tokens are base64-encoded21:06
Chipacaaquarius: your server needs to deal with invalid tokens, btw21:08
Chipacaaquarius: our server will say "oi, that token? garbage" (actually more often: unknown). So you nuke it.21:09
aquariusyep21:10
aquariusinvalid ones I don't mind21:10
dobeyaquarius: if we change token length, all prior tokens will invalidated on our server, and thus be invalid. handle invalid tokens, and if you need to store the token for some reason, don't be dumb and limit possible length of the token string. and you'll be fine :)21:20
=== ryukafal1 is now known as ryukafalz
=== beuno_ is now known as beuno
charlesmterry, ping23:10
mterrycharles, heyo23:10
charlesmterry, https://code.launchpad.net/~charlesk/indicator-power/show-phone-menu-in-phone-greeter/+merge/24347323:10
charlesmterry, it doesn't affect the workaround you opted for (and which I agree with), but FYI I tracked down the lockup problem23:11
mterrycharles, oh nice!23:11
charlesmterry, it's written up in that MP which I assigned to you for review23:11
charlesmterry, (as you'd expect, it's just a one-liner in com.canonical.indicator.power switching the phone_greeter's menu)23:11
charlesmterry, the better news is:23:12
mterrycharles, ah that's a nice one-liner  :)23:12
charlesmterry, since nobody else uses com.canonical.indicator.basic, we shouldn't have any subsequent issues in other indicators popping up down the road23:12
mterrycharles, ok cool23:12
mterrycharles, so unity8 doesn't seem to handle types it doesn't know well I guess? :)23:13
charlesmterry, looks like it. I'm not sure it's worth reporting a follow-on bug for that :/23:13

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!