00:40.54 | *** join/#flow3 boonkerz_ (~boonkerz@p5B28BA9E.dip.t-dialin.net) |
02:01.44 | *** join/#flow3 visay (~visay@119.82.252.95) |
02:10.46 | *** join/#flow3 nd__ (~nd@mnhm-5f753082.pool.mediaWays.net) |
02:48.39 | *** join/#flow3 Robbo_ (~robbo@ppp232-35.static.internode.on.net) |
05:38.48 | *** join/#flow3 Chacky (~Sascha@dslb-094-217-134-116.pools.arcor-ip.net) |
05:38.54 | *** part/#flow3 Chacky (~Sascha@dslb-094-217-134-116.pools.arcor-ip.net) |
06:08.15 | *** join/#flow3 afoeder (~afoeder@p4FD64741.dip0.t-ipconnect.de) |
06:09.45 | pumatertion | good morning folks |
06:10.18 | pumatertion | shouldnt @FLOW3\IgnoreValidation(argumentName="myargument") match? |
06:24.12 | *** join/#flow3 wittem (~wittem@mail.techdivision.com) |
06:32.19 | *** join/#flow3 nd___ (~nd@mnhm-5f74eda9.pool.mediaWays.net) |
06:42.10 | *** join/#flow3 Guest20874 (~Roman@HSI-KBW-082-212-004-036.hsi.kabelbw.de) |
06:47.19 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
06:48.50 | *** join/#flow3 SpareParts (~ondriq_h@mono1.monogram.sk) |
06:54.09 | *** join/#flow3 elos (~Miranda@p57A01686.dip0.t-ipconnect.de) |
06:56.31 | *** join/#flow3 mneuhaus (~textual@ip-78-94-232-113.unitymediagroup.de) |
06:56.45 | mneuhaus | good morning |
06:56.52 | afoeder | morning |
06:57.16 | mneuhaus | exactly the person i wanted to talk to ^^ |
06:57.31 | afoeder | let me guess... Assetic? ;-) |
06:57.34 | mneuhaus | bastian said you started some work on an assetic based package/integration ^^ |
06:57.55 | afoeder | "started" is unfortunately a bit much said, but... |
06:58.12 | afoeder | no, not but; you already saw the issue related to this, right? |
06:58.24 | mneuhaus | i think yes, let me recheck |
06:59.08 | afoeder | what I actually started is two package scaffolds |
06:59.36 | afoeder | we came to the decision that one Package will be some kind of "TYPO3.Asset", the second package will just wrap the Assetic itself |
06:59.54 | afoeder | the "wrapping" package is here: https://github.com/afoeder/Assetic-Package |
07:00.12 | afoeder | and the TYPO3.Asset package... ahem... "will be" ;-) here: https://github.com/afoeder/TYPO3.Asset |
07:01.05 | mneuhaus | okay, the ideas in the wiki seems to be going in the same direction i planned a while ago for admin :) |
07:01.16 | afoeder | unfortunately, again, I myself don't have assetic experience; and I built a JavaScript packager on my own; so I wasn't forced to continue on Assetic |
07:01.46 | *** join/#flow3 cubert__ (~cubert@p50805002.dip.t-dialin.net) |
07:01.53 | afoeder | but I would still be glad to be involved in some thinkings and idea crunching |
07:02.13 | mneuhaus | since i need, or lets say, want a good way to integrate sytles and js, i'll probably give it a shot |
07:02.16 | mneuhaus | sure |
07:02.47 | mneuhaus | one key thing i'm quite interested in is having a good way to integrate Bootstrap for exampe |
07:03.00 | afoeder | "from twitter"? |
07:03.07 | mneuhaus | yea |
07:04.31 | mneuhaus | i created an LessViewHelper and used it with a modified bootstrap.less to pull the bootstrap less files in and place some of my own files after the original ones |
07:04.58 | mneuhaus | that's something i would love to outsource to AssetManagement |
07:07.05 | mneuhaus | for that it would be cool to be able to specify files to be appended or prepended to existing bundles |
07:07.31 | afoeder | yes, similar to me: I adopted a MooTools packager and the yuicompressor and built an own ViewHelper out of it; I'd also love to see this done with assetic |
07:08.51 | *** join/#flow3 ger^kallisti (~kyrill@p579AB302.dip.t-dialin.net) |
07:10.29 | mneuhaus | i'd love something like this: |
07:10.30 | mneuhaus | https://gist.github.com/2767260 |
07:11.01 | afoeder | yeah looks nice |
07:11.48 | mneuhaus | that way one could easily extend and modify styles of a contributed package from your own |
07:12.17 | mneuhaus | because i would just put out <css:bundle name="Bootstrap" /> |
07:12.57 | mneuhaus | i guess i'll fork you on github and give it a shot tonight :) |
07:13.11 | afoeder | I could also add you as contributor, if you like |
07:13.26 | mneuhaus | sure |
07:13.33 | mneuhaus | mneuhaus :) |
07:14.07 | *** join/#flow3 teddai (~teddai@85.183.90.38) |
07:14.39 | afoeder | with https://github.com/afoeder/Assetic-Package/blob/master/Scripts/git-checkout.sh you should be able to pull the current origin of Assetic |
07:14.56 | *** join/#flow3 wurtzelsepp (~Adium@wli8014.zv.uni-wuerzburg.de) |
07:15.12 | robertlemke | mneuhaus: would be pretty cool if you could come up with some rough concept which we could tackle for FLOW3 1.2. Obviously we (or you) need to experiment and try some quick shots. And that should be followed by some proper integration or implementation with the "FLOW3 style" in mind. Assetic is quite cool, but "just integrating" it blindly, might not be the right way in the long term. |
07:15.24 | robertlemke | and afoeder of course ;-) |
07:15.36 | mneuhaus | yeah sure |
07:16.10 | mneuhaus | for now i would orientate myself along the wiki and forge ticket |
07:16.21 | afoeder | mneuhaus, just to mention it, if you come up to need it: https://github.com/afoeder/Symfony.Component.Process |
07:16.32 | robertlemke | That being said, I'm pretty excited about the ideas you guys come up with. I'm just the boring clean up guy who tries to channel ideas into releases ;-) |
07:16.52 | afoeder | Assetic AFAIK and my packager for yuicompressor uses it to run the .JAR |
07:17.35 | afoeder | and, mneuhaus, i've just added you as collab for TYPO3.Asset and Assetic |
07:17.46 | robertlemke | Ah and speaking of Symfony: remember that we can't just pick any symfony part and integrate it into FLOW3. There may be, among other things, license aspects which prevent us to do that. |
07:18.13 | pumatertion | good morning |
07:18.17 | afoeder | that's a good point robertlemke, good you say that |
07:18.31 | afoeder | I thought it wasn't a problem due to GPL etc... |
07:18.45 | afoeder | but probably GPL <> LGPL? |
07:19.12 | mneuhaus | i used Symfony's Toolbar icons for my toolbar, but i asked fabpot for permission and he just responded with a link to the icons license, which i included in that package |
07:19.38 | robertlemke | Using Symfony (MIT) in Phoenix (GPL) is not a problem, but if we want to contribute something from Phoenix or TYPO3, it is an issue. That's what the Drupal devs just realized ... |
07:20.01 | afoeder | you mean "contribute back"? |
07:20.11 | afoeder | ...back TO Symfony? |
07:20.15 | mneuhaus | yea, there's a huge ticket about language improvements |
07:20.29 | robertlemke | mneuhaus: yes, the icons have a Creative Commons license, but the code is MIT. But even if there's no license issue, it still wouldn't be the nice way to just pick cherries. |
07:20.31 | robertlemke | afoeder: yes |
07:21.17 | mneuhaus | robertlemke: i've just chosen to use the icons for now to save time, the style should definetivly be molded more into the FLOW3 style |
07:21.20 | robertlemke | I think that if we use other Open Source code, we need to contribute back, if we find issues or parts to improve. Just what we'd expect from others using our code. |
07:21.24 | afoeder | yeah I agree with that Cherry-picking part... |
07:21.34 | robertlemke | mneuhaus: yes, all understood, good and pragmatic ;-) |
07:22.19 | *** join/#flow3 visay (~visay@119.82.252.95) |
07:22.27 | robertlemke | okay, off for some coding now ... |
07:22.35 | mneuhaus | have fun :) |
07:22.36 | mneuhaus | btw |
07:22.44 | mneuhaus | http://phoenix.flow3.famelo.com/ |
07:22.47 | mneuhaus | is working again |
07:23.08 | afoeder | not with IE ;-) |
07:23.51 | mneuhaus | ^^ might be, there are a hell lot of tickets with higher prio than that whiny browser :D |
07:24.37 | afoeder | ah, that's still a Core issue: there's a comment prior to the Doctype which makes IE fall in to Quirks mode |
07:25.18 | mneuhaus | oh, ok i thought you meant the Management package or Toolbar |
07:25.36 | mneuhaus | that's my Demo Environment for that |
07:25.45 | afoeder | no, the whole page is broken ;-) |
07:26.05 | *** join/#flow3 Kollode (~patrick@designnet.work.de) |
07:26.06 | ChristianM | yes, that are the Typoscript comments |
07:26.12 | ChristianM | but they can be easily removed |
07:26.22 | afoeder | moin ChristianM |
07:26.51 | mneuhaus | Moin |
07:26.52 | afoeder | removed: should urgently be done @ http://flow3.typo3.org/ :) |
07:27.11 | ChristianM | mmm |
07:27.52 | mneuhaus | TYPO3.Asset is completly empty right know ? |
07:28.05 | mneuhaus | not event a kicktstart? |
07:28.05 | *** join/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de) |
07:28.16 | afoeder | yep, it never went beyond the "concept" at Forge |
07:28.23 | mneuhaus | ah, ok |
07:32.29 | mneuhaus | ok, i'm off coding for now as well |
07:32.48 | afoeder | have fun, too ;) |
07:33.00 | mneuhaus | probably won't be fun |
07:33.00 | *** join/#flow3 boonkerz (~boonkerz@p5B28BA9E.dip.t-dialin.net) |
07:33.04 | mneuhaus | Drupal... |
07:37.21 | ChristianM | :( |
07:38.15 | afoeder | I never had the pleasure... |
07:38.32 | mneuhaus | than consider yourself lucky |
07:39.12 | ChristianM | yes, very lucky indeed |
07:39.18 | mneuhaus | the Code is a nightmare |
07:39.39 | mneuhaus | working on FLOW3 a bit each day is the only way to keep my sanity |
07:41.51 | *** join/#flow3 andreaswolf (~aw@p4FDCD339.dip.t-dialin.net) |
07:42.29 | afoeder | yaye that must really be horrible ;-) I just had a colleague who loved Drupal over TYPO3... |
07:42.54 | *** join/#flow3 thomas_hempel (~thomas@designnet.work.de) |
07:43.00 | mneuhaus | You should send him to a mental clinic |
07:43.02 | mneuhaus | ^^ |
07:43.19 | thomas_hempel | Hi there |
07:43.25 | mneuhaus | hi |
07:43.49 | thomas_hempel | Anybody here who could help me with routing configuration? |
07:48.06 | *** join/#flow3 bwaidelich (~Bastian@dslb-188-100-204-123.pools.arcor-ip.net) |
07:49.59 | ChristianM | thomas_hempel go ahead ;) |
07:50.21 | thomas_hempel | Okay, I try to understand the routing in FLOW3 but I can't rap my head around it. |
07:50.47 | thomas_hempel | I'm building a REST service |
07:51.17 | thomas_hempel | So I want an URI like mydomain.com/user/detail/someUserId.xml |
07:51.36 | thomas_hempel | And mydomain.com/user/delete/someUserId.xml etc. |
07:52.12 | *** join/#flow3 aertmann (~aertmann@109.202.148.90) |
07:52.17 | thomas_hempel | The documentation on routing in the "definitive guide" is not really helpful tbh |
07:53.12 | bwaidelich | thomas_hempel: we know, but what's missing to you? |
07:53.26 | thomas_hempel | How do I have to set it up? ;-) |
07:53.47 | ChristianM | did you take a look at some of the custom routes that already exist? |
07:54.26 | thomas_hempel | I already configured "something" in my Routes.yaml and that get's diaplayed when I use ./flow3 routing:list |
07:55.06 | bwaidelich | isn't your example exactly covered by http://flow3.typo3.org/documentation/guide/partiii/routing.html#object-route-parts ? |
07:55.17 | thomas_hempel | So I assume it's set up correctly... But how should the configuration look like to achive somethingl ike the above mentioned URL. All examples link directly to a certain action |
07:56.08 | bwaidelich | - |
07:56.08 | bwaidelich | <PROTECTED> |
07:56.08 | bwaidelich | <PROTECTED> |
07:56.08 | bwaidelich | <PROTECTED> |
07:56.08 | bwaidelich | <PROTECTED> |
07:56.08 | bwaidelich | <PROTECTED> |
07:56.08 | bwaidelich | <PROTECTED> |
07:56.09 | bwaidelich | <PROTECTED> |
07:56.09 | bwaidelich | <PROTECTED> |
07:56.32 | bwaidelich | uriPattern: 'user/{@action}/{user}.{@format}' |
07:56.35 | bwaidelich | to be exact |
07:56.43 | thomas_hempel | No, because I don't map any objects... In the background I query an LDAP server, so all I need is the raw GET value from the URI |
07:57.00 | bwaidelich | then leave out the routeParts part |
07:57.12 | bwaidelich | - |
07:57.13 | bwaidelich | <PROTECTED> |
07:57.13 | bwaidelich | <PROTECTED> |
07:57.13 | bwaidelich | <PROTECTED> |
07:57.13 | bwaidelich | <PROTECTED> |
07:57.13 | bwaidelich | <PROTECTED> |
07:57.19 | ChristianM | but then it is appended as query string |
07:57.20 | ChristianM | ? |
07:57.21 | thomas_hempel | There are no objects involved whatsoever... All I have is the controller... |
07:57.43 | *** join/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de) |
07:57.56 | bwaidelich | public function detailsAction($userid) { } |
07:58.20 | bwaidelich | @param string $userid |
07:58.45 | thomas_hempel | I'll try |
07:59.42 | bwaidelich | btw (and i don't want to sound smart-aleck): strickly speaking your example is not REST really |
08:00.20 | thomas_hempel | <PROTECTED> |
08:00.30 | bwaidelich | for that your URIs would look like "users/<userId>" and the action (show, delete, ...) are determined by the HTTP method |
08:00.49 | bwaidelich | just sayin ;) |
08:01.38 | thomas_hempel | I know but first I need to get the userId into the controller... But I get 404 all the time. |
08:01.58 | bwaidelich | as i said, i didn't want to correct you. only if you need a "real" REST service, you could check out https://github.com/bwaidelich/REST-Test |
08:02.18 | bwaidelich | ..which i need to update to FLOW3 1.1 i just realized. I'll do that now, anyways |
08:03.11 | thomas_hempel | No offense taken :-) |
08:03.40 | bwaidelich | what is the message in the 404 error? |
08:05.11 | thomas_hempel | He still uses the FLOW3 routes... So he assumes the last parameter is the action... I've disabled the default routes now and it at least get's me some exception now ;-) |
08:05.43 | bwaidelich | where do you configure the routes? |
08:06.12 | bwaidelich | in your packages Routes.yaml? do you include it as sub routes? |
08:08.08 | thomas_hempel | https://gist.github.com/2767491 |
08:08.55 | bwaidelich | looks good |
08:08.58 | thomas_hempel | When I now call user/show/fooBar.xml I get "Required argument "userId" is not set" |
08:09.07 | bwaidelich | could you gist your routes.yaml, too? |
08:09.24 | bwaidelich | in the log you can see which route matched the URI |
08:09.36 | thomas_hempel | They are both in the gist above |
08:09.49 | bwaidelich | ah right, sorry |
08:09.52 | thomas_hempel | First is the system and the second one os the Routes.yaml from my package |
08:10.02 | bwaidelich | {@userId} -> {userId} |
08:10.58 | thomas_hempel | This works! AWESOME! |
08:11.01 | thomas_hempel | Thank you |
08:12.49 | bwaidelich | you're welcome. the @ should illustrate, that the argument is used by the framework |
08:12.51 | *** join/#flow3 Kirab (~kira.back@b2b-46-252-131-198.unitymedia.biz) |
08:12.54 | bwaidelich | http://flow3.typo3.org/documentation/guide/partiii/routing.html#dynamic-route-parts |
08:13.00 | bwaidelich | "The @-prefix should reveal that action has a special meaning here. Other predefined keys are @package, @subpackage, @controller and @format. But you can use dynamic route parts to set any kind of arguments" |
08:13.21 | bwaidelich | but i admit, it's all quite confusing at first |
08:15.31 | *** join/#flow3 boonkerz (~boonkerz@p5DC659BE.dip.t-dialin.net) |
08:20.42 | thomas_hempel | A little bit ;-) |
08:21.12 | thomas_hempel | But it's working now which is great... Now I can make it a little more RESTful ;-) |
08:21.24 | bwaidelich | if you have suggestions for improving the documentation, let us know |
08:21.37 | bwaidelich | in the meantime i'll try to update the RestTest package ;) |
08:29.41 | thomas_hempel | Is the resolveActionMethodName() called automatically when I inherit my Controller fom the RestController or do I have to do this manually in an indexAction ? |
08:30.50 | bwaidelich | it's called automatically, but note that REST support in FLOW3 is in a *really* early state yet - i'm not sure how mature the RestController is, currently |
08:31.00 | *** join/#flow3 jochen (~Johannes@p5DCC0927.dip0.t-ipconnect.de) |
08:37.41 | thomas_hempel | Any idea what could be wrong if a "./flow3 routing:routepath user" Gives me the correct information while calling the URI in a browser returns an exception that says "Could not resolve a route and its corresponding URI for the given parameters. This may be due to referring to a not existing package / controller / action while building a link or URI." ^^ |
08:38.18 | thomas_hempel | It's "hard linked" to an action in the Routes.yaml |
08:38.36 | bwaidelich | thomas_hempel: "resolve" means building the URI. so it's probably a link you create in some Fluid template |
08:39.35 | bwaidelich | actually.. if you used the default link/uri viewHelpers this exception should be caught - so maybe you call $uriBuilder->xyz() yourself? |
08:39.38 | thomas_hempel | oh... Now that you say it |
08:40.23 | thomas_hempel | I guess I owe you one or two beers at the next event ;-) |
08:41.36 | bwaidelich | no way, i'm glad to get some feedback. this reminds us of the most important issues out there (for example: better error handling) |
08:41.37 | afoeder | it's not possible to set an ExpectedException in a DataProvider in Func' Tests, right? |
08:41.57 | bwaidelich | afoeder yes: $this->expectedException() |
08:42.32 | bwaidelich | no, but s.th. like that |
08:42.33 | bwaidelich | ;) |
08:42.36 | bwaidelich | hang on |
08:42.36 | afoeder | wheee of course.... and the value of that method is supplied @ the data provider? |
08:42.44 | thomas_hempel | Problem was uriBuilder->uriFor('',... should be NULL |
08:42.46 | bwaidelich | right, that's how i did it at least |
08:42.58 | afoeder | cool |
08:43.00 | bwaidelich | thomas_hempel: ah, i see |
08:44.09 | bwaidelich | setExpectedException() it is |
08:44.35 | bwaidelich | see http://git.typo3.org/FLOW3/Packages/TYPO3.FLOW3.git?a=blob;f=Tests/Unit/Mvc/Routing/RouteTest.php;h=15f46a1e93c6eae5b5de4fb35f17ad8e0d4a18b3;hb=HEAD#l394 |
08:44.48 | bwaidelich | (of course you can set the exception class name too) |
08:44.51 | afoeder | yeah just saw it the same moment you named it: http://www.phpunit.de/manual/3.2/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.exceptions.examples.ExceptionTest2.php |
08:51.27 | thomas_hempel | Does everybody agree that a dot (.) is absolutely ok in an URI? |
08:51.52 | ChristianM | + |
08:52.00 | afoeder | + |
08:52.56 | thomas_hempel | Because if you do I either found a nasty bug in the routing or I just have misconfigured something. ;-) |
08:53.28 | thomas_hempel | This is my uriPattern: 'user/{userId}(.{@format})' |
08:54.02 | thomas_hempel | Now, the userId could be an email address... This gives us URIs like |
08:54.19 | thomas_hempel | user/thomas.hempel@typo3.org.json (for example) |
08:54.30 | thomas_hempel | What I get in my controller though is |
08:54.38 | thomas_hempel | userId => thomas |
08:54.56 | thomas_hempel | format => hempel@typo3.org.json |
08:55.07 | bwaidelich | thomas_hempel: that's not really a bug but rather a logical problem |
08:55.26 | thomas_hempel | I can imagine that |
08:55.37 | bwaidelich | you make ".<format>" optional, so the routing takes anything before the "." for the userId |
08:56.04 | thomas_hempel | Yeah but steps through the URI from left to right while it should do from right to left |
08:56.05 | bwaidelich | the easiest solution in this case is to add two routes |
08:56.38 | thomas_hempel | But I see that this is not correct in every case |
08:56.46 | bwaidelich | no, there is no technical solution. users/thomas.some.format -> users/thomas.hempel.format |
08:56.52 | bwaidelich | how should the routing determine the difference |
08:57.02 | *** join/#flow3 fliesentisch_ (~steve@p54ABD859.dip0.t-ipconnect.de) |
08:57.46 | thomas_hempel | Yeah, I see the technical diffculty... Nevertheless it's wrong in this case because the last path segment (which is segmented by a .) is supposed the format not everything after the first fot it finds |
08:58.15 | bwaidelich | the format could contain a dot too, in theory |
08:58.20 | thomas_hempel | I don't see any easy solution to this |
08:58.26 | thomas_hempel | sure |
08:59.04 | *** join/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de) |
08:59.13 | thomas_hempel | On the other hand.. I just leave it out... I support only XML anyways ;-) |
08:59.42 | bwaidelich | or specify the format via "Content-Type" header - that's RESTfuller anyways ;) |
09:00.36 | bwaidelich | the solution would be a custom RoutePartHandler in this case |
09:01.16 | *** join/#flow3 sewo (~sewo@e178016116.adsl.alicedsl.de) |
09:04.06 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
09:06.37 | *** join/#flow3 Denyerec (~Never@cpc4-shep11-2-0-cust49.8-3.cable.virginmedia.com) |
09:08.50 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
09:29.01 | afoeder | ok pumatertion, now with Test: https://review.typo3.org/#/c/10634/ |
09:30.17 | *** part/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de) |
09:30.27 | pumatertion | thanks :) |
09:30.57 | pumatertion | i will take a look and try to figure out how it works |
09:31.46 | *** join/#flow3 elos (~Miranda@p57A01686.dip0.t-ipconnect.de) |
09:32.37 | *** join/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de) |
09:42.44 | afoeder | ...is it possible to avoid that database cleanup after func' testing? |
09:43.00 | afoeder | I'd like to see if my entity stuff is *really* there as expected :) |
09:45.18 | jochen | does anyone know a good extensions to stop all sessions on chrome fast? |
09:49.48 | *** join/#flow3 chrisDD (~chrisDD@BBWR20.bau.tu-dresden.de) |
10:13.37 | bwaidelich | hi chrisDD, did you find the issue with your custom authentication provider already? |
10:23.14 | chrisDD | hi, bwaidelich. yes. it boild down to my own security context which resulte in an empty request property. With this the manager killed all tokens. why it did this i don't know. but pumateration provided my with an idea where this context isn't needed anymore and i can use the original flow3 context. with this everything is working fine. |
10:24.57 | chrisDD | sometimes looking at what i am writing i feel like a retard. sorry for all the typos... |
10:28.42 | pumatertion | i helped i helped yeees striiiiiiiike ;) i am so thankfull for your problem ;) |
10:30.11 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
10:36.47 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
10:45.03 | *** join/#flow3 jochen_ (~Johannes@p5DCC0927.dip0.t-ipconnect.de) |
10:49.22 | *** join/#flow3 fabianfabian (~fab@D57D3095.static.ziggozakelijk.nl) |
10:55.41 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
11:03.54 | pumatertion | anyone can tell me the osx shorcut for infinitive sign? :P |
11:05.30 | pumatertion | got it, thanks |
11:05.59 | afoeder | for ($i=0; $i<=∞; $i++) |
11:08.02 | aertmann | does not compute |
11:08.18 | afoeder | really? must be a bug in there... |
11:13.15 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
11:13.20 | pumatertion | yes, <=∞ is impossible … must should work < ∞ :) |
11:15.03 | afoeder | well than I'll try $i/0 <= ∞ ... wait a minite, I'll buy some cloud computing space at amazon |
11:15.08 | Robbo_ | Does flow3 has it's own template stuff? Would adding moustache to it be easy? |
11:16.05 | aertmann | Robbo_: not sure about easy, but yes FLOW3 has tempting with Fluid.. but you should be able to use whatever you want if you port it |
11:17.24 | Robbo_ | Have you got a link to its syntax? |
11:18.54 | aertmann | http://flow3.typo3.org/documentation/guide/partiii/templating.html |
11:20.04 | afoeder | are there frontend "tests" for ViewHelpers available anywhere? |
11:21.38 | Robbo_ | Thanks |
11:29.53 | Robbo_ | fluid looks good |
11:30.54 | afoeder | is the @api annotation still used btw? |
11:35.35 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
11:36.21 | pumatertion | mhh, someone using the media package? there is a model for image wich contains an initialize() wich uses getimagesize for construction. this one fails if a user uploads a txt file for example. the mapping is done befor the validator for filetypes matches |
11:37.22 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
11:42.39 | *** join/#flow3 boonkerz (~boonkerz@p5B28BA9E.dip.t-dialin.net) |
11:43.11 | afoeder | pumatertion, right. |
11:43.29 | afoeder | "there's an app eh review for that" |
11:43.45 | afoeder | https://review.typo3.org/#/c/11136/ |
11:44.07 | afoeder | read the corresponding issue, too, please. Interesting IMO ;-) |
11:45.53 | pumatertion | thanks |
11:46.20 | *** join/#flow3 pgampe1 (~phil@pptp-212-201-77-224.pptp.stw-bonn.de) |
11:50.49 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
11:51.08 | pumatertion | i still dont understand why the converters returning validationErrors instead returning incoming source untouched |
11:51.50 | afoeder | because they won't be converters if they left the incoming value untouched |
11:52.13 | afoeder | if this should be intended, however, that's what the canConvertFrom() method is for |
11:52.32 | afoeder | that's a "last" opportunity for the validator to abstain himself from the conversion chain |
11:53.21 | afoeder | oh poor Gerrit |
11:57.58 | pumatertion | i allready send an issue in forge for this. so if it returns errors and the NotEmpty validators in Models are obsolete. And how should i be able to allow NULL for nullable floats, f.e.? |
11:58.25 | pumatertion | i cant figure out how i could be able to NULL a field with this converter behaviour |
12:01.41 | pumatertion | so maybe not an untouched return but a null return if converting fails |
12:03.35 | *** join/#flow3 smux (~smux@APoitiers-157-1-86-33.w83-203.abo.wanadoo.fr) |
12:15.39 | afoeder | kdambekalns, what does it mean when you give a review a "no score"? :) |
12:18.43 | *** join/#flow3 devcow (~devcow@HSI-KBW-082-212-004-036.hsi.kabelbw.de) |
12:28.31 | kdambekalns | afoeder: i just removed my −2 in that case |
12:28.36 | *** join/#flow3 smux (~smux@APoitiers-157-1-150-175.w86-213.abo.wanadoo.fr) |
12:29.17 | *** join/#flow3 skorpi_ (~skorpi@p4FE81A3C.dip.t-dialin.net) |
12:29.25 | afoeder | ah ok :) |
12:42.25 | kdambekalns | reviews highly appreciated: https://review.typo3.org/#/q/topic:34145-validation-optimisation,n,z |
12:44.01 | afoeder | kdambekalns, aren't some Validators singleton? |
12:44.37 | afoeder | and, if so, is that case covered with that isValidatedAlready() |
12:45.06 | *** join/#flow3 smux_ (~smux@APoitiers-157-1-42-220.w83-193.abo.wanadoo.fr) |
12:51.24 | afoeder | and, kdambekalns, what's the [!!!] in this case? |
12:55.15 | kdambekalns | it's a breaking change |
12:55.28 | *** join/#flow3 tomasito (~tomasito@38.104.90.194) |
12:55.36 | afoeder | yes I know; but what exactly is expected to break here? |
12:55.51 | afoeder | usually that's named in the commit msg, but I cant's find anything... |
12:58.34 | kdambekalns | i guess i did that because of the new interface. feel free to leave a comment, i have to leave now, sorry… |
12:59.26 | afoeder | np, cu! |
13:05.11 | *** join/#flow3 smux (~smux@APoitiers-157-1-166-192.w86-213.abo.wanadoo.fr) |
13:05.52 | *** join/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de) |
13:06.05 | *** part/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de) |
13:16.31 | *** join/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de) |
13:16.58 | *** join/#flow3 humnus1 (~humnus@wli8013.zv.uni-wuerzburg.de) |
13:19.18 | *** join/#flow3 sherold (~smuxi@p57AEE722.dip.t-dialin.net) |
13:21.38 | *** join/#flow3 smux_ (~smux@APoitiers-157-1-55-216.w83-193.abo.wanadoo.fr) |
13:29.13 | *** join/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de) |
13:41.10 | *** join/#flow3 ghost1 (~ghost1@38.104.90.194) |
13:41.13 | cubert__ | Hi how do I get the BaseUri within my Controller in 1.1, before it was $this->request->getBaseUri() |
13:41.49 | robertlemke | $this->request->getHttpRequest()->getBaseUri() |
13:42.05 | cubert__ | I tryed to inject \TYPO3\FLOW3\Http\HttpRequestHandlerInterface but this does not work as it expects Bootstrap as constructor argument |
13:42.11 | cubert__ | ah |
13:42.13 | ghost1 | when working with the the flow3 cli, specifically with the doctrine functions, what is the difference between doctrine:migrate and doctrine:update ? |
13:42.15 | cubert__ | thanks |
13:42.19 | robertlemke | cubert__: don't even think about doing that ;-) |
13:42.30 | cubert__ | ok :-D |
13:43.56 | ghost1 | robertlemke: Can you help me with my question? |
13:45.08 | cubert__ | ghost1: migrate is executing your migration scripts and nothing else |
13:45.26 | cubert__ | ghost1: migration scripts become generated with doctrine:migrationgenerate |
13:45.43 | cubert__ | ghost1: update does the update on DB directly without migraiton scripts |
13:45.53 | robertlemke | ghost1: sure! http://flow3.typo3.org/documentation/guide/partiii/persistence.html#schema-management |
13:46.19 | ghost1 | Oh, so its recommended to use migration scripts that can be used to migrate a production system? |
13:46.35 | cubert__ | exactly |
13:46.35 | robertlemke | yes, absolutely |
13:46.46 | ghost1 | Perfect, that makes a lot of sense |
13:52.12 | ghost1 | OK guys now I am having another issue. When I execute doctrine:migrationgenrate it generates the migration scripts as you had mentioned. But when I execute doctrine:migrate it throws and exception #42P07 "typo3_flow3_resource_resourcepointer" already exists. I have not created any tables I just created the empty database before executing the previously mentioned commands. |
13:54.20 | cubert__ | hmm not sure, maybe you can check whats in the migration script and if this makes sense |
13:55.03 | ghost1 | It seems like it is actually executing the migration scripts during the generation phase , is that correct behavior? |
13:55.47 | cubert__ | dont think so but maybe its a new feature in 1.1 |
13:57.25 | ghost1 | Hmm, seems odd |
13:59.21 | *** join/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de) |
14:00.37 | robertlemke | ghost1: the migration scripts are not run automatically. If you start with a completely empty database with a fresh FLOW3, a ./flow3 doctrine:migrate should work in any case - if not, it's a bug |
14:00.47 | *** part/#flow3 pgampe (~phil@pptp-212-201-77-224.pptp.stw-bonn.de) |
14:01.23 | ghost1 | Ok, well I have a bug here, how can I go about submitting it to you guys? |
14:05.53 | robertlemke | ghost1: you need some very thorough steps to reproduce this - I just cloned a fresh copy of FLOW3, created a new database and hit ./flow3 doctrine:migrate: |
14:05.54 | robertlemke | ++ finished in 5.09 |
14:05.54 | robertlemke | <PROTECTED> |
14:05.54 | robertlemke | <PROTECTED> |
14:06.04 | robertlemke | so, it works for me. |
14:06.27 | robertlemke | But still, if you file a bug report with PHP version, MySQL version and the exact steps you've taken, we can try to reproduce it |
14:07.32 | ghost1 | Maybe its a bug with Postgresql, I am using PGSQL instead |
14:07.53 | robertlemke | okay, that's an important bit of information ;-) |
14:08.04 | ghost1 | OK will submit the bug with detailed steps and versions of everything I am using, where is the bug tracker? |
14:08.38 | robertlemke | It's here: http://forge.typo3.org/projects/flow3-distribution-base/issues |
14:08.55 | robertlemke | you'll need to create an account at typo3.org, if you haven't done that already. And thanks for your help! |
14:11.19 | ghost1 | ok . no prob |
14:24.52 | humnus | hello guys, i have a site implemented with security tokens. if the cookie has gone old, i get a nasty exception page "#1258721059: The security context contained no tokens which could be authenticated." is there any possibility to send the user to the startpage instead? |
14:25.13 | *** join/#flow3 sewo (~sewo@e178016116.adsl.alicedsl.de) |
14:29.46 | cubert__ | you defined already an entry point? http://flow3.typo3.org/documentation/guide/partiii/security.html#authentication-entry-points |
14:45.38 | *** join/#flow3 cubert_ (~cubert@p50805002.dip.t-dialin.net) |
14:45.44 | jochen_ | Is there a inline-syntax that belongs to the ForViewHelper? |
14:48.12 | jochen_ | {f:for(each:'{meta.keywords}', as:'keyword')} - but how do i declare the output? |
14:51.53 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
14:57.20 | jochen_ | anyone? |
14:57.45 | jochen_ | Or is there a better way to display an array with strings in an <f:form.textfield ? |
14:57.48 | afoeder | jochen_ I think there is no inline alternative for this VH |
14:58.10 | jochen_ | afoeder: how can i display an array in an input-box? |
15:04.06 | afoeder | jochen_, how should that look? |
15:05.18 | jochen_ | i got an property on my model as arrayCollection. I'd like to have something like <f:form.textfield property="meta.keywords" value="keyword1, keyword2, keyword3" ..> |
15:06.07 | jochen_ | so i tried to use an inline notation for the For-VH but i couldn't figure out how to display the value |
15:07.26 | jochen_ | Is that possible with fluid or do i have to make a string in the newAction and assign it to the template separately? |
15:08.24 | jochen_ | I am converting the input-value back to an array in the initializeUpdateAction |
15:08.27 | humnus | thanks cubert__, i had no entry point in my config |
15:09.24 | afoeder | jochen_ as far as I see this you either have to create an own ViewHelper (like an "ImplodeViewHelper") or you prepare that in your controller or even getter, if that makes sense |
15:10.06 | jochen_ | Alright, thanks! |
15:10.56 | afoeder | jochen_, another alternative would be using the selectViewHelper |
15:12.25 | jochen_ | I think that won't help me. I'd like the user to be able to edit alle keywords in an input-box not in an select-option-thing |
15:38.30 | tomasito | how I create a user in the system in flow version 1.1????? |
15:38.52 | tomasito | http://pastebin.com/uAusaTJV this is my code but is not working |
15:46.10 | tomasito | Can anyone help me with this, and tell me where my error is ???? |
15:46.48 | aertmann | tomasito: maybe have a look at http://git.typo3.org/FLOW3/Packages/TYPO3.TYPO3.git?a=blob;f=Classes/Command/SetupCommandController.php;h=29511a560541e1dafc74abe574b5bd19c2791ee3;hb=HEAD |
15:47.13 | aertmann | but ignore the Typo3BackendProvider stuff |
15:48.22 | aertmann | although your code looks fine to me |
15:49.57 | *** join/#flow3 Conic7 (~conic@HSI-KBW-046-005-135-253.hsi8.kabel-badenwuerttemberg.de) |
15:51.01 | *** part/#flow3 jochen_ (~Johannes@p5DCC0927.dip0.t-ipconnect.de) |
15:51.35 | pumatertion | tomasito, do you check the db? is the account not written or does the login fails? |
15:52.41 | *** join/#flow3 visay (~visay@203.144.95.154) |
15:52.50 | tomasito | pumatertion: just that the db is empty |
15:53.17 | tomasito | it doesn't give any error just doesn't do it |
15:53.37 | aertmann | did you try persistAll? |
15:53.55 | pumatertion | i had the problem of not persiting sometimes too |
15:54.19 | pumatertion | just try give this a try: ./flow3 flow3:cache:flush --force |
15:55.10 | aertmann | and if that doesn't work try adding $this->persistenceManager->persistAll(); after the ->add($account); |
15:57.43 | pumatertion | mhh, you didnt set a party? mhh, shouldnt this throw an exception because fields are generaly not nullable? |
16:02.46 | *** join/#flow3 shoeless_ (~kevin@76.14.75.242) |
16:05.18 | *** join/#flow3 pumatertion1 (~Adium@p5099c158.dip0.t-ipconnect.de) |
16:08.28 | *** join/#flow3 chad4711 (~chadcunve@pD9E08FFD.dip0.t-ipconnect.de) |
16:20.18 | tomasito | no I didn't try the persistence but I will now |
16:20.44 | tomasito | no the party is required in the db |
16:20.48 | tomasito | can be null |
16:21.17 | tomasito | sorry, the party is not required in the db |
16:21.24 | tomasito | you can leave it null |
16:23.22 | *** join/#flow3 Chacky (~Sascha@dslb-094-217-134-116.pools.arcor-ip.net) |
16:23.28 | *** part/#flow3 Chacky (~Sascha@dslb-094-217-134-116.pools.arcor-ip.net) |
16:29.07 | tomasito | pumatertion1: it work with the $this->persistenceManager->persistAll(); |
16:29.49 | tomasito | and now the one million dollars question, why I have to do that, i doesn't suppose to do it automatically ?? |
16:31.28 | aertmann | tomasito: could be that something breaks before the __destruct is called |
16:31.35 | *** join/#flow3 bwaidelich (~Bastian@dslb-188-100-204-123.pools.arcor-ip.net) |
16:33.05 | afoeder | ok guys, CU all, have a nice evening |
16:33.20 | aertmann | u2 ;) |
16:33.44 | afoeder | bwaidelich: https://review.typo3.org/#/c/11484/ and https://review.typo3.org/#/c/11482/ ;-) |
16:33.54 | bwaidelich | afoeder: wohoo, thx! |
16:34.14 | *** part/#flow3 afoeder (~afoeder@p4FD64741.dip0.t-ipconnect.de) |
16:35.07 | aertmann | btw. bwaidelich: http://ibot.rikers.org/%23flow3/20120521.html.gz |
16:35.36 | bwaidelich | aertmann: nice one, i keep forgetting. thx |
16:37.30 | *** join/#flow3 beberlei (~twitter@koln-4d0b0dee.pool.mediaWays.net) |
16:41.32 | *** join/#flow3 Kollode (~Kollode@g224126037.adsl.alicedsl.de) |
16:42.18 | *** join/#flow3 humnus (~humnus@188-194-223-147-dynip.superkabel.de) |
16:45.11 | *** join/#flow3 Kollode1 (~Kollode@g224126037.adsl.alicedsl.de) |
16:47.01 | *** join/#flow3 boonkerz (~boonkerz@ip-109-47-246-63.web.vodafone.de) |
16:47.34 | *** part/#flow3 chad4711 (~chadcunve@pD9E08FFD.dip0.t-ipconnect.de) |
16:48.14 | *** join/#flow3 chad4711 (~chadcunve@pD9E08FFD.dip0.t-ipconnect.de) |
16:57.16 | *** join/#flow3 thasmo (~thasmo@d86-33-68-119.cust.tele2.at) |
17:01.42 | *** join/#flow3 skorpi (~skorpi@178-27-139-210-dynip.superkabel.de) |
17:03.01 | *** join/#flow3 boonkerz (~boonkerz@ip-109-47-246-63.web.vodafone.de) |
17:10.45 | *** join/#flow3 thasmo (~thasmo@d86-33-68-119.cust.tele2.at) |
17:20.46 | *** join/#flow3 aertmann (~aertmann@91.100.13.225.generic-hostname.arrownet.dk) |
17:44.04 | *** join/#flow3 elos160 (~Miranda@p57A01686.dip0.t-ipconnect.de) |
17:45.35 | *** join/#flow3 chrisDD (~chrisDD@drsd-4dbdb513.pool.mediaWays.net) |
18:05.40 | tomasito | I change from version 1.0.4 to 1.1 beta, and now when I do the persistence, it doesn't do it, I have to use $this->persistenceManager->persistAll(); all the time, or there is another way ??? |
18:07.54 | *** join/#flow3 fliesentisch_ (~steve@p54ABD859.dip0.t-ipconnect.de) |
18:08.22 | bwaidelich | tomasito can you post some sample code (at https://gist.github.com/) ? |
18:09.28 | bwaidelich | if you change an agregate root (an entity that has a corresponding repository) you need to update/add the object to the repository as before |
18:10.10 | bwaidelich | if you create/update an entity that only belongs to an agregate root, but does not have a repository itself, you need to update the root object |
18:11.43 | tomasito | http://pastebin.com/3893uhRa |
18:12.20 | bwaidelich | no, that shouldn't be required.. |
18:12.25 | tomasito | the objects I'm using have repository |
18:12.27 | tomasito | ok |
18:12.49 | tomasito | but if don't do it i won't saved to the database |
18:13.02 | tomasito | then where is the error |
18:14.23 | bwaidelich | this hasn't changed - only the *time* when automatic persistence happens has changed with http://forge.typo3.org/issues/28136 |
18:14.45 | bwaidelich | no, hang on |
18:15.24 | bwaidelich | https://review.typo3.org/#/c/5813/ |
18:16.01 | bwaidelich | do you have the latest version? cause https://review.typo3.org/#/c/10801/ might be related!? |
18:16.43 | bwaidelich | i assume you flushed the cache!? |
18:16.57 | tomasito | yes |
18:18.10 | *** join/#flow3 nd__ (~nd@mnhm-5f7500ea.pool.mediaWays.net) |
18:19.03 | robertlemke | tomasito: just one idea: are you extending the ActionController or some other controller? |
18:19.27 | tomasito | from ActionController |
18:19.57 | bwaidelich | weird, and nothing in the logs? |
18:21.55 | robertlemke | Allright. A developer I know had the same problem. In his case the reason was that, because of the new frozen package feature, the new signal slot rule was not active. You can either unfreeze all packages (./flow3 package:unfreeze all) or refreeze them (./flow3 package:refreeze all). Did you try that or some cache:flush —force ? |
18:22.20 | pumatertion1 | i know this. my solution was to clear the cache with force. also delete package states file because of froce |
18:22.32 | tomasito | http://pastebin.com/xsK6ePdH this is my log |
18:23.04 | tomasito | no with force |
18:23.05 | bwaidelich | --force is the new "clear all caches button" ;) |
18:23.06 | pumatertion1 | froze |
18:24.16 | tomasito | now is workingg |
18:24.31 | tomasito | It seem with the force it work |
18:24.57 | bwaidelich | doesn't "./flow3 core:migrate" flush the caches? |
18:25.04 | pumatertion1 | so whats the latency time for gettings answers in forge? :P |
18:25.06 | bwaidelich | it should IMO |
18:25.45 | tomasito | thank's guys |
18:27.18 | pumatertion1 | seems to be the same as in the mailing list ;) |
18:27.21 | bwaidelich | you're welcome |
18:27.37 | bwaidelich | pumatertion1 which one? |
18:27.53 | robertlemke | tomasito: then it's certainly due to the frozen packages |
18:27.56 | pumatertion1 | general? |
18:27.59 | robertlemke | bwaidelich: no, it doesn't flush the caches |
18:28.20 | bwaidelich | robertlemke: but it should,shouldn't it? should i create an issue or shouldnt i |
18:28.25 | tomasito | well I made and flow3:cache:flush --force and that work for me |
18:28.38 | robertlemke | by the way: one way to debug tomasito's issue would have been to add this to the FLOW3 Package.php file: |
18:28.38 | robertlemke | $dispatcher->connect('TYPO3\FLOW3\Mvc\Dispatcher', 'afterControllerInvocation', function() { echo 'persistAll called.'; }); |
18:29.32 | robertlemke | bwaidelich: no, I think it doesn't necessarily have to flush caches. In fact I could imagine some scenario where you'd just want to create the db structure (in production context) and not flush caches all the time |
18:29.43 | pumatertion1 | as of 1.1 the session get also cleare without forcing. whats the reason? |
18:30.50 | robertlemke | pumatertion1: the reason is that if you change the code, it can easily happen that your session becomes corrupt (because some entities changed etc.). Previously there was no easy way to remove a session and therefore we added it to the flush:cache command |
18:31.11 | pumatertion1 | okay, thanks |
18:32.18 | pumatertion1 | i still have the need to get some answers about the behaviour of converters |
18:35.09 | pumatertion1 | i expect a converter in the following behaviour. f.e. lets take an integer converter and we have a form wich updates a model with an integer property wich is set to be nullable in the db. at this point the converter returns a 0 also if an empty string is given. i would expect a null. and after this the validators should match. |
18:36.15 | pumatertion1 | i never would except validation erros in a converter. i nearly understand a converter as a "TryToConvert" |
18:39.11 | pumatertion1 | so maybe i can write my own converter wich checks by canConvert and setting a higher priority to the new one. but now i will get erros of other thirdparty packages wich does not allow null on integer properties. |
18:40.46 | pumatertion1 | how do you handle this? manipulating the request arguments in initialize and set the argument to something the converter does not match? maybe there to null if ''? |
18:44.50 | *** join/#flow3 steve__ (~steve@p54ABC077.dip0.t-ipconnect.de) |
18:45.38 | pumatertion1 | robertlemke: can you give me a comment to this? |
18:56.51 | tomasito | robertlemke: can you help me with this problem |
18:56.52 | tomasito | http://pastebin.com/egrxBqHs |
18:57.16 | tomasito | this is something that I have had for a long time |
18:57.43 | tomasito | I want to create an image from the instructor controller |
18:57.45 | tomasito | ? |
18:58.29 | tomasito | but it always give the error #1297759968: Exception while property mapping for target type "MAS\Pro\Domain\Model\Instructor", at property path "image.originalResource": Object with identity "picture.jpg" |
19:02.03 | bwaidelich | tomasito: is that the complete exception message? |
19:02.21 | bwaidelich | Object with identity "picture.jpg"... nothing more? |
19:03.04 | bwaidelich | pumatertion1: sounds reasonable, but type conversion and validation can't be separated completely.. |
19:05.16 | *** join/#flow3 mneuhaus (~textual@ip-78-94-232-113.unitymediagroup.de) |
19:05.19 | mneuhaus | hey |
19:05.23 | pumatertion1 | why not? isnts validation just only a part of @FLOW3\Validate(type="NotEmpty")? |
19:05.27 | pumatertion1 | hi mneuhaus |
19:05.37 | mneuhaus | hi :) |
19:05.40 | pumatertion1 | at the property itself |
19:05.49 | tomasito | yes |
19:06.08 | tomasito | the picture.jpg is the name of the picture that I upload |
19:06.17 | mneuhaus | i'm trying to attach a function to the DebugExceptionHandler, but the Pointcut doesn't seem to work |
19:06.53 | pumatertion1 | if the result of the converter is null and property is notated with NotNull this should be work as expected i think |
19:07.00 | tomasito | bwaidelich: sorry at the end it say not found |
19:07.27 | mneuhaus | @FLOW3\After("method(TYPO3\FLOW3\Error\DebugExceptionHandler->echoExceptionWeb(*))") |
19:08.32 | pumatertion1 | tomasito: whats the name of your upload field? just image or image[resource]? |
19:09.10 | tomasito | pumatertion1: <f:form.upload property="image.originalResource" /> |
19:09.53 | tomasito | pumatertion1: http://pastebin.com/egrxBqHs |
19:09.55 | pumatertion1 | and this is the property of type …\Resource? |
19:10.04 | tomasito | yes |
19:10.26 | tomasito | the type is * @var \TYPO3\FLOW3\Resource\Resource |
19:10.46 | pumatertion1 | give resource a try instead of imageResource |
19:11.32 | pumatertion1 | erm, resource instead of originalResource |
19:12.23 | pumatertion1 | oh sorry, own image model. thought its the media package image |
19:12.26 | bwaidelich | pumeatertion1: you're right, this seems to be buggy. sebastian would know more about this and i'll point him to your questions when he's back |
19:12.26 | pumatertion1 | my fault |
19:12.31 | tomasito | pumatertion1: you say change the name of the variable from originalresource to resource ? |
19:15.26 | pumatertion1 | bwaidelich: aaaah, this is enough answer after 3 days of spaming forge, mailing list and this chat ;) |
19:15.34 | pumatertion1 | thanks a lot for listening :) |
19:18.22 | pumatertion1 | so at last i can say in less words: a converter tries to convert, a validation validates the converted. an i hope there will be a solution to seperate them. |
19:18.41 | pumatertion1 | i wish a fantastic night to everybody :) |
19:19.47 | bwaidelich | pumatertion1: i only slightly remember that i posed a similar question once and sebastian convinced me that it can't be separated completely |
19:19.49 | bwaidelich | we'll see |
19:19.53 | bwaidelich | have a nice evening too |
19:20.07 | tomasito | have a good night |
19:21.06 | pumatertion1 | @tomasito: did you take a look at the media package? there is an image model and also its converter |
19:21.18 | *** part/#flow3 bwaidelich (~Bastian@dslb-188-100-204-123.pools.arcor-ip.net) |
19:21.47 | tomasito | I can create and image if I use the controller of the image, the problem |
19:22.02 | tomasito | is when I try to create the image from the instructor controller |
19:29.40 | *** join/#flow3 sewo (~sewo@e178016116.adsl.alicedsl.de) |
19:31.24 | tomasito | http://pastebin.com/egrxBqHs |
19:38.58 | *** join/#flow3 foertel (~foertel@tmo-107-168.customers.d1-online.com) |
19:41.39 | *** join/#flow3 boonkerz (~boonkerz@p5B28BA9E.dip.t-dialin.net) |
19:45.46 | *** join/#flow3 aertmann (~aertmann@91.100.13.225.generic-hostname.arrownet.dk) |
19:49.48 | *** join/#flow3 boonkerz_ (~boonkerz@p5B28BA9E.dip.t-dialin.net) |
20:15.49 | *** join/#flow3 boonkerz_ (~boonkerz@p5B28BA9E.dip.t-dialin.net) |
20:42.29 | *** join/#flow3 sewo1 (~sewo@e178000105.adsl.alicedsl.de) |
21:04.01 | *** part/#flow3 tomasito (~tomasito@38.104.90.194) |
21:04.10 | *** join/#flow3 tomasito (~tomasito@38.104.90.194) |
21:24.18 | *** join/#flow3 andreaswolf (~aw@p4FDCD339.dip.t-dialin.net) |
21:26.39 | *** join/#flow3 jochen_ (~Johannes@p5DCC0927.dip0.t-ipconnect.de) |
21:27.10 | jochen_ | Is it possible to make something in a route parts uriPattern optional? |
21:31.05 | aertmann | wrap it in () |
21:31.20 | aertmann | sorry {} |
21:31.32 | aertmann | like required/{optional} |
21:33.23 | jochen_ | When doing this in routeParts i get the () in the url >.> |
21:34.03 | jochen_ | it's working in uriPattern but not routeParts -> part name ->uriPattern |
21:37.25 | aertmann | ah yeah sorry, it goes in the uriPattern |
21:38.44 | aertmann | but the route part is optional if make like optional in the uripattern.. |
21:38.49 | jochen_ | And another question that belongs to routing: I'm using model-propertys for routing |
21:39.11 | jochen_ | Documentation says "Mappings from an object to it’s URI representation are stored in the ObjectPathMappingRepository in order to make sure, that existing links work even after a property has changed." |
21:39.37 | jochen_ | Is ist possible to refresh it or something? I'd like to have the new property in the url when updating the property |
21:39.38 | aertmann | that made absolutely no sense.. the route part is optional if the part is optional in the uri pattern * |
21:41.30 | jochen_ | and what about updating the propertys? |
21:42.29 | aertmann | not sure about the properties, but as I read it, it sounds like if matches the updated property and the old one, since the old one is stored in the repository |
21:42.44 | aertmann | but can't say if that's the case though :S |
21:43.51 | jochen_ | it looks like the new is working, but the view helper directs to the old one >.> |
21:47.32 | aertmann | yeah seems like it doesn't check if the value actually is the same when converting to the url |
21:48.03 | aertmann | IdentityRoutePart->resolveValue (164) |
21:49.13 | aertmann | it would be possible to delete the entry in the ObjectPathMappingRepository, when you change the property |
21:49.34 | *** join/#flow3 jochen (~Johannes@p5DCC0927.dip0.t-ipconnect.de) |
21:49.49 | aertmann | did you miss something? |
21:50.04 | aertmann | wrote 3 lines since you last typed something.. |
21:50.05 | jochen | Last was "it would be possible to delete the entr..." |
21:50.18 | aertmann | then you didn't :) |
21:50.49 | jochen | Ok, so i could inject the OBjectPahtMappingRepository for updateAction? |
21:51.19 | aertmann | sure |
21:51.39 | aertmann | either inject it, or just use the object manger to fetch it |
21:52.00 | aertmann | manager * |
21:53.51 | aertmann | and remember to persist the change if you're generating the link before the process ends |
21:54.44 | jochen | But is this the way to go? Shouldn't be the new and the old route there automatically? |
21:55.06 | jochen | well at least show the up-to-date route when using the link-ViewHelper |
21:55.28 | aertmann | sure you could argue for that, but atm. it's not implemented like that.. looking at the code it seems for performance reasons |
21:55.52 | aertmann | it would be good to open an issue on forge for it |
21:56.08 | aertmann | there might even be one already |
21:56.11 | jochen | Sry i'm no familiar with this stuff |
21:56.27 | aertmann | http://forge.typo3.org/projects/package-typo3-flow3 |
21:56.49 | aertmann | if you sign in (using an account on typo3.org) you can create a new issue |
21:56.51 | jochen | I think the easiest for me would be to build the url manually |
21:59.31 | jochen | before i report an issue, do you have the same problems? |
21:59.44 | jochen | or is it maybe a miss configuration |
22:01.24 | aertmann | haven't used it myself so can't say.. but looking at the code seems it's a missing feature |
22:02.39 | jochen | Ok, is this more a bug or a feature when reporting an issue? |
22:03.44 | aertmann | depends on how you look on it.. it's a bug if you expect it do to it automatically, and it's a feature if you like to have it done automatically instead having to do it manually |
22:04.32 | jochen | I'll just use feature and see what will happen :) |
22:05.19 | aertmann | Bastian might be into working on it, since it seems he's using it himself.. http://forge.typo3.org/issues/37403 |
22:05.39 | aertmann | also you could ask him what he does |
22:12.30 | *** join/#flow3 linkedinyou (~linkediny@unaffiliated/linkedinyou) |
22:13.35 | jochen | Wohoo, my first entry on that bug-tracker with crappy english ;) http://forge.typo3.org/issues/37405 |
22:14.18 | jochen | i'm excited about feedback |
22:14.47 | sewo1 | congratulations |
22:31.52 | *** part/#flow3 jochen (~Johannes@p5DCC0927.dip0.t-ipconnect.de) |
23:21.41 | *** join/#flow3 thasmo (~thasmo@d86-33-68-119.cust.tele2.at) |
23:24.11 | *** join/#flow3 boonkerz_ (~boonkerz@p4FC30D17.dip.t-dialin.net) |
23:45.57 | *** join/#flow3 sewo (~sewo@e178002215.adsl.alicedsl.de) |