| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2010-01-30 | Refactory auth::too_many_failed_logins() out of | Bharat Mediratta | |
| auth::validate_too_many_failed_logins() to conceptually separate the two. | |||
| 2010-01-30 | Protect REST login controller from brute force attacks too. | Andy Staudacher | |
| And make the REST auth token less predictable by using a better source for randomness. | |||
| 2010-01-29 | Use ? or & as appropriate when appending output=html. | Bharat Mediratta | |
| 2010-01-29 | Use var_export instead of print_r for better clarity. | Bharat Mediratta | |
| 2010-01-28 | Do all the html::clean|purify calls in the views and not the controller. ↵ | Tim Almdal | |
| Also clean the subject line and email message body of the contact user email. | |||
| 2010-01-25 | Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev | Bharat Mediratta | |
| Conflicts: modules/gallery/libraries/MY_ORM.php | |||
| 2010-01-24 | Add the active notifications and rest api key to user profile page. | Tim Almdal | |
| 2010-01-23 | Update tests for recent REST changes. | Bharat Mediratta | |
| 2010-01-22 | output_type --> output | Bharat Mediratta | |
| 2010-01-22 | Reshape the rest code to be more consistent with regards to | Bharat Mediratta | |
| relationships. Now when you view a resource, it has 4 top level elements: url: the url of this resource resource: array of key value pairs describing the resource members: array of urls to members of this collection relationships: array of array of members. Relationships are a special type of collection that links two different resources together. To remove a relationship, just DELETE its url. To create a relationship, POST to its collection. Individual modules can add their own relationships to any resource via a callback mechanism. Example: Array( [url] => http://g3.com/rest/item/1 [resource] => Array ( [id] => 1 [album_cover_item_id] => 4 [captured] => [created] => 1264056417 [description] => [height] => ... ) [members] => Array( [0] => http://g3.com/rest/item/2 [1] => http://g3.com/rest/item/3 [2] => http://g3.com/rest/item/4 [3] => http://g3.com/rest/item/5 ... ) [relationships] => Array( [tags] => Array ( [0] => http://g3.com/rest/tag_item/2,1 [1] => http://g3.com/rest/tag_item/23,1 ) ) ) | |||
| 2010-01-21 | whitespace. | Bharat Mediratta | |
| 2010-01-20 | Improve robustness in resolve() against bad urls.. | Bharat Mediratta | |
| 2010-01-20 | Rewrite the tests to be simpler and more direct. | Bharat Mediratta | |
| 2010-01-20 | Move access key creation into a helper function. | Bharat Mediratta | |
| 2010-01-19 | Let the Rest_Controller functions throw a Rest_Exception since | Bharat Mediratta | |
| the Kohana framework will handle it properly. | |||
| 2010-01-19 | Move rest::send_headers back into Rest_Exception. | Bharat Mediratta | |
| 2010-01-19 | Make Rest_Exception extend Kohana_Exception so that we can let it | Bharat Mediratta | |
| bubble to the top and then in sendHeaders have it send the right response code. | |||
| 2010-01-19 | Extend Gallery_Unit_Test_Case instead of Unit_Test_Case. | Bharat Mediratta | |
| 2010-01-19 | Don't send headers if they're already sent. | Bharat Mediratta | |
| 2010-01-19 | Use $input instead of Input::instance() | Bharat Mediratta | |
| 2010-01-19 | Use an appropriate json content type | Bharat Mediratta | |
| 2010-01-19 | Change rest::url() to take a module name and a resource. The module | Bharat Mediratta | |
| does the rest. This function is symmetrical to rest::resolve. | |||
| 2010-01-19 | Have the rest calls return an array and print it out in the | Bharat Mediratta | |
| controller. This is a clearer workflow; controllers generate output, not helpers. It's also easier to test. | |||
| 2010-01-19 | Add rest::url() for convenience. | Bharat Mediratta | |
| 2010-01-17 | Catch ORM_Validation_Exception and turn it into a 400 Bad Request with | Bharat Mediratta | |
| appropriate error output. | |||
| 2010-01-10 | Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev | Bharat Mediratta | |
| 2010-01-09 | Fix for ticket #972 and more. In Kohana 2.4, ORM::delete_all ignores any where | Tim Almdal | |
| clauses and deletes all the entries in the table unless an array of id's are passed as the parameter. This fix used the Database_builder to specify any where conditions. Thanks psvo for find the first one. :-) | |||
| 2010-01-08 | Change url parsing in resolve() to ignore the query string. | Bharat Mediratta | |
| 2010-01-04 | Further progress on refining the REST server side code. | Bharat Mediratta | |
| 1) Deal in fully qualified URL resources through the rest interface. All rest methods are now passed the complete url in request->url. 2) Create rest::resolve() which lets individual resource definition code convert a full url into the appropriate matching resource. Implement gallery_rest::resolve() and tag_rest::resolve() 3) Reimplement tag_rest's get() and post() methods. They're much simpler now. 4) Implement the tags_rest helper which supports working with the entire tags collection. | |||
| 2010-01-03 | Simplify the REST API code. Here's what I did: | Bharat Mediratta | |
| 1) Simplify gallery_rest to return flat models, no children and do no validation for now. 2) Flatten the REST replies and use HTTP codes to indicate success/failure instead of additional status messages. 3) Use the message and error code support in the base Exception class, instead of brewing our own in Rest_Exception. 4) Get rid of rest::success() and rest::fail() -- we only need rest::reply() since all failures are covered by throwing an exception. 5) Get rid of /rest/access_key and just use /rest for authentication. 6) Inline and simplify rest::normalize_request since we only use it once 7) Change rest::set_active_user to succeed or throw an exception 8) Extract Rest_Exception::sendHeaders into rest::send_headers() Here's what's currently broken: 1) Data validation. There currently is none 2) Logging. That's gone too 3) image block and tag code is broken 4) Tests are broken 5) No movie support | |||
| 2010-01-02 | Remove the Rest_Exception::trigger method. | Tim Almdal | |
| 2010-01-02 | Correct file structure tests, Have the tests delete the userid they create ↵ | Tim Almdal | |
| so as not to impact other tests. | |||
| 2009-12-31 | Remove extra debug statement in rest_controller::access_key() and ↵ | Tim Almdal | |
| restructure the Rest_Tag_Helper_Test to only create items as required for test in each test. | |||
| 2009-12-31 | Add quotes to the module name | Tim Almdal | |
| 2009-12-31 | Move the set_active_user and normalize_request methods to rest.php helper | Tim Almdal | |
| 2009-12-31 | Only create the user or the target photo in the tests that require it. | Tim Almdal | |
| 2009-12-31 | Create a Rest_Exception class and use it to convey status to the client ↵ | Tim Almdal | |
| instead of calling rest::forbidden and other rest helper error messages. | |||
| 2009-12-30 | 1) Remove the rest::not_found method and replace it with "throw new ↵ | Tim Almdal | |
| Kohana_404_Exception 2) Don't use the input path to lookup the item via relative_path_cache. Instead use url::get_item_from_uri method. | |||
| 2009-12-29 | Found another where statement that required converting | Tim Almdal | |
| 2009-12-27 | Clean up validation the check for duplicate names or slugs, finish ↵ | Tim Almdal | |
| converting the rest API to Kohana 2.4 | |||
| 2009-12-23 | When normalizing the rest request don't assume that the additional arguments ↵ | Tim Almdal | |
| are acutall a path. Leave it up to the handler to determine. | |||
| 2009-12-23 | Updated the unit tests to match the current API | Tim Almdal | |
| Corrected a problem identified with the unit tests... failed if the path was empty on PUT. | |||
| 2009-12-22 | Update the api so it allows images to be uploaded. | Tim Almdal | |
| 2009-12-21 | Added validation to the edit functionality, since we can't trust any input | Tim Almdal | |
| 2009-12-18 | Change how request input is processed.First the input is no longer json ↵ | Tim Almdal | |
| encode, All the get variables are loaded, then the post variables if the request is a post, and then the path is extracted from the uri. | |||
| 2009-12-15 | Updates the the interface based on actually using it. | Tim Almdal | |
| 2009-12-09 | Implement the RESTful interface for albums/photos/movies | Tim Almdal | |
| 2009-12-09 | Use the relative url cache to look up resources instead of the relative ↵ | Tim Almdal | |
| path. This allows us to forego the extension as part of the REST url. As well, urls are consistent between normal usage and rest usage. | |||
| 2009-12-08 | Add the REST get handler for albums/photos/movies | Tim Almdal | |
| 2009-12-08 | Correct the error message when the item is not found; remove the check for ↵ | Tim Almdal | |
| no request_key (access_token) as athat is treated as public permissions | |||
