summaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2010-06-11Fix for ticket #1118. The item validation was flagging duplicate slugs as ↵Tim Almdal
errors. There was already code in the item save to insure that any duplicates were made unique, so this patch removes the validation as unnecessary.
2010-06-11Remove the duplicate query when searching as pointed out by joe7 on ticket #844Tim Almdal
2010-06-11Merge branch 'master' of git@github.com:gallery/gallery3Tim Almdal
2010-06-11Fix for ticket #1039. The problem was, as Bryan76 pointed out, with passing ↵Tim Almdal
the full url in the continue parameter. In the logout controller, we tried to get the item from the url so we could check the permission of the item to insure that the guest user had access. But url::get_item_from_url expects a relative url.
2010-06-11Send back the REST API version as a header. It's on every request,Bharat Mediratta
which sucks, but it's totally unobtrusive because it's a header so that's ok. Decided that the current version is "3.0" although it will surely change before the final 3.0 release. Fixes ticket #1148
2010-06-11Fix for ticket #797Tim Almdal
When load a file is uploaded using a dialog box and the jquery plugin ajaxForm, the ajaxForm plugin uses an hidden iFrame element to send the multi-part form and this is where the response goes. The ajaxForm plugin then retrieves the document body and parses the result as a json string. If the file uploads properly everything is fine, but if it fails Gallery3 return the input form with the the error fields highlighted as part of the json response. As this response is returned to a hidden iframe, the browser attempts to manipulate it and all hell breaks loose. We lose the trailing brace, we start getting escaping of form tags. When the ajaxForm plugin retrieves the iFrame body its no longer a valid json frame and the parsing fails and the user sees no indication that it failed.
2010-06-11Actually execute the database query that updates the album view count. Fixes ↵Tim Almdal
ticket #1092. Thanks to shinta for pointing the way.
2010-06-11Actually execute the database query that updates the album view count. Fixes ↵Tim Almdal
ticket #1092. Thanks to shinta for pointing the way.
2010-06-10Change the pattern used to convert the file name to a title. Fixes ticket#1061Tim Almdal
2010-06-10Correct a problem with the sort order and sort direction fields being ignored.Tim Almdal
2010-06-10Review the code for xss exposures and provide the functionality to update ↵Tim Almdal
the organize dialog bar when the selected album changes.
2010-06-10Provide better handling and a progress dialog when loading or updating files.Tim Almdal
2010-06-10Tweak the error response for rest requests to make it easier for the client ↵Tim Almdal
to extract error information.
2010-06-10Merge branch 'master' into talmdal_devTim Almdal
2010-06-09New version of EXIF gets ISO and Metering Mode right. Yay!Bharat Mediratta
2010-06-09Update golden fileBharat Mediratta
2010-06-09In GalleryCodeFilterIterator::accept(), ignore . and .., and stop caring ↵Bharat Mediratta
about .svn
2010-06-09Fix get_ancestor_test() since the parameter was renamed to ancestors_for.Bharat Mediratta
2010-06-09Revert the "preserve_ids" global query parameter. We decided that it was aBharat Mediratta
bad idea. This reverts commit 6425d41eddd44091b2d83ba3c3734cc6990ca581.
2010-06-08Add a "can_edit" field to the Item_Model's REST output. It'sBharat Mediratta
applicable to the current user.
2010-06-08Don't use the standard error formatting for exceptions that have occurred as ↵Tim Almdal
part of a REST request. Format the exception as a json encoded text string so the client can extract the fault information if they so choose.
2010-06-08The status message for an HTTP 400 status should always be 'Bad Request', if ↵Tim Almdal
I'm reading the specification right.
2010-06-07Merge branch 'master' of github.com:gallery/gallery3Bharat Mediratta
2010-06-07Add a "preserve_ids" global query parameter for REST requests thatBharat Mediratta
indicates that we shouldn't opportunistically convert ids into REST urls.
2010-06-07Add a "convert_ids" parameter to Item_Model::as_restful_array(), whichBharat Mediratta
we can turn on with a query parameter.
2010-06-07Improve a comment.Bharat Mediratta
2010-06-07Merge branch 'master' into talmdal_devTim Almdal
2010-06-07If the identity provider changes then delete all the rest user_access_keys, ↵Tim Almdal
as they are no longer valid. (i.e. all the related users have been deleted.)
2010-06-07Update the rest client to use ancestors_for instead of ancestor_for.Tim Almdal
2010-06-07Merge branch 'master' into talmdal_devTim Almdal
2010-06-06Don't show the rotate links if the active user can't edit the photo. Fixes ↵Bharat Mediratta
ticket #1157. Thanks to psvo.
2010-06-06Try to adjust for situations where /proc/loadavg is_readable() butBharat Mediratta
generates an error if we call file() on it. Fixes ticket #1149.
2010-06-06Updated to ExiferBharat Mediratta
2010-06-06Merge branch 'master' into talmdal_devTim Almdal
2010-06-06Fix an unused variable caused by converting straight query paramsBharat Mediratta
to $entity based params.
2010-06-06Change "ancestor_for" to "ancestors_for" for consistency.Bharat Mediratta
2010-06-05item::random_query() doesn't need to take a "where" clause becauseBharat Mediratta
it's returning a query, so the caller can add the where clause himself. This makes for a cleaner API.
2010-06-05Create a UI under Admin > Settings > Comments where you can limitBharat Mediratta
comments only to registered users. It's simplistic, but is better than adding a permission since generally this setting will be used Gallery-wide. Fixes ticket #1002
2010-06-05Undo the change added in e4eedbce2298535540cb651d75ba6f1bf42cf02bBharat Mediratta
which deactivates modules on upgrade. No idea why we did that, but it breaks upgrading because it deactivates any module that's been upgraded.
2010-06-05Fix a comment typo.Bharat Mediratta
2010-06-05Merge branch 'master' of github.com:gallery/gallery3Bharat Mediratta
2010-06-05Add an advanced setting to allow developers to allow guest access toBharat Mediratta
REST entities.
2010-06-04Correct XSS Security Test golden file for recent changes. Update the ↵Tim Almdal
controller_auth data file for the rename of admin_comments to admin_manage_comments.
2010-06-04Change the name of the private format_restful_item to _format_restful_item ↵Tim Almdal
so that the File_Structure_Test will pass.
2010-06-04Save the item before updating the order of the children. Also always ↵Tim Almdal
increment the weight count (even if it is equal to the weight of the current child)
2010-06-04Allow the use of the type query parameter to filter the results of a ↵Tim Almdal
rest/gallery/items?urls=... request. This allows the client to pass the entire list of member urls and have the rest server filter the results based on the specified types. (cherry picked from commit 3fe10b15cf9359b66452c24965df575203e8af8e)
2010-06-04Remove the item id from the rest/gallery/items url as that was inconsistent. ↵Tim Almdal
Add the query parameter ancestors_for=<url> to provide a restful way to retrieve the ancestors of an item. (cherry picked from commit e9c8a8ae532e785ab95e6b43864c93b485785d6c) Conflicts: modules/gallery/helpers/items_rest.php
2010-05-28Change the rearrange processing to use the ProcessItemQueue when moving ↵Tim Almdal
children, so a progress dialog is displayed
2010-05-28If the file is empty (i.e. the upload failed, then throw a 'bad request' ↵Tim Almdal
exception before trying to create the item.
2010-05-28Add a progress dialog box when deleting, uploading or updating items.Tim Almdal