[gallery/gallery3] d7eee8: Add Response::factory() override to add a default ...

GitHub <noreply-9UaJU3cA/F/[email protected]> Tue, 04 Jun 2013 05:35:16 -0700
Newsgroups gmane.comp.web.gallery.cvs
Message-ID <51addf04b02d0_57468e5ddc163478@hookshot-fe3-pe1-prd.aws.github.net.mail>
  Branch: refs/heads/kohana_3
  Home:   https://github.com/gallery/gallery3
  Commit: d7eee8646ee1bc140ba3e0fdfd9b5331eee09f96
      https://github.com/gallery/gallery3/commit/d7eee8646ee1bc140ba3e0fdfd9b5331eee09f96
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/gallery/classes/Gallery/Controller.php
    M modules/gallery/classes/Gallery/Response.php

  Log Message:
  -----------
  Add Response::factory() override to add a default config to every Response.
This is used to ensure that even error responses have the headers we want.
Also, move the X-Frame-Options setting here from Controller::execute().


  Commit: 058b88ebd729b3ded8278b60651a4d1579458ad0
      https://github.com/gallery/gallery3/commit/058b88ebd729b3ded8278b60651a4d1579458ad0
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/rest/classes/Rest/Controller/Rest.php
    M modules/rest/classes/Rest/Rest.php
    M modules/rest/init.php

  Log Message:
  -----------
  Add Rest::init(), revise rest/init.php and Controller_Rest::after() to match.


  Commit: 0169e2f4099bb15bca294039e4090dd86fb3c6d7
      https://github.com/gallery/gallery3/commit/0169e2f4099bb15bca294039e4090dd86fb3c6d7
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    A modules/rest/classes/Controller/Rest/AccessKey.php
    R modules/rest/classes/Controller/Rest/Login.php
    A modules/rest/classes/Rest/Controller/Rest/AccessKey.php
    R modules/rest/classes/Rest/Controller/Rest/Login.php

  Log Message:
  -----------
  Rename Controller_Rest_Login --> Controller_Rest_AccessKey.
This is more inline with giving it a resource name, not an action name.

--HG--
rename : modules/rest/classes/Controller/Rest/Login.php => modules/rest/classes/Controller/Rest/AccessKey.php
rename : modules/rest/classes/Rest/Controller/Rest/Login.php => modules/rest/classes/Rest/Controller/Rest/AccessKey.php


  Commit: 8866b1f3d8b5484c5296e189954cb5a6de229755
      https://github.com/gallery/gallery3/commit/8866b1f3d8b5484c5296e189954cb5a6de229755
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/rest/classes/Controller/Rest/AccessKey.php
    M modules/rest/classes/Rest/Controller/Rest/AccessKey.php
    M modules/rest/init.php

  Log Message:
  -----------
  Fix class declarations and init following rename.


  Commit: 112d5639fd5c8e59f551e7566485c6829d679df2
      https://github.com/gallery/gallery3/commit/112d5639fd5c8e59f551e7566485c6829d679df2
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/rest/classes/Rest/Controller/Rest.php
    M modules/rest/classes/Rest/Rest.php

  Log Message:
  -----------
  Remove some old rest code that's already been re-implemented for K3.


  Commit: 8b2586b795ad586ad987b883f30cf7a4465ae5b1
      https://github.com/gallery/gallery3/commit/8b2586b795ad586ad987b883f30cf7a4465ae5b1
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/gallery/classes/Gallery/Controller.php

  Log Message:
  -----------
  Add Controller::auth_for_maintenance_mode() & auth_for_private_gallery().
Moving these two separate functions means we can process them differently
for REST.


  Commit: 635f27d281d11037fcca0c90fed8aa238ba50c52
      https://github.com/gallery/gallery3/commit/635f27d281d11037fcca0c90fed8aa238ba50c52
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/rest/classes/Rest/Controller/Rest.php
    M modules/rest/classes/Rest/Controller/Rest/AccessKey.php

  Log Message:
  -----------
  Revise REST login setup.
