Skip to content

Conversation

@marcelklehr
Copy link
Member

@marcelklehr marcelklehr commented Sep 25, 2024

SMB#getFileInfo used to throw an icewind/smb exception, but nowadays throws \OCP\Files\ForbiddenException. This fixes downstream methods to catch the new exception.

Checklist

@marcelklehr
Copy link
Member Author

/backport to stable30

@marcelklehr
Copy link
Member Author

/backport to stable29

@marcelklehr
Copy link
Member Author

/backport to stable28

@marcelklehr marcelklehr force-pushed the fix/files_external/forbidden-exception branch from 6059c15 to 45d6411 Compare September 25, 2024 07:52
@kesselb
Copy link
Contributor

kesselb commented Sep 25, 2024

Thank you, good finding 👍

Could you please update the phpdoc for getFileInfo and add

	 * @throws \OCP\Files\ForbiddenException
	 * @throws \OCP\Files\NotFoundException

@kesselb kesselb added bug 3. to review Waiting for reviews labels Sep 25, 2024
@kesselb kesselb added this to the Nextcloud 31 milestone Sep 25, 2024
@marcelklehr marcelklehr force-pushed the fix/files_external/forbidden-exception branch from 45d6411 to cd0742c Compare September 26, 2024 07:02
SMB#getFileInfo used to throw an icewind/smb exception, but nowadays throws \OCP\Files\ForbiddenException. This fixes downstream methods to catch the new exception.

Signed-off-by: Marcel Klehr <[email protected]>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants