#silverstripe IRC Log

IRC log for 23 November 2013

All timestamps are in UTC.

1: [00:25:59] * Liquide quit ()
2: [00:38:09] * simon_w quit (Quit: This computer has gone to sleep)
3: [00:39:50] * DesignerX has joined #silverstripe
4: [00:43:34] * AlphaCactus quit (Quit: kthxbai)
5: [00:57:53] <guzzlefry> Is it possible to force SSL connections?
6: [00:58:27] <guzzlefry> particularly for javascript and css requirements.
7: [01:12:57] <irogue23> guzzlefry: don't think you can do it just for requirements, but you can do it for the site!
8: [01:13:22] <irogue23> requirements system will just use whatever protocol the site itself is being access with
9: [01:32:56] * Colin[pi] has joined #silverstripe
10: [01:47:38] * DigNZ has joined #silverstripe
11: [01:48:05] * DigNZ quit (Client Quit)
12: [01:57:18] <guzzlefry> irogue23: Can do I it for a specific controller action?
13: [02:04:05] <Zauberfisch23> guzzlefry: "can do I it"? oO
14: [02:04:52] <guzzlefry> 0.o
15: [02:05:00] <guzzlefry> pretty sure I'm dyslexic :P
16: [02:05:14] <Zauberfisch23> :D
17: [02:05:29] <guzzlefry> Can I force SSL on a specific controller action?
18: [02:05:38] <Zauberfisch23> hmmm
19: [02:05:59] <Zauberfisch23> static route?
20: [02:06:10] <Zauberfisch23> then you can certainly do a rewrite in htaccess
21: [02:06:31] <guzzlefry> Maybe I should explain the situation.
22: [02:08:22] <guzzlefry> So, there's an iframe on another site that points to a Silverstripe page. This other site uses https, and currently Firefox is blocking the iframe due to "mixed active content".
23: [02:09:23] <guzzlefry> So I managed to get rid of that blocking by just changing the iframe's URL from http to https, but now the problem is that the requirements pulled in on that SilverStripe page are non-https, and getting blocked. :P
24: [02:10:48] <guzzlefry> I could just force SSL for the entire silverstripe install if not for an API that depends on it being regular http.
25: [02:12:56] <Zauberfisch23> and Requierements does not use https?
26: [02:13:39] <guzzlefry> nope
27: [02:14:17] <guzzlefry> Although, maybe I can handle those with some .htaccess rules?
28: [02:16:37] <Zauberfisch23> no, not really, with htaccess you could do a redirect
29: [02:16:51] <Zauberfisch23> but for that redirect to happen a plain http request happens first
30: [02:18:02] <guzzlefry> okay
31: [02:18:10] <guzzlefry> So, I might be better off messing with that API call.
32: [02:18:23] <Zauberfisch23> guzzlefry: hold on
33: [02:19:02] <Zauberfisch23> it uses Director::baseURL() to require the assets
34: [02:19:21] <Zauberfisch23> I believe that this is just / or ''
35: [02:19:30] <Zauberfisch23> so it should be https if the website is visited as https
36: [02:19:41] <Zauberfisch23> could it be that you have set the baseURL by hand?
37: [02:19:53] <Zauberfisch23> or (Direcotr: alternate_base_url)
38: [02:20:03] <Zauberfisch23> or BASE_SCRIPT_URL
39: [02:20:27] <guzzlefry> possibly, this isn't my code. Searching.
40: [02:20:58] <Zauberfisch23> but as a hack work around, you could go into that controller, chef if the URL is https, and if it is, then you could do: Config::inst()->update('Director', 'alternate_base_url', 'https://foo.bar/'); or something
41: [02:21:08] <Zauberfisch23> (in your controller init() for example)
42: [02:50:01] <guzzlefry> ah okay, a hack will work, thank you :)
43: [03:08:26] <guzzlefry> hrm, there's no >= search filter modifier?
44: [03:08:56] <Zauberfisch23> how about LessThan:Not ?
45: [03:09:21] * guzzlefry feels dumb.
46: [03:09:23] <guzzlefry> thanks
47: [03:09:59] <Zauberfisch23> well, I agree, its odd that there is no >= filter
48: [03:56:01] * Colin[pi] quit (Ping timeout: 252 seconds)
49: [04:13:32] <irogue23> guzzlefry: you can do it by URL
50: [04:13:48] <irogue23> Director::forceSSL(array('/blah', '/another'));
51: [04:13:49] <irogue23> iirc
52: [04:14:08] <irogue23> i always do it for /Security
53: [04:14:34] <guzzlefry> Is it basically doing SSL for /Security/* ?
54: [04:15:16] <guzzlefry> Also, where would that be written? _config.php I'd guess?
55: [04:15:40] <irogue23> yep
56: [04:16:04] <guzzlefry> awesome, thanks
57: [04:16:14] <irogue23> Director::forceSSL(array('/^admin/', '/^Security/', '/^chip/'));
58: [04:16:15] <irogue23> that's mine
59: [04:16:18] <irogue23> is regexes
60: [04:16:37] <guzzlefry> err, confused now
61: [04:16:59] <irogue23> throw the ^ in there :P
62: [04:17:44] <irogue23> chip/ is my logged-in section, so i'm forcing SSL on that, the login page, and the CMS
63: [04:18:14] <guzzlefry> so for example.com/player/preview/video, I'd just need Director::forceSSL(array("/^player/)); ?
64: [04:18:41] <guzzlefry> and the end quote I forgot :P
65: [04:25:11] <irogue23> yep
66: [04:25:21] <guzzlefry> cool, thanks again
67: [04:30:33] * cloph_away has joined #silverstripe
68: [04:31:15] * cloph quit (Read error: Operation timed out)
69: [06:55:53] * C10ne quit (Ping timeout: 250 seconds)
70: [07:17:12] * SightUnseen has joined #silverstripe
71: [07:22:40] * SightUnseen has left #silverstripe
72: [08:07:30] * spronk2 has joined #silverstripe
73: [08:13:32] * SightUnseen has joined #silverstripe
74: [08:13:59] * SightUnseen has left #silverstripe
75: [09:00:12] * joelpittet quit ()
76: [09:05:52] * zfmf has joined #silverstripe
77: [09:13:52] * zippy__ has joined #silverstripe
78: [09:24:59] * spronk2 quit (Quit: spronk2)
79: [09:26:10] * spronk2 has joined #silverstripe
80: [10:17:47] <Marvanni2> i have used composer to install modules in a project. That project is pushed to another private repo. Now I have made a change in one of the modules. how can I tell git to commit and push to the module's github repo instead of the private repo?
81: [10:20:25] <Zauberfisch23> Marvanni2: git should automaticly detect the repo it is in
82: [10:20:27] <Zauberfisch23> so if you have:
83: [10:20:28] <Zauberfisch23> project
84: [10:20:33] <Zauberfisch23> - subrepo
85: [10:20:49] <Zauberfisch23> then if you are in project it should access the git stuff from project/.git
86: [10:21:04] <Zauberfisch23> and when you are in subrepo then it should use project/subrepo/.git
87: [10:21:20] <Zauberfisch23> make sure that subrepo is actually a git repo
88: [10:21:39] <Zauberfisch23> (if you use composer with --prefer-dist, then the modules are downloaded as zip, and therefore not git repos)
89: [10:23:36] <Marvanni2> hm I think im having another problem... its moaning about : github no supported authentication methods available server sent publickey
90: [10:23:53] <Zauberfisch23> cd subrepo
91: [10:24:04] <Zauberfisch23> git remote set-url origin https://link
92: [10:33:38] <Marvanni2> and the link should end with .git right?
93: [10:34:10] <Marvanni2> i must have f upped something with my public key...
94: [10:35:51] <Marvanni2> well, thats for later. thanks anyway
95: [10:36:24] <Marvanni2> btw, what do think of this
96: [10:36:24] <Marvanni2> https://github.com/axyr/silverstripe-modulefolder
97: [10:46:53] * kerosene has joined #silverstripe
98: [10:54:37] * spronk2 quit (Quit: spronk2)
99: [10:55:35] * Colin[pi] has joined #silverstripe
100: [10:56:11] * Shrike_Finland quit (Quit: Leaving.)
101: [10:59:31] * Shrike_Finland has joined #silverstripe
102: [11:04:15] * violetina has joined #silverstripe
103: [11:46:24] * spronk2 has joined #silverstripe
104: [11:48:59] * zippy__ quit (Quit: zippy__)
105: [12:53:36] * spronk2 quit (Quit: spronk2)
106: [14:33:07] <zfmf> is something like this possible AttributeGroups::get()->filter(array('ID' => Convert::raw2sql($id),'Attribute.deleted' => 0)) or should i use joins??
107: [14:38:19] * tankr1 has joined #silverstripe
108: [14:40:25] * tankr quit (Ping timeout: 272 seconds)
109: [14:52:30] <zfmf> i found that, think it ok now : http://www.silverstripe.org/data-model-questions/show/25153#post324556
110: [15:39:22] * ARNHOE has joined #silverstripe
111: [15:42:13] * ARNHOE quit (Remote host closed the connection)
112: [15:43:07] * DesignerX quit (Ping timeout: 272 seconds)
113: [15:49:49] * Shrike_Finland quit (Read error: No route to host)
114: [15:49:54] * Shrike_Finland1 has joined #silverstripe
115: [16:41:07] * Liquide has joined #silverstripe
116: [17:47:37] * kerosene quit (Quit: Lost terminal)
117: [18:06:20] * Shrike_Finland1 quit (Quit: Leaving.)
118: [18:49:20] * simon_w has joined #silverstripe
119: [20:13:04] * kerosene has joined #silverstripe
120: [20:24:06] * zfmf has left #silverstripe
121: [20:32:32] * Shrike_Finland has joined #silverstripe
122: [21:33:07] * kerosene quit (Quit: church)
123: [21:34:37] * Motoservo has joined #silverstripe
124: [22:08:58] * howardgrigg has joined #silverstripe
125: [23:07:25] * mobiusnz has joined #silverstripe
126: [23:31:13] * howardgrigg quit (Remote host closed the connection)
127: [23:53:34] * howardgrigg has joined #silverstripe

These logs were automatically created by ss-log on irc.freenode.net.