Skip to content

Conversation

@artonge
Copy link
Collaborator

@artonge artonge commented Sep 20, 2022

Fix:

[index] Error: OC\DB\Exceptions\DbalException: An exception occurred while executing a query: SQLSTATE[42702]: Ambiguous column: 7 ERROR:  column reference "album_id" is ambiguous
LINE 1: ...borator_type" = $2) AND ("file_id" = $3) GROUP BY "album_id"
                                                             ^ at <<closure>>

0. /var/www/tech-preview.nextcloud.com/lib/private/DB/QueryBuilder/QueryBuilder.php line 296
   OC\DB\Exceptions\DbalException::wrap()
1. /var/www/tech-preview.nextcloud.com/apps/photos/lib/Album/AlbumMapper.php line 414
   OC\DB\QueryBuilder\QueryBuilder->executeQuery()
2. /var/www/tech-preview.nextcloud.com/apps/photos/lib/Controller/PreviewController.php line 91
   OCA\Photos\Album\AlbumMapper->getAlbumForCollaboratorIdAndFileId()
3. /var/www/tech-preview.nextcloud.com/lib/private/AppFramework/Http/Dispatcher.php line 225
   OCA\Photos\Controller\PreviewController->index()
4. /var/www/tech-preview.nextcloud.com/lib/private/AppFramework/Http/Dispatcher.php line 133
   OC\AppFramework\Http\Dispatcher->executeController()
5. /var/www/tech-preview.nextcloud.com/lib/private/AppFramework/App.php line 172
   OC\AppFramework\Http\Dispatcher->dispatch()
6. /var/www/tech-preview.nextcloud.com/lib/private/Route/Router.php line 298
   OC\AppFramework\App::main()
7. /var/www/tech-preview.nextcloud.com/lib/base.php line 1047
   OC\Route\Router->match()
8. /var/www/tech-preview.nextcloud.com/index.php line 36
   OC::handleRequest()

GET /apps/photos/api/v1/preview/474?x=512&y=512
from 80.138.111.237 by christine at 2022-09-20T08:11:35+00:00

Signed-off-by: Louis Chemineau <[email protected]>
@artonge artonge added bug Something isn't working 3. to review Waiting for reviews labels Sep 20, 2022
@artonge artonge added this to the Nextcloud 25 milestone Sep 20, 2022
@artonge artonge requested a review from skjnldsv September 20, 2022 08:47
@artonge artonge self-assigned this Sep 20, 2022
@artonge artonge merged commit d43cc98 into master Sep 20, 2022
@artonge artonge deleted the fix/disambiguate_album_id branch September 20, 2022 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants