IRC log for #flow3 on 20120521

01:41.54*** join/#flow3 Robbo_ (~robbo@ppp232-35.static.internode.on.net)
04:07.36*** join/#flow3 visay (~visay@119.82.252.95)
05:17.57*** join/#flow3 Robbo_ (~robbo@ppp232-35.static.internode.on.net)
05:28.14*** join/#flow3 beberlei (~twitter@koln-4d0b0dee.pool.mediaWays.net)
05:44.49*** join/#flow3 elos (~Miranda@p57A0168F.dip0.t-ipconnect.de)
05:58.00*** join/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
06:03.11*** part/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
06:22.51*** join/#flow3 vacu (~vacu@178-25-147-29-dynip.superkabel.de)
06:23.07vacumorning
06:24.10*** join/#flow3 afoeder (~afoeder@p4FD644CF.dip0.t-ipconnect.de)
06:48.45*** join/#flow3 andreaswolf (~aw@p4FDCFBC1.dip.t-dialin.net)
06:53.11vacuwhere did the typo3 search&navigate panel go? o,O
06:58.18*** join/#flow3 visay (~visay@119.82.252.95)
06:59.21*** join/#flow3 teddai (~teddai@85.183.90.38)
07:01.44*** join/#flow3 cubert__ (~cubert@p50804A69.dip.t-dialin.net)
07:11.52*** join/#flow3 Kirab (~kira.back@b2b-46-252-131-198.unitymedia.biz)
07:14.20*** join/#flow3 ger^kallisti (~kyrill@p579ABEE9.dip.t-dialin.net)
07:26.21*** join/#flow3 Kollode (~patrick@designnet.work.de)
07:27.48*** part/#flow3 rens (~rens@14237.nodes.robertlemke.net)
07:28.56kdambekalnsjwa: http://forge.typo3.org/projects/package-typo3-flow3/repository/revisions/7275a130a1f552467b41d973f6533522c8dfb194
07:32.59afoederkdambekalns, Mr. Persistence, what are your thoughts regarding Objects involved in the Value Object hash creation?
07:33.57kdambekalnsthey are expressed in the advice that creates the hash :) what about it?
07:34.48afoederno, I meant: currently only non-objects except DateTime are building the hash; well, maybe see http://forge.typo3.org/issues/37286
07:36.17afoederregarding this, I also started http://forge.typo3.org/issues/37276 but I agree with Christian that this would be too "easy" to break
07:36.39afoeder"DU" hast hier
07:36.52afoederäh wrong window ;-)
07:38.36pumatertion1hui, a bug report answer :D thanks afoeder /me is happy
07:38.54afoederfine :)
07:39.17afoederif you just really have a *question*, you could also post to the Mailing List
07:39.31kdambekalnsthe value object hash is built from the constructor arguments. value objects are immutable and thus the hash never needs to change. the only thing missing is support for entities not using FLOW3_Persistence_Identifier as identifier.
07:39.52afoederyes kdambekalns exactly that's what I mean
07:40.28afoeder...and, for example, Doctrine Collections.
07:40.49pumatertion1afoeder: flow3-general, team-core?
07:41.14afoedergeneral
07:41.40*** join/#flow3 SpareParts (~ondriq_h@mono1.monogram.sk)
07:41.56kdambekalnsok.
07:42.27kdambekalnsafoeder: could you add an example of a VO using a collection to the issue? thanks!
07:43.07afoederit would go for most "relation entities"
07:44.03*** join/#flow3 sewo (~sewo@e178015126.adsl.alicedsl.de)
07:44.04kdambekalnsafoeder: relation *entities* should not be *value objects*, if following the name
07:44.13kdambekalnsok. bbl.
07:44.14sewogood morning
07:47.01*** join/#flow3 aertmann (~aertmann@109.202.148.90)
07:48.11afoederah pumatertion1 I see; your actual problem is that you aren't able to set something to NULL?
07:49.59sewoI've made a small improvement in PropertyMapper so it is possible to set allowCreationForSubProperty('products.[n].tierprices.[n]') instead of looping through integers allowing only a fixed number of sub-objects to be created in the end.
07:49.59sewoCould someone please guide me through the process of contributing this...
07:50.32afoederFirst step: do you wrote unit tests for that, too? ;-)
07:50.39sewono
07:51.26afoederthen this would be the first To-Do :) When ready, you might follow this directions: http://wiki.typo3.org/Contribution_Walkthrough_with_CommandLine
07:51.30afoederit's a good start
07:51.31aertmannsecond step: sign CLA
07:51.34aertmannwait 5 days
07:51.37pumatertion1right, afoeder
07:51.37aertmannthen submit
07:51.52pumatertion1startet a on the mailing list now
07:52.14sewook
07:52.23pumatertion1i am confused about the different behaviours of converters at this point
07:52.23sewoso I guess CLA first
07:52.27afoederyeah; well, that actual case might be really worth a Feature entry, although I don't really know if that is handled in a case currently
07:53.51afoederas Validators are usually skipped when '' or NULL, the Type Converters should behave similar
07:53.56afoederfor the same reason
07:54.18afoederbut we'll see in the ML
08:00.31pumatertion1but why skipped if NULL of ''? personaly i never except that
08:04.52*** join/#flow3 wittem (~wittem@mail.techdivision.com)
08:05.29afoederuh? please say again...
08:07.18pumatertion1afoeder: anyway. lets discuss on mailing list :)
08:07.42afoederyah ok :)
08:07.54*** join/#flow3 m1chel (d441020b@gateway/web/freenode/ip.212.65.2.11)
08:08.21m1chelhi - how can I use the identifier of an object in the template? {category.__identifer} does not work :(
08:09.19m1chelWhy? I want a select list with an empty option and since fluid does not give me an "empty" argument, I have to build it by myself
08:10.15afoederyou could either build yourself a ViewHelper that prepends that empty option...
08:10.44*** join/#flow3 smux (~smux@APoitiers-157-1-35-45.w83-193.abo.wanadoo.fr)
08:10.53afoederor see the Identity/JsonViewHelper for a usage example of how to determine the ID
08:11.11afoederI'd prefer the "prependEmpty" variant
08:11.43afoederhowever, a "prepend" and/or "append" option of the selectViewHelper might be good; I heard that issue very often now
08:11.52afoederm1chel, do you think you could provide a patch?
08:12.22m1chelI'll do my best ... I'm kinda new to flow3, so I've never written a ViewHelper before
08:14.05m1chelokay ... seems to be doable :)
08:14.32afoederm1chel, what's of course possible in addition is to add it on your own in your controller
08:15.05m1cheli think the viewhelper method would be best
08:20.23pumatertion1what do you think about this symbolreader for decimal points f.e.: https://gist.github.com/2761141
08:21.28afoederhm, and.. what is it for?
08:22.37pumatertion1to get the number decimal signs in fluid f.e.
08:23.00pumatertion1two inputs thousands and decimal seperated by ,
08:23.10afoederand for what would that be for? (no offense, just can't imagine a use case)
08:23.32afoederand, why not use the Format.Number ViewHelper?
08:23.44pumatertion1<input><f:format.numbersSymbol symbol="decimal" /><input>
08:25.47afoederpumatertion1, btw, if you like: https://review.typo3.org/#/c/10634/
08:25.48afoeder:)
08:25.51pumatertion1how the fluid tag will be look to get only the ,?
08:26.35afoederI think that won't be possible... but really, for what case would you only need the ","?
08:27.19pumatertion1exactly for this floatConverter behaviour you send me :)
08:27.57pumatertion1i did the converting atm by 2 inputs and convert it with a floatConverter wich converts arrays with thousands/decimal
08:28.42afoederah? and how do you handle that in your GUI? Two input fields for decimals are pretty uncommon?
08:29.13pumatertion1i aggreee :)
08:29.21afoederok :)
08:29.25afoederjust wondering
08:29.33pumatertion1but i was not able to wrote such a floatconverter :)
08:29.42pumatertion1to hard for me. tried, but failed
08:30.05afoederwell, I basically transcribed it from the NumberParser...
08:30.55pumatertion1i was exactly at this point. but i notated the property $targetType so it matches for any float. you didnt notate it so that it will not match by default?
08:31.34pumatertion1if i dont set a targetProperty its not uses by objectMapper f.e.?
08:31.46pumatertion1forget it
08:31.47afoederhuh? the target type is set in my case, too?
08:31.53pumatertion1i see :)
08:31.56afoederit's even not modified
08:32.07afoedermaybe you cropped too many lines in your diff view :)
08:32.27afoederline 45R
08:40.45*** join/#flow3 rens (~rens@14237.nodes.robertlemke.net)
08:43.37sewodamn facsimiles, I always have problems sending them
08:47.45jwasewo: that's because noone uses fax nowadays
08:47.50jwaor at least shouldn't be
08:48.38ChristianMhi all
08:48.53afoederhi ChristianM
08:54.25m1chelokay - I wrote an own viewhelper for a HTML select with a prepend and append option - which works :) now it complains, that it can't find a object with identifer "NULL" ... ideas?
08:54.52m1cheli want an option list (category -> parentcategory) with an empty value
08:56.32afoederm1chel, did you build a complete SelectViewHelper? you might run into problems with that, because the original one handles a lot of special cases already; which your probably doesn't.
08:57.07m1cheli duplicated the original one, enhanced it with the prepend and append arguments which are merged to the options array generated by the original one
08:57.30afoederat what point to you merge it?
08:57.54sewojwa unless you want to send the cla to typo3 association :(
08:58.12m1chelfunction getOptions bottom end
08:58.38m1chelhttp://pastebin.com/fFAqBpbs
09:03.01m1chel...
09:03.11m1chelI need a "NULL" value ... as Key
09:03.20m1chelthat seems to be impossible
09:03.37m1chelis there another way to tell flow3 that it is an empty value?
09:03.53m1chelgod I'm stupid
09:03.58m1cheljust ignore what i wrote
09:06.51m1chelif anyone needs a select view helper with append and prepend options: http://pastebin.com/U9RXA2Fu
09:07.08m1chelmay need some enhancement but works for me :)
09:07.52afoederm1chel, just as a hint: you would have way less trouble if you just introduce a simple, "two-lined" ViewHelper that pops (or pushs?) your item in front of an array
09:08.45afoederyou than could just write <f:form.select options="{my:arrayPush(......)}">...
09:09.04m1cheland the NULL case?
09:09.21afoederyou copied one of the most complex ViewHelpers...
09:09.25afoederwhat NULL case?
09:09.42m1chel<option value="">Please select ...</option>
09:09.45m1chelthats what I need
09:10.00m1chelthe viewhelper takes the key as value
09:10.02afoederyes, your "arrayPush" ViewHelper does that
09:10.22m1chelbut i can't push something to an array with an empty key
09:12.03afoederbut with '' as key?
09:12.23afoederit results to an <option value="">select plz</option> however
09:12.33m1chelew :(
09:12.40m1chelthat's not nice, is it?
09:12.54afoederuh why not? what else?
09:13.04afoederwhat should it read instead?
09:13.14m1chel$options[''] = "Please select?"; ?
09:13.51m1chel$options['\"\"'] = "Please select" ?
09:13.55afoederno I'm talking 'bout the output
09:14.11afoederthe (fluid template) output would become <option value="">select plz</option>
09:15.01m1chelokay ... would you like to give me a quick example of your proposed two-liner?
09:15.08m1chelmaybe that does the trick for me :)
09:16.55*** join/#flow3 mneuhaus (~textual@ip-78-94-232-113.unitymediagroup.de)
09:17.13afoederI meant something like <f:form.select options="{my:arrayPusher(items: {0: {0: 'plz select'}, 1: your.initial.collection})}" />
09:17.31afoederbut I see the problem that's not possible to supply ''-keyed arrays via Fluid
09:18.28m1chelyip :)
09:18.41m1cheland then it will complain about the missing object with identifier 0
09:18.44m1chelwhich is correct :)
09:19.03afoederwell not really...
09:19.43afoederafaik the identifier is just queried as soon as the "value" is an object
09:20.09*** join/#flow3 andreaswolf1 (~aw@p4FDCFBC1.dip.t-dialin.net)
09:26.20*** join/#flow3 Denyerec (~Never@cpc4-shep11-2-0-cust49.8-3.cable.virginmedia.com)
09:27.06jwasewo: ohh I did that at work :)
09:27.34jwamneuhaus: you deserve a medal btw
09:27.42mneuhaus^^
09:28.05mneuhausdidn't really take long to code that
09:28.12mneuhausstarted friday
09:28.14jwait's still pretty damn awesome
09:28.29mneuhausnot awesome enough
09:28.31mneuhausyet
09:28.32mneuhaus^^
09:28.32jwabeen to a symfony talk last week and was just amazed by their dev tools :D
09:28.41jwanow to add the pretty dependency graphs etc
09:28.50mneuhausme to, i couldn't take that and had to code that :)
09:29.05mneuhausyea, i've already been toying with that idea
09:29.41jwaI've also created an ESI feature request in the forge :3
09:29.48mneuhausi was thinking of maybe adapting this for the graph
09:29.48mneuhaushttp://mbielanczuk.com/upload/gantt-demo/index.htm
09:30.08*** join/#flow3 closure000 (~linh_mtra@117.4.177.250)
09:30.14*** part/#flow3 closure000 (~linh_mtra@117.4.177.250)
09:31.36mneuhausjoa, im moment füge ich die toolbar for dem body tag nach dem rendering ein um möglichst viel vom ganzen prozess zu "überspringen"
09:31.51mneuhausups
09:32.01afoeder:)
09:32.03mneuhausi switched to german ^^
09:34.33mneuhausdoes anyone know a good js library to render a graph like this:?
09:34.34mneuhaushttps://skitch.com/apocalip/85p3n/profiler
09:34.52mneuhausin Symfony it seems quite "coded on the spot"
09:35.54jwawell it basically is some gantt chart
09:36.11jwathey're not using a library for that?
09:36.32mneuhausdidn't seem like it when i skimmed the code
09:36.36afoederwith percented-widths it would be not that hard to build that.
09:36.47mneuhaustook heavy inspiration from the Symfony implementation
09:36.59mneuhaushmm, i guess you're right
09:37.43mneuhaussadly PhpProfiler doesn't have hierarchichal relations at the moment
09:42.45CoreTexHi, is there a solution how to store data in the controller between actionA and actionB with $this->redirect without POST|GET the "secure" data
09:47.05*** join/#flow3 sherold (~smuxi@p57AEF1CB.dip.t-dialin.net)
09:49.48mneuhausHow about creating an Entity for that data give the identifier through the redirect?
09:50.48afoederyes, or via, slap me, Session?
09:51.03mneuhaus*Slap* ;D
09:51.12afoederouch
09:51.19afoederhuh that was nice
09:51.30mneuhausno, works as well :)
09:51.51ChristianMmneuhaus, great job with the toolbar!
09:51.57mneuhausthanks :)
09:52.21mneuhaushope i didn't steal your ticket, but it seemed doormand on forge
09:53.01ChristianMmneuhaus, actually I had hoped to find a student in GSoC this year
09:53.11ChristianMbut as we were not accepted...
09:53.45mneuhauswell, now we've got a good starting point :)
09:57.33mneuhausafk
09:59.29m1chelhaving a simple problem ... how can I check for an object? For now I have: $query->logicalNot($query->equals('identity',$category))
09:59.51m1chelwhich is ... wrong :)
10:07.04*** join/#flow3 HardFu (~tomaz@unaffiliated/hardfu)
10:08.26*** join/#flow3 HardFu (~tomaz@BSN-61-79-200.static.dsl.siol.net)
10:08.28*** join/#flow3 HardFu (~tomaz@unaffiliated/hardfu)
10:18.35*** join/#flow3 andreaswolf (~aw@p4FDCFBC1.dip.t-dialin.net)
10:20.39ChristianMm!chel, but looks good. identity is a property in the model the repository is used for?
10:30.17jwaChristianM: can you give me a pointer on where the translation files are now located?
10:30.59ChristianMPackages/Framework/TYPO3.FLOW3/Resources/Private/Translations
10:31.03ChristianMyou mean that?
10:31.06ChristianMthe xliff files?
10:31.08afoederor, jwa, that? <kdambekalns> jwa: http://forge.typo3.org/projects/package-typo3-flow3/repository/revisions/7275a130a1f552467b41d973f6533522c8dfb194
10:31.25afoederthis is a msg from this morning
10:32.13jwayup, thanks afoeder
10:32.22*** join/#flow3 linkedinyou (~linkediny@unaffiliated/linkedinyou)
10:32.29jwashouldn't that be in the upgrading.txt, too? ;)
10:39.24kdambekalnsjwa: no, because upgrading is about 1.0 -> 1.1 and 1.0 does not have i18n :)
10:46.21jwaohhh
10:46.36jwathat's what I get for always using the master :D
10:48.12afoederyes jwa same to me :)
10:48.25afoederbut examining the log for [!!!] commits is a good practice ;-)
10:51.37*** join/#flow3 wurtzelsepp (~Adium@132.187.201.14)
10:52.44afoederhm... there's no way to access DI'd properties in a public static method, right?
10:56.59*** join/#flow3 humnus (~humnus@132.187.201.13)
11:05.08*** join/#flow3 benvantende (~quassel@095-096-221-228.static.chello.nl)
11:06.24*** join/#flow3 vjanoch (~vjanoch@HSI-KBW-134-3-113-7.hsi14.kabel-badenwuerttemberg.de)
11:10.20afoederbtw kdambekalns, since you're just on that VO hash thing; I'd strongly recommend not to use just the integer timestamp as DateTime representation. Better would be ->format(DateTime::ISO8601) or similar due to timezone reasons.
11:21.09*** part/#flow3 humnus (~humnus@132.187.201.13)
11:21.59*** join/#flow3 boonkerz (~boonkerz@p5B28BBB0.dip.t-dialin.net)
11:24.38*** join/#flow3 boonkerz_ (~boonkerz@p5B28BBB0.dip.t-dialin.net)
11:32.03*** join/#flow3 benvantende (~quassel@095-096-221-228.static.chello.nl)
11:33.06*** join/#flow3 wurtzelsepp (~Adium@132.187.201.14)
12:04.20*** join/#flow3 andreaswolf (~aw@nat.scc.kit.edu)
12:05.18kdambekalnsafoeder: please open an issue for that. it seems to be a simple change, but since it changes hash calculation we need to make sure it doesn't break BC.
12:06.16afoederyes absolutely; and due to the fact that hash calculation change is so important, the whole "chapter" should really be reliable prior to any stable release.
12:07.34vjanochhello, I've the models Order and OrderItem. Orders have many $orderItems  (Doctrine Collection) and an orderItem has an $order. Now Doctrine does not like the property (table column) with the name "order", because it is a reserved SQL keyword. I have tried to change the columnname  with * @ORM\Column(name="erporder"). Doctrine does not use the changed name. I've echoed the $query variable () LINE 633 in Doctrine\DBAL\Co
12:07.35vjanoch>executeQuery(). Do I have to do something else to advise doctrine to change th column name?
12:25.35ChristianMvjanoch, did you migrate the database schema to the new column name?
12:25.45ChristianMso do you have that new column in your database?
12:28.33vjanochI have run ./flow3 doctrine:update
12:29.02vjanochthat's where I get the error
12:29.25ChristianMmmm
12:29.35ChristianMdid you try to work with migrations
12:29.37ChristianM?
12:29.47vjanochno I didn't
12:29.58ChristianMtry that maybe
12:30.11vjanochok, I will try it
12:51.19*** join/#flow3 tomasito (~tomasito@38.104.90.194)
13:07.07sewowho ever is bored… take a look at http://forge.typo3.org/issues/37363
13:07.15sewomaybe you'll have an idea
13:09.35sewoit's about some strange loops/recursion that causes super many calls to TYPO3\FLOW3\Error\Result\mergeProperty() during the validation and commiting of your objects
13:15.28tomasitogood morning
13:17.33sewolike 231576 mergeProperty() calls for a total of 104 objects that should be persisted (4 objects having each 5 objects, having 2 objects having 1 object) and all this mergeProperty() calls even though they have no custom added validators at all
13:17.52sewoI hope someone finds a solution
13:24.57*** join/#flow3 MatthiasG (~chatzilla@fw.frappant.ch)
13:25.06ChristianM+
13:27.29kdambekalnssewo: i have you AddALot on my watchlist and plan to look into the issue.
13:29.48ChristianMkdambekalns, please give a sign to me when you do, because I wanted to take a look too
13:29.58ChristianMI will tell you if I look into it
13:32.11sewosuper kdambekalns
13:32.15afoederI am currently a bit confused; at what stage are Class properties prepared with their annotated variable types, for example if they are Doctrine\Collections?
13:32.36afoederdoesn't the proxy class do that?
13:44.16sewowho is at the end of the fax line where you send the CLA to ? I'm not sure if my faxes are being recieved there… my fritz.box osx programm doesn't give me any feedback when I try to send the fax there
13:48.59afoederah interesting; TYPO3.Party\...\Person has $this->electronicAddresses = new \Doctrine\Common\Collections\ArrayCollection(); in its constructor...
13:49.05afoederis this still the way to go?
13:50.20pumatertion1i just tried to build a viewHelper to build nested subproperties to reuse simple fieldset forms wich contails just only the property="…" it builds new formObjectNames etc and after rendering it restores the old data from the parent form. can someone take a look at it? https://gist.github.com/2762421
14:10.47*** join/#flow3 humnus (~humnus@132.187.201.13)
14:13.22*** join/#flow3 boonkerz (~boonkerz@p5B28BBB0.dip.t-dialin.net)
14:26.00*** part/#flow3 humnus (~humnus@132.187.201.13)
14:34.19*** join/#flow3 cubert_ (~cubert@p50804A69.dip.t-dialin.net)
14:40.29*** join/#flow3 Robbo_ (~robbo@ppp232-35.static.internode.on.net)
14:41.58*** join/#flow3 fliesentisch (~steve@p54ABD1E6.dip0.t-ipconnect.de)
14:42.45fliesentischhallo zusammen
14:43.46afoederhi
14:44.24pumatertion1hi
14:45.26fliesentischhier auf deutsch zu schreiben ist ok, oder?
14:46.12afoederunfortunately not, fliesentisch ;-) please write in english, so everybody could contribute :)
14:46.33fliesentischok, I'll try my best :)
14:47.43fliesentischI just tried to follow the quickstart tutorial on the flow page and have some trouble installing it
14:48.06afoederyou're on a good place here!
14:48.49fliesentischafter I did this: ./flow3 core:setfilepermissions john www-data www-data  ... /Web in the browser just gave me the phpinfo() output
14:48.59*** join/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de)
14:49.00kdambekalnsafoeder: yes, collections should be initialized in the constructor. doctrine common practice
14:49.57afoederyeah thanks, have that already. I just wondered if that wasn't done automatically; but obviously I didn't remember correctly :)
14:52.22*** join/#flow3 Wrack (~eric@f052229202.adsl.alicedsl.de)
14:59.35fliesentischOk, I figured it out. The RewriteBase in the .htaccess wasn't set properly. I feel like such a noob now :)
15:10.36*** part/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de)
15:20.07afoederwaah kdambekalns I expected that (Documentation) :)
15:25.06afoederhttps://review.typo3.org/#/c/11387/
15:27.44kdambekalnsafoeder: even no-brainers have error potential :)
15:28.17afoederthat's right... should I change it or is 1.1 ok?
15:28.45afoederah I see :)
15:32.25cubert_Hi, how can I manipulate the securityContext Tokens within my FunctionalTests? I want to set the current logged in Account.
15:33.44ChristianMbest you check out the security tests in TYPO3.FLOW3
15:34.04ChristianMthere you see how the test helper methods can be used to authenticate specific roles
15:35.25cubert_setting roles is not sufficient for me
15:35.40cubert_I need to controll the return value of context->getAccount()
15:36.37ChristianMI see, for that I would need to take a closer look too, can't really say atm if that is possible
15:36.52cubert_ok thanks anyway
15:37.44afoederGithub really needs a code review workflow :)
15:38.09ChristianMprobably at some point that will be a paid feature
15:38.28afoederyeah I'd like that
15:39.27*** part/#flow3 SpareParts (~ondriq_h@mono1.monogram.sk)
15:46.36*** join/#flow3 SpareParts (~ondriq_h@mono1.monogram.sk)
15:56.08*** join/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
15:56.50*** part/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
15:59.24afoederso I still wonder... what is the deriving database setting in Testing for? How is it used? In functional testing it doesn't seem to be required/used...
15:59.59ChristianMafoeder, it is
16:00.03kdambekalnsit is used if you provide a different driver. functional tests use sqlite in-memory but you can use anything
16:00.04ChristianMat least in some functional tests
16:00.10ChristianMright
16:00.23ChristianMbut you could (as I did) assign a mysql database for testing too
16:00.50ChristianMbtw. kdambekalns, that is probably why for me one of the tests (getting max. identifier length from doctrine) failed for me
16:00.56afoederahhh ok; so: yes I'd like to use a MySql db :)
16:01.04ChristianMbecause I didn't use the default sqlite-in-memory
16:01.23ChristianMafoeder then just define the database and credentials for your testing db
16:01.29afoederah I see     persistence:      backendOptions:        driver: 'pdo_sqlite'
16:01.33ChristianM+
16:01.39afoeder*_*
16:02.05afoederand the whole Schema is generated on the fly?
16:02.18afoederwhat happens after the tests run through?
16:02.19ChristianMsure
16:02.22ChristianMdropped
16:02.25ChristianMit is in memory
16:02.47afoederyes, @ sqlite with path `memory`; but with Mysql?
16:03.08afoedershould read: "do the tests" some manual cleanup?
16:03.38afoederat memory of course this isn't needed. Its sot and forgot :-P
16:04.18*** join/#flow3 pumatertion (~Adium@p5099c158.dip0.t-ipconnect.de)
16:07.13*** join/#flow3 bwaidelich (~Bastian@dslb-188-100-204-123.pools.arcor-ip.net)
16:12.44*** join/#flow3 pgampe1 (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
16:13.03*** join/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
16:13.16*** part/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
16:18.14*** join/#flow3 chrisDD (~chrisDD@BBWR20.bau.tu-dresden.de)
16:19.25kdambekalnsafoeder: for mysql make sure to use a test db. the tests clean up, but they do that quite rigid. :)
16:19.57afoederyes currently.... resetting my MySQL root password :-/ in order to create that new DB ;-)
16:20.10chrisDDhi, anyone got an idea why authentication toknes taht where working in flow3 1.0 aren't available in 1.1? always getting "The security context contained no tokens which could be authenticated."
16:21.00kdambekalnsa flow3-provided token?
16:21.05bwaidelichchrisDD hi, what kind of tokens are you using? PersistedUsernamePassword?
16:21.09kdambekalnsor a custom token?
16:21.14chrisDDcustom token
16:21.52bwaidelichusername & password based?
16:22.01*** join/#flow3 boonkerz_ (~boonkerz@p5B28BBB0.dip.t-dialin.net)
16:22.27chrisDDi a way, yes
16:22.31chrisDDin a way
16:22.38kdambekalnsUpgrading.txt has been read? RequestInterface has been adjusted?
16:22.51pumatertionchrisDD: token interface changed from request to actionRequest
16:23.07pumatertionthink you need to update your token method
16:23.30pumatertionupdateCredentials(\TYPO3\FLOW3\Mvc\ActionRequest $actionRequest)
16:23.37bwaidelichpumatertion: that would throw a fatal error otherwise
16:24.01chrisDDyep got through all the fatals and fixed those
16:24.06*** join/#flow3 teddai (~teddai@dslb-092-074-056-101.pools.arcor-ip.net)
16:24.10chrisDDfound the breaking config changes too
16:24.17bwaidelichchrisDD so you fetch some credentials from GET/POST?
16:24.23kdambekalnschrisDD: did you try the code migration tool? just curious…
16:24.45pumatertionbwaidelich: i had the same and getting no exception
16:24.54pumatertionchanged it and it works again
16:25.02chrisDDcurrent config: http://pastebin.com/EbZZVrsC
16:25.13chrisDDanything i missed there?
16:25.19bwaidelichpumatertion: then you probably didn't use type hints
16:26.05chrisDDi have calls in my rpc server that are ffa. one is login and this authenticates the token. everything aelse hides behing security context
16:26.28*** join/#flow3 ger^kallisti_ (~kyrill@p579ABA48.dip.t-dialin.net)
16:26.33bwaidelichlooks fine IMO, is your token::updateCredentials() executed?
16:26.39chrisDDjep
16:27.12pumatertioncredentials fetched out of internals?
16:27.13pumatertion$arguments = $actionRequest->getInternalArguments();
16:27.13pumatertion
16:27.24chrisDDafter Security->initialize() it is in activeTokens
16:27.32bwaidelichthats good
16:27.45bwaidelichYourProvider::authenticate() is executed aswell?
16:28.11chrisDDhaven't gotten to this part right now
16:28.27*** join/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
16:28.35bwaidelichthose settings you posted - do you set them in the global Settings.yaml or inside your package?
16:29.09*** part/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
16:30.25bwaidelichit shouldn't really make a difference, if you don't have another package setting up authentication providers
16:30.28chrisDDMyProvider::authenticate() is nto called
16:30.31chrisDDglobal
16:30.41chrisDDnope i haveen't
16:31.56bwaidelichjust to make sure, the settings are: http://pastebin.com/96QDdqap right?
16:33.22chrisDDyes
16:33.27pumatertionchrisDD: can i see the token class?
16:35.57*** join/#flow3 teddai (~teddai@dslb-092-074-056-101.pools.arcor-ip.net)
16:36.21*** join/#flow3 smux (~smux@APoitiers-157-1-35-45.w83-193.abo.wanadoo.fr)
16:36.35bwaidelichchrisDD just to cover that, could you try to copy those settings to your package Settings.yaml and flush the caches? I think I might have seen this issue, that FLOW3s default settings override the global ones sometimes (which would be a bug of course)
16:36.39*** join/#flow3 andreaswolf1 (~aw@nat.scc.kit.edu)
16:36.43chrisDDwell. there is one really bad "quick and dirty" part to access the submitted data i am kind of ashamed but besides that ;-) http://pastebin.com/Cfgkcg62
16:37.25bwaidelichyou still use "\TYPO3\FLOW3\Http\Request" there - and you don't get an exception??
16:38.51chrisDDyes. wait min. need to get this sorted out.
16:39.17pumatertionisnt this exactly the point where an exception shold be thrown?
16:39.18pumatertionpublic function updateCredentials(\TYPO3\FLOW3\Http\Request $request) {
16:40.21*** join/#flow3 nd___ (~nd@mnhm-5f753082.pool.mediaWays.net)
16:40.30chrisDDhad an exception before changing to Http\Request
16:40.34afoederis it possible to avoid that automatic cleanup after func' testing?
16:40.35pumatertionplease give it a try and change it to ActionRequest: updateCredentials(\TYPO3\FLOW3\Mvc\ActionRequest $actionRequest)
16:40.46bwaidelichpumatertion yes, indeed. it's just a regular type hint and ActionRequest is no subtype of Http/Request.. weird
16:41.01afoederI'd like to see if it went correct...
16:42.03*** join/#flow3 Chacky (~Sascha@dslb-094-217-134-116.pools.arcor-ip.net)
16:43.04*** part/#flow3 Chacky (~Sascha@dslb-094-217-134-116.pools.arcor-ip.net)
16:43.39*** join/#flow3 Kollode (~Kollode@g224124211.adsl.alicedsl.de)
16:44.05chrisDDi am totally confused right now. i checked out origin/master when hitting ./flow3 i get version "FLOW3 1.1.0-dev" but the file i have is not the same as http://git.typo3.org/FLOW3/Packages/TYPO3.FLOW3.git?a=blob;f=Classes/Security/Authentication/Token/UsernamePassword.php;h=ea53b995f97a5c86eab5b4292da282642c784c0b;hb=refs/heads/master
16:44.22chrisDDi meant and when hitting
16:44.47chrisDDthe link above is an example
16:45.11bwaidelichthat has been merged only an hour ago. did you "git pull" since then?
16:45.14pumatertionanother guy had the same proble 3 days ago, christian
16:45.38chrisDDlol no
16:45.44bwaidelichI assume that you tried "./flow3 typo3.flow3:cache:flush --force" already!?
16:45.57afoederand, chrisDD, did you reload/refresh/resync the PhpStorm file system? ^^
16:46.34afoeder(drove me insane alotta times... worth to mention imo)
16:47.27chrisDDits a unix machine i am testing on with a pure editor.
16:47.44pumatertionchrisDD: no effect changing the request to actionRequest?
16:48.03chrisDDflushed the cache manually before coming to irc by removing everything in /Data
16:49.17chrisDDthe updatecredentials is working. but i will try.
16:49.45*** join/#flow3 thasmo (~thasmo@d86-33-68-119.cust.tele2.at)
16:49.47chrisDDi am just really confused right now what the status of my current local git is.
16:53.17chrisDDjust changed it back to actionrequest and getting those php fatals http://pastebin.com/HeFunpLN
16:54.07pumatertionmaybe also your token interface is an old one?
16:54.42pumatertioncan you check against the git?
16:55.02pumatertionthe new interface uses ActionRequest, right?
16:56.54chrisDDafter git pull on TYPO3.FLOW3 no fatals anymore
16:57.08chrisDDi did git pull this morning ... oh man ....
16:59.09pumatertionworks now?
16:59.56chrisDDjust checking
17:01.57chrisDDno :-/
17:02.44pumatertionmhh
17:06.11chrisDDMyToken::updateCredentials() is accessed. MyProvdier::authenticate() is not. Strange.
17:21.00chrisDDcalling it a day. thx for all the help annyway :-)
17:36.25*** join/#flow3 tomasito (~tomasito@38.104.90.194)
17:37.29*** join/#flow3 teddai (~teddai@dslb-092-074-056-101.pools.arcor-ip.net)
17:44.04*** join/#flow3 andreaswolf (~aw@p4FDCFBC1.dip.t-dialin.net)
17:57.19*** join/#flow3 chrisDD (~chrisDD@drsd-4dbdb513.pool.mediaWays.net)
18:19.42*** join/#flow3 teddai (~teddai@dslb-092-074-056-101.pools.arcor-ip.net)
18:28.14*** join/#flow3 foertel (~foertel@tmo-111-72.customers.d1-online.com)
18:37.32*** join/#flow3 tomasito (~tomasito@38.104.90.194)
18:45.00*** join/#flow3 fliesentisch_ (~steve@p54ABD859.dip0.t-ipconnect.de)
18:45.48tomasitoI know this error is for the security but from where? that's my question  You are not allowed to perform this action.
18:51.34pumatertiontomasito: policy rule=
18:51.35pumatertion?
18:51.49tomasitothanks
18:57.41*** join/#flow3 tomasito (~tomasito@38.104.90.194)
19:01.09tomasitoquestion ?
19:01.33tomasitothe roles that are in the policy.yaml are the same as the ones in the database
19:02.02tomasitoand is case sensitive?
19:08.25*** join/#flow3 sewo (~sewo@e178015126.adsl.alicedsl.de)
19:09.35*** join/#flow3 smux_ (~smux@APoitiers-157-1-35-45.w83-193.abo.wanadoo.fr)
19:10.45pumatertionmhh, i have no roles in my db
19:11.17pumatertionthats just n array
19:11.28pumatertionits not stored in the db
19:12.43*** join/#flow3 ger^kallisti (~kyrill@188-194-191-15-dynip.superkabel.de)
19:13.10*** join/#flow3 mneuhaus (~textual@ip-78-94-232-113.unitymediagroup.de)
19:13.14pumatertionafoeder wrotes a new floatConverter. there is a helper method inside… http://pastebin.com/Eg1K55SQ
19:13.34pumatertionthis is configured by objects.yaml? and if, how? :P
20:05.15chrisDDanone still up? someone might have an idea why the http request is not injected in the security context?
20:06.00chrisDDmy authentication fails because Context::request is null
20:20.37*** join/#flow3 jochen_ (~Johannes@p5DCC0938.dip0.t-ipconnect.de)
20:38.27*** join/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
20:39.08*** part/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de)
20:44.08*** join/#flow3 foertel (~foertel@tmo-111-72.customers.d1-online.com)
20:52.38chrisDDanone knows which context i need to inject to get acccess to the actionrequest?
20:53.26*** part/#flow3 sewo (~sewo@e178015126.adsl.alicedsl.de)
20:55.30pumatertionchrisDD: still the one 5 hours ago?
20:57.23chrisDDyeah. but i am closing in on it.
20:58.11pumatertionchris, german native speaker?
20:58.15chrisDDi have my own securitycontext, which is a simple extesion to the FLOW3 security context just to get access to the internal reuest var
20:58.18chrisDDyes
20:58.35pumatertionprivate chat in german?
21:09.51tomasitohow I do for when someone that hasn't login try to access a page, the system redirect to the login page ??
21:10.19tomasitoI'm usin in the settings the webredirect
21:10.27tomasitobut is not doing nothing
21:11.13pumatertionyou setup a policy for the stuff wich needs some security. if the roles of a logged in user match he gets access. otherwise he gets redirected to the login
21:11.34tomasitoI've got the policy part
21:11.49tomasitobut in the settings the webredirect is not working
21:12.09pumatertionpastebin the policies please
21:12.12tomasitomethods:
21:12.13tomasito<PROTECTED>
21:12.20pumatertionstop :)
21:12.30tomasitolet me put it in a place complete
21:12.41pumatertionhttp://pastebin.com/
21:13.13tomasitohttp://pastebin.com/Nkb05CF8
21:14.35pumatertionyou dont need a deny
21:14.45tomasitothat was just a test
21:15.20tomasitoif I login I can see the controller even it has a deny
21:15.24tomasitohttp://pastebin.com/7xheYbJi
21:15.31pumatertionthats located in a file named policy.yaml, right?
21:15.44tomasitoyes
21:17.54pumatertionjust use only ' not " in yaml. think this is just only coding guidline stuff
21:18.19tomasitook I will try
21:18.43pumatertionso whats the dirrence between admin and administrator?
21:20.21tomasitoI don't know I was testing
21:20.41tomasitoI thought that the admin was the roles from the database
21:21.11pumatertiontry this please
21:21.13pumatertionhttp://pastebin.com/WkYKrhi8
21:23.22tomasitoit show me this error
21:23.23tomasitoYou are not allowed to perform this action.
21:23.30tomasitowell exception
21:23.34*** join/#flow3 boonkerz_ (~boonkerz@p5B28BBB0.dip.t-dialin.net)
21:23.37tomasitothat is normal
21:24.19pumatertionhttp://pastebin.com/8ddn3aaZ
21:24.24pumatertionsorry, was wrong :)
21:24.27pumatertiontry this
21:26.19tomasitonew exception ;) No tokens in security context, possible session timeout
21:26.58pumatertionclear cache, and retry
21:27.38tomasitothe exception continue
21:27.58pumatertiondont call the action directly
21:28.11tomasitoI don't
21:28.18tomasitoI do a link.action
21:28.29tomasitoand from there I click
21:28.43pumatertionthis link should place a csrf token
21:28.52tomasitothis is my url http://flow3/admin?__csrfToken=adad9c05494c2af6928d24ff824bf77c
21:28.54pumatertionthis is missing so you get the exception i think
21:28.55pumatertionmhh
21:29.05pumatertionokay
21:29.07pumatertionwait
21:29.20pumatertiondo you place a policy on the controller you redirected to?
21:29.47pumatertionyou did :)
21:29.48tomasitono
21:29.53tomasitoin the settings
21:30.01pumatertionMAS_Pro_Users:    "method(MAS\Pro\Controller\AdminController->.*())"
21:30.14pumatertionthis is where you redirect to, right? admin/login
21:30.27tomasitoyes that the controller that I want to protect
21:30.48pumatertionbut this one also contains the authenticateAction right?
21:30.52tomasitono
21:30.59tomasitothe login controller
21:31.10tomasitoI have a router that have the admin/login
21:31.40pumatertionand this one redirects to what?
21:31.40pumatertionroutes to what?
21:31.58tomasitohttp://pastebin.com/bAvufj9k
21:32.36pumatertionline 32
21:32.43pumatertionthis is protected by acl i think
21:33.20pumatertionyou should use admin/authentication/login in entryPointOptions
21:33.48tomasitoI change it to mas.pro/login
21:33.55tomasitothat is the way
21:34.12pumatertionthis also works, right
21:34.26tomasitoyes
21:34.41pumatertionanything works now as expected?
21:34.50tomasitonot
21:34.52tomasito: No tokens in security context, possible session timeout
21:35.03tomasitothis is the exception I'm receiving
21:35.23pumatertionso would you please send me your token class
21:35.48tomasitothe token class ??
21:35.57tomasitoI don't have
21:36.13tomasitoi use if i use the one from the framework
21:36.47tomasitopumatertion: Hey man are yu going to be here tomorrow morning or afternoon ??
21:36.57pumatertionTYPO3\FLOW3\Security\Authentication\Token\PersistedUsernamePassword
21:37.04jochen_How do i handle ValueObjects in 1.1? I'm updating a Model with got a property with an ValueObject and i keep getting an error like "SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry"
21:38.00pumatertionsorry jochen, never used valueobject at this point
21:38.13jochen_someone else maybe
21:38.13tomasitono I don't have that one
21:38.14jochen_?
21:38.51tomasitoI have this thought TYPO3\FLOW3\Security\Authentication\Token\UsernamePassword
21:39.17pumatertionyes, this one
21:39.28tomasitoyes that I have
21:40.07pumatertionpastebin please
21:40.53pumatertiondamn, i feel sleepy
21:40.58tomasitohttp://pastebin.com/Hsfb13ds
21:41.29tomasitopumatertion: let's leave it for tomorrow, I have to go, the builder were I'm have to close
21:42.23pumatertiontomasito: wich flow3 version is this?
21:42.52tomasitothe latest
21:42.54pumatertionmine looks like this
21:42.55pumatertionhttp://pastebin.com/fp8mLRSe
21:44.37tomasitoIt have nothing to do with mine
21:44.47tomasitomaybe is different
21:45.03pumatertionhttp://git.typo3.org/FLOW3/Packages/TYPO3.FLOW3.git?a=blob;f=Classes/Security/Authentication/Token/UsernamePassword.php;h=ea53b995f97a5c86eab5b4292da282642c784c0b;hb=FLOW3-1.1
21:45.17tomasitoremember mine is usernamepassword and yours is presistendusernamepassword
21:45.43tomasitoI can change it and see
21:46.01pumatertionno
21:46.02pumatertiondont
21:46.11pumatertionmine is 1.1 yours is 1.0
21:46.24pumatertionseems to be okay if you want to use 1.0
21:46.59pumatertionbut then you have to change your settings of security back to 1.0 settings
21:47.10pumatertionbut i dont know the structure for 1.0
21:47.11pumatertionsorry
21:47.22pumatertionbut try your old one
21:47.28tomasitothen lets change for the new one
21:47.37tomasitoI just starting the application
21:47.45tomasitoso better now that later
21:47.51tomasitowhere i can download
21:48.07pumatertionyou got to use git
21:48.17pumatertionbut i have to leave now. sorry
21:48.20pumatertionneed sleep :)
21:48.52tomasitook
21:48.58tomasitome too have to leave
21:49.03tomasitosee you tomorrow
21:51.04jochen_Anyone here who could help me handling valueObjects?
22:07.42*** join/#flow3 goli (~goli@62.245.162.32)
22:09.09*** join/#flow3 beberlei (~twitter@koln-4d0b0dee.pool.mediaWays.net)
22:58.51*** join/#flow3 linkedinyou (~linkediny@unaffiliated/linkedinyou)
23:11.38*** join/#flow3 boonkerz_ (~boonkerz@p5B28B62C.dip.t-dialin.net)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.