- update Controller_Rest::check_auth() to use new functions from last commit.
- add comments around Controller_Rest::check_auth().
- revise Controller_Rest_AccessKey to follow new format.


  Commit: 37218cb5fae09e0a6d44bba34e656233551ffd68
      https://github.com/gallery/gallery3/commit/37218cb5fae09e0a6d44bba34e656233551ffd68
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/rest/classes/Rest/Controller/Rest.php

  Log Message:
  -----------
  Revise Controller_Rest::before() & after() - add comments, debug.


  Commit: 1dc41e2de6135aaa20a087f84f9c8a4233391a75
      https://github.com/gallery/gallery3/commit/1dc41e2de6135aaa20a087f84f9c8a4233391a75
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/gallery/classes/Gallery/Auth.php

  Log Message:
  -----------
  Revise Auth::validate_login() to trap non-existent password fields better.
Before, if the "password" key didn't exist in $data, Validation would still
fail, but the error would be because of a non-existent offset, which isn't
the right way to report it.


  Commit: 0843e11f99c6c93db131c1141cf7e5393dbde59c
      https://github.com/gallery/gallery3/commit/0843e11f99c6c93db131c1141cf7e5393dbde59c
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/rest/classes/Rest/Controller/Rest.php
    M modules/rest/classes/Rest/Rest.php

  Log Message:
  -----------
  Handle allowed/disallowed REST methods a bit more cleanly.
- add "Allow:" HTTP header.
- fire 405 when the method is not allowed.
- fire 400 when the method is allowed but undefined for the resource.
- add @todo comment to consider checking other method override headers.


  Commit: d3185cb44fe1ed4287e5208cf3e916be676847d2
      https://github.com/gallery/gallery3/commit/d3185cb44fe1ed4287e5208cf3e916be676847d2
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/rest/classes/Rest/Controller/Rest.php

  Log Message:
  -----------
  Fix comment typo in Controller_Rest::after().


  Commit: c5e7562202de430ffb5709f3ac3c1c87ce581649
      https://github.com/gallery/gallery3/commit/c5e7562202de430ffb5709f3ac3c1c87ce581649
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/rest/classes/Rest/Rest.php

  Log Message:
  -----------
  Fix formatting in Rest.


  Commit: 950a3c72db3c37a115294772c7baccfba4027924
      https://github.com/gallery/gallery3/commit/950a3c72db3c37a115294772c7baccfba4027924
  Author: shadlaws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/rest/classes/Rest/Hook/RestEvent.php

  Log Message:
  -----------
  Revise Hook_RestEvent::user_edit_form_admin() for Formo / K3.
Also, remove unused g-form-static class (nowhere in core or contrib repos).


  Commit: d7f3d20f178a77513efa002897f2ed29803daa20
      https://github.com/gallery/gallery3/commit/d7f3d20f178a77513efa002897f2ed29803daa20
  Author: Shad Laws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]>
  Date:   2013-06-04 (Tue, 04 Jun 2013)

  Changed paths:
    M modules/gallery/classes/Gallery/Auth.php
    M modules/gallery/classes/Gallery/Controller.php
    M modules/gallery/classes/Gallery/Response.php
    A modules/rest/classes/Controller/Rest/AccessKey.php
    R modules/rest/classes/Controller/Rest/Login.php
    M modules/rest/classes/Rest/Controller/Rest.php
    A modules/rest/classes/Rest/Controller/Rest/AccessKey.php
    R modules/rest/classes/Rest/Controller/Rest/Login.php
    M modules/rest/classes/Rest/Hook/RestEvent.php
    M modules/rest/classes/Rest/Rest.php
    M modules/rest/init.php

  Log Message:
  -----------
  Merge pull request #382 from shadlaws/fixes_20130604

Fixes 20130604


Compare: https://github.com/gallery/gallery3/compare/483311d25045...d7f3d20f178a

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

__[ g a l l e r y - c h e c k i n s ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]