horde.git
16 years agospelling
Michael J. Rubinsky [Fri, 18 Sep 2009 04:38:23 +0000 (00:38 -0400)]
spelling

16 years agoRefactor a bit.
Michael J. Rubinsky [Fri, 18 Sep 2009 04:35:11 +0000 (00:35 -0400)]
Refactor a bit.

Move Kronolith_Resource::checkResources to Kronolith_Resource_*::getResponse()
and remove the responsibilty of adding the event.

16 years agoRemoved some cruft from original testing
Michael J. Rubinsky [Thu, 17 Sep 2009 23:08:28 +0000 (19:08 -0400)]
Removed some cruft from original testing

16 years agoClean up a bit.
Michael J. Rubinsky [Thu, 17 Sep 2009 23:06:58 +0000 (19:06 -0400)]
Clean up a bit.

Remove unused factory, add some phpdoc etc...

16 years agoRemove max_reservations.
Michael J. Rubinsky [Thu, 17 Sep 2009 23:04:34 +0000 (19:04 -0400)]
Remove max_reservations.

It's not intuitive and won't be needed in 99.9% of the use cases. For
single resources that may be overbooked, the resource should be created
with a RESPONSETYPE_ALWAYS_EXCEPT responseType instead.

16 years agoProvide feedback on resource availability as soon as it's added to the attendees...
Michael J. Rubinsky [Thu, 17 Sep 2009 00:32:21 +0000 (20:32 -0400)]
Provide feedback on resource availability as soon as it's added to the attendees form.

If response type is Kronolith_Resource::RESPONSETYPE_AUTO then use the start and end datetime
values that are now passed from the event form to determine if the resource is free.

Still need to figure out how to (efficiently) pass the datetime values to take into account
AM/PM. Probably break out the javascript from the onClick handler into it's function and
provide logic to check the am/pm fields? Is there an easier/prettier way?

16 years agoDon't open resource calendars in _blank, use the same window
Michael J. Rubinsky [Wed, 16 Sep 2009 22:18:47 +0000 (18:18 -0400)]
Don't open resource calendars in _blank, use the same window

16 years agoNotify for acceptance as well
Michael J. Rubinsky [Sat, 12 Sep 2009 16:22:04 +0000 (12:22 -0400)]
Notify for acceptance as well

16 years agoNeed to move this comparison after the loop.
Michael J. Rubinsky [Sat, 12 Sep 2009 16:20:54 +0000 (12:20 -0400)]
Need to move this comparison after the loop.

If we are editing an event that was already accepted, we might hit max_reservations
before we get to the event we are editing.

16 years agoMake this "Response", just like the attendee's column
Michael J. Rubinsky [Sat, 12 Sep 2009 15:44:07 +0000 (11:44 -0400)]
Make this "Response", just like the attendee's column

16 years agoMove static resource related methods to Kronolith_Resource::
Michael J. Rubinsky [Sat, 12 Sep 2009 15:38:48 +0000 (11:38 -0400)]
Move static resource related methods to Kronolith_Resource::

16 years agoMore additions based on some discussion with Gunnar in IRC:
Michael J. Rubinsky [Sat, 12 Sep 2009 15:06:36 +0000 (11:06 -0400)]
More additions based on some discussion with Gunnar in IRC:
 - Allow specifying if a resource is required or optional
 - Add a response_type property to resources. Specifies if REQUESTS are
   either always accepted, always denied, automatically accepted/denied
   based on actual availability, handled manually (still todo), or simply
   ignored (set response to NONE).

Also, try to clean up the implementation - trying to make it more likely
to be able to be extened for kolab. No idea if this helps of not though ;)

16 years agoRename sql script
Michael J. Rubinsky [Fri, 11 Sep 2009 19:21:27 +0000 (15:21 -0400)]
Rename sql script

16 years agoLots of stuff:
Michael J. Rubinsky [Fri, 11 Sep 2009 19:09:15 +0000 (15:09 -0400)]
Lots of stuff:

- Move resource viewing/CRUD related pages to resources/*
- Have Kronolith_Resource objects present a Horde_Share_Object-like interface
- Remove the Resource link from the menu - put it in the panel under the "Manage My Calendars" link
- Various tweaks/corrections

16 years agoAdd a link in Kronolith's menu for the resource page
Michael J. Rubinsky [Fri, 11 Sep 2009 16:03:49 +0000 (12:03 -0400)]
Add a link in Kronolith's menu for the resource page

16 years agoOnly attempt to remove resources from the event if they have actually
Michael J. Rubinsky [Thu, 10 Sep 2009 16:12:20 +0000 (12:12 -0400)]
Only attempt to remove resources from the event if they have actually
accepted the event.

16 years agonotify user if a requested resource rejects invitation when saving event
Michael J. Rubinsky [Thu, 10 Sep 2009 16:11:12 +0000 (12:11 -0400)]
notify user if a requested resource rejects invitation when saving event

16 years agoInitial adding of resource to an event from the attendees page.
Michael J. Rubinsky [Thu, 10 Sep 2009 14:28:57 +0000 (10:28 -0400)]
Initial adding of resource to an event from the attendees page.

16 years agoAdd basic permission checking to Kronolith::listResources()
Michael J. Rubinsky [Thu, 10 Sep 2009 14:26:20 +0000 (10:26 -0400)]
Add basic permission checking to Kronolith::listResources()

16 years agoMove hasPermisson to the base class, implement ::get() to behave like
Michael J. Rubinsky [Wed, 9 Sep 2009 19:31:28 +0000 (15:31 -0400)]
Move hasPermisson to the base class, implement ::get() to behave like
a share.

16 years agotypos
Michael J. Rubinsky [Wed, 9 Sep 2009 19:30:54 +0000 (15:30 -0400)]
typos

16 years agoExperiment with getting either a share or resource here
Michael J. Rubinsky [Wed, 9 Sep 2009 19:10:56 +0000 (15:10 -0400)]
Experiment with getting either a share or resource here

16 years agolistEvents:: isn't detailed enough for this...manually compare
Michael J. Rubinsky [Wed, 9 Sep 2009 18:49:02 +0000 (14:49 -0400)]
listEvents:: isn't detailed enough for this...manually compare
start/end times to determine if an event collides.

Add basic hasPermission method, not sure if it's really needed yet.

16 years agoresource scheduling blurb
Michael J. Rubinsky [Tue, 29 Sep 2009 15:21:19 +0000 (11:21 -0400)]
resource scheduling blurb

16 years agoAdd sql script updates
Michael J. Rubinsky [Tue, 29 Sep 2009 15:20:15 +0000 (11:20 -0400)]
Add sql script updates

16 years agoUse Horde_Lock to lock the resource calendar.
Michael J. Rubinsky [Mon, 28 Sep 2009 21:55:08 +0000 (17:55 -0400)]
Use Horde_Lock to lock the resource calendar.

Lock the resource calnedar right before we check availability, and
unlock it either after the invitation is denied, or if accepted,
after the event is added to the resource's calendar.

16 years agoRemove listResources from Kronolth_Resource and refactor code to
Michael J. Rubinsky [Mon, 28 Sep 2009 16:53:22 +0000 (12:53 -0400)]
Remove listResources from Kronolth_Resource and refactor code to
use Kronolith_Driver_Resource::listResources instead.

16 years agoAdd resources to the event view as well
Michael J. Rubinsky [Mon, 28 Sep 2009 16:23:30 +0000 (12:23 -0400)]
Add resources to the event view as well

16 years agoUI support for creating and maintaining resource groups.
Michael J. Rubinsky [Sat, 26 Sep 2009 21:07:29 +0000 (17:07 -0400)]
UI support for creating and maintaining resource groups.

16 years agoBetter check for valid resource
Michael J. Rubinsky [Wed, 23 Sep 2009 17:13:40 +0000 (13:13 -0400)]
Better check for valid resource

16 years agoMore work on resource groups. Most of the backend support for resource groups is...
Michael J. Rubinsky [Tue, 22 Sep 2009 00:23:01 +0000 (20:23 -0400)]
More work on resource groups. Most of the backend support for resource groups is implemented,
but there is no GUI support yet.

16 years agoMove this to the base class.
Michael J. Rubinsky [Tue, 22 Sep 2009 00:00:00 +0000 (20:00 -0400)]
Move this to the base class.

16 years agoProtect against infinite recursion in case someone is silly enough to
Michael J. Rubinsky [Mon, 21 Sep 2009 23:58:35 +0000 (19:58 -0400)]
Protect against infinite recursion in case someone is silly enough to
add a resource to one of the resource's own events.

16 years agoCorrect conditional that catches conflicts.
Michael J. Rubinsky [Mon, 21 Sep 2009 23:53:27 +0000 (19:53 -0400)]
Correct conditional that catches conflicts.

Allow the next event to start at the end time of the previous event.

16 years agoSplit up the checking resoruce response and adding the (accepted) event to
Michael J. Rubinsky [Mon, 21 Sep 2009 21:59:02 +0000 (17:59 -0400)]
Split up the checking resoruce response and adding the (accepted) event to
the resource's calendar.

This is needed because we need the event to have a guid when it's added to
the resource's calendar, otherwise they end up with different GUIDs. This also
gives us some protection against an inconsistent state if there were to be an issue
saving the event to storage after it's been added to the resource's calendar.

16 years agoremove an errant var_dump
Michael J. Rubinsky [Mon, 21 Sep 2009 21:55:25 +0000 (17:55 -0400)]
remove an errant var_dump

16 years agotypo
Michael J. Rubinsky [Sun, 20 Sep 2009 03:00:07 +0000 (23:00 -0400)]
typo

16 years agoStart fleshing out the K_Resource_Group stuff.
Michael J. Rubinsky [Fri, 18 Sep 2009 04:38:48 +0000 (00:38 -0400)]
Start fleshing out the K_Resource_Group stuff.

16 years agospelling
Michael J. Rubinsky [Fri, 18 Sep 2009 04:38:23 +0000 (00:38 -0400)]
spelling

16 years agoRefactor a bit.
Michael J. Rubinsky [Fri, 18 Sep 2009 04:35:11 +0000 (00:35 -0400)]
Refactor a bit.

Move Kronolith_Resource::checkResources to Kronolith_Resource_*::getResponse()
and remove the responsibilty of adding the event.

16 years agoFix variable name
Michael J. Rubinsky [Fri, 18 Sep 2009 04:32:23 +0000 (00:32 -0400)]
Fix variable name

16 years agoRemove cruft
Michael J. Rubinsky [Fri, 18 Sep 2009 04:31:34 +0000 (00:31 -0400)]
Remove cruft

16 years agoRemoved some cruft from original testing
Michael J. Rubinsky [Thu, 17 Sep 2009 23:08:28 +0000 (19:08 -0400)]
Removed some cruft from original testing

16 years agoClean up a bit.
Michael J. Rubinsky [Thu, 17 Sep 2009 23:06:58 +0000 (19:06 -0400)]
Clean up a bit.

Remove unused factory, add some phpdoc etc...

16 years agoRemove max_reservations.
Michael J. Rubinsky [Thu, 17 Sep 2009 23:04:34 +0000 (19:04 -0400)]
Remove max_reservations.

It's not intuitive and won't be needed in 99.9% of the use cases. For
single resources that may be overbooked, the resource should be created
with a RESPONSETYPE_ALWAYS_EXCEPT responseType instead.

16 years agouse Horde_Support_GUID
Michael J. Rubinsky [Thu, 17 Sep 2009 00:39:05 +0000 (20:39 -0400)]
use Horde_Support_GUID

16 years agoProvide feedback on resource availability as soon as it's added to the attendees...
Michael J. Rubinsky [Thu, 17 Sep 2009 00:32:21 +0000 (20:32 -0400)]
Provide feedback on resource availability as soon as it's added to the attendees form.

If response type is Kronolith_Resource::RESPONSETYPE_AUTO then use the start and end datetime
values that are now passed from the event form to determine if the resource is free.

Still need to figure out how to (efficiently) pass the datetime values to take into account
AM/PM. Probably break out the javascript from the onClick handler into it's function and
provide logic to check the am/pm fields? Is there an easier/prettier way?

16 years agoDon't open resource calendars in _blank, use the same window
Michael J. Rubinsky [Wed, 16 Sep 2009 22:18:47 +0000 (18:18 -0400)]
Don't open resource calendars in _blank, use the same window

16 years agoFix sequence name.
Jan Schneider [Tue, 15 Sep 2009 14:27:49 +0000 (16:27 +0200)]
Fix sequence name.

16 years agoNotify for acceptance as well
Michael J. Rubinsky [Sat, 12 Sep 2009 16:22:04 +0000 (12:22 -0400)]
Notify for acceptance as well

16 years agoNeed to move this comparison after the loop.
Michael J. Rubinsky [Sat, 12 Sep 2009 16:20:54 +0000 (12:20 -0400)]
Need to move this comparison after the loop.

If we are editing an event that was already accepted, we might hit max_reservations
before we get to the event we are editing.

16 years agoRemove already added resources from the select list.
Michael J. Rubinsky [Sat, 12 Sep 2009 16:04:25 +0000 (12:04 -0400)]
Remove already added resources from the select list.

Also have listResources() return the results keyed by the resource_id

16 years agoMake this "Response", just like the attendee's column
Michael J. Rubinsky [Sat, 12 Sep 2009 15:44:07 +0000 (11:44 -0400)]
Make this "Response", just like the attendee's column

16 years agoMove static resource related methods to Kronolith_Resource::
Michael J. Rubinsky [Sat, 12 Sep 2009 15:38:48 +0000 (11:38 -0400)]
Move static resource related methods to Kronolith_Resource::

16 years agoMore additions based on some discussion with Gunnar in IRC:
Michael J. Rubinsky [Sat, 12 Sep 2009 15:06:36 +0000 (11:06 -0400)]
More additions based on some discussion with Gunnar in IRC:
 - Allow specifying if a resource is required or optional
 - Add a response_type property to resources. Specifies if REQUESTS are
   either always accepted, always denied, automatically accepted/denied
   based on actual availability, handled manually (still todo), or simply
   ignored (set response to NONE).

Also, try to clean up the implementation - trying to make it more likely
to be able to be extened for kolab. No idea if this helps of not though ;)

16 years agoMove checkResources() to Kronolith::, and out of the concrete Event_Sql driver.
Michael J. Rubinsky [Fri, 11 Sep 2009 23:42:07 +0000 (19:42 -0400)]
Move checkResources() to Kronolith::, and out of the concrete Event_Sql driver.

Move code for auto-accepting resources out of the Event driver and put
it into Kronolith:: Call it from Kronolith_Event::save() method (not 100%
sure about leaving it there, or just calling it in client code before saving
where appropriate).

16 years agoRename sql script
Michael J. Rubinsky [Fri, 11 Sep 2009 19:21:27 +0000 (15:21 -0400)]
Rename sql script

16 years agoLots of stuff:
Michael J. Rubinsky [Fri, 11 Sep 2009 19:09:15 +0000 (15:09 -0400)]
Lots of stuff:

- Move resource viewing/CRUD related pages to resources/*
- Have Kronolith_Resource objects present a Horde_Share_Object-like interface
- Remove the Resource link from the menu - put it in the panel under the "Manage My Calendars" link
- Various tweaks/corrections

16 years agoAdd a link in Kronolith's menu for the resource page
Michael J. Rubinsky [Fri, 11 Sep 2009 16:03:49 +0000 (12:03 -0400)]
Add a link in Kronolith's menu for the resource page

16 years agoFix logic and implement a delete() method for removing resources
Michael J. Rubinsky [Fri, 11 Sep 2009 16:02:43 +0000 (12:02 -0400)]
Fix logic and implement a delete() method for removing resources
from storage

16 years agoClear resources when clearing attendees page as well
Michael J. Rubinsky [Fri, 11 Sep 2009 16:01:38 +0000 (12:01 -0400)]
Clear resources when clearing attendees page as well

16 years agoTweak labels now that these are for resources as well
Michael J. Rubinsky [Thu, 10 Sep 2009 16:13:46 +0000 (12:13 -0400)]
Tweak labels now that these are for resources as well

16 years agoRemove some cruft now that we can do this via the UI properly now.
Michael J. Rubinsky [Thu, 10 Sep 2009 16:13:02 +0000 (12:13 -0400)]
Remove some cruft now that we can do this via the UI properly now.

16 years agoOnly attempt to remove resources from the event if they have actually
Michael J. Rubinsky [Thu, 10 Sep 2009 16:12:20 +0000 (12:12 -0400)]
Only attempt to remove resources from the event if they have actually
accepted the event.

16 years agonotify user if a requested resource rejects invitation when saving event
Michael J. Rubinsky [Thu, 10 Sep 2009 16:11:12 +0000 (12:11 -0400)]
notify user if a requested resource rejects invitation when saving event

16 years agoInitial adding of resource to an event from the attendees page.
Michael J. Rubinsky [Thu, 10 Sep 2009 14:28:57 +0000 (10:28 -0400)]
Initial adding of resource to an event from the attendees page.

16 years agoShow only resource calendars on the event form when we are editing a
Michael J. Rubinsky [Thu, 10 Sep 2009 14:27:44 +0000 (10:27 -0400)]
Show only resource calendars on the event form when we are editing a
resource's calendar.

16 years agoAdd basic permission checking to Kronolith::listResources()
Michael J. Rubinsky [Thu, 10 Sep 2009 14:26:20 +0000 (10:26 -0400)]
Add basic permission checking to Kronolith::listResources()

16 years agoAdd a setResources() method similar to setAttendees() for bulk setting
Michael J. Rubinsky [Thu, 10 Sep 2009 14:13:52 +0000 (10:13 -0400)]
Add a setResources() method similar to setAttendees() for bulk setting
the local resources array

16 years agoremove commented out code
Michael J. Rubinsky [Thu, 10 Sep 2009 14:12:52 +0000 (10:12 -0400)]
remove commented out code

16 years agoMove hasPermisson to the base class, implement ::get() to behave like
Michael J. Rubinsky [Wed, 9 Sep 2009 19:31:28 +0000 (15:31 -0400)]
Move hasPermisson to the base class, implement ::get() to behave like
a share.

16 years agotypos
Michael J. Rubinsky [Wed, 9 Sep 2009 19:30:54 +0000 (15:30 -0400)]
typos

16 years agouse Kronolith::getInternalCalendar() here as well
Michael J. Rubinsky [Wed, 9 Sep 2009 19:30:28 +0000 (15:30 -0400)]
use Kronolith::getInternalCalendar() here as well

16 years agoExperiment with getting either a share or resource here
Michael J. Rubinsky [Wed, 9 Sep 2009 19:10:56 +0000 (15:10 -0400)]
Experiment with getting either a share or resource here

16 years agolistEvents:: isn't detailed enough for this...manually compare
Michael J. Rubinsky [Wed, 9 Sep 2009 18:49:02 +0000 (14:49 -0400)]
listEvents:: isn't detailed enough for this...manually compare
start/end times to determine if an event collides.

Add basic hasPermission method, not sure if it's really needed yet.

16 years agoAdd resources to list of attendees returned from this method
Michael J. Rubinsky [Wed, 9 Sep 2009 18:48:21 +0000 (14:48 -0400)]
Add resources to list of attendees returned from this method

16 years agoEasier way of exlcuding the current event from checking resource availability.
Michael J. Rubinsky [Wed, 9 Sep 2009 00:02:28 +0000 (20:02 -0400)]
Easier way of exlcuding the current event from checking resource availability.

16 years agoNo autocompletion for resources (yet??)
Michael J. Rubinsky [Wed, 9 Sep 2009 00:01:29 +0000 (20:01 -0400)]
No autocompletion for resources (yet??)

16 years agoClarify why we are doing this bit of code here...
Michael J. Rubinsky [Wed, 9 Sep 2009 00:01:02 +0000 (20:01 -0400)]
Clarify why we are doing this bit of code here...

16 years agoFix passing the event date to the attendee form.
Michael J. Rubinsky [Tue, 8 Sep 2009 23:57:42 +0000 (19:57 -0400)]
Fix passing the event date to the attendee form.

16 years agoparse error
Michael J. Rubinsky [Tue, 8 Sep 2009 17:22:18 +0000 (13:22 -0400)]
parse error

16 years agoProperly pass the calender_id to ::listEvents()
Michael J. Rubinsky [Tue, 8 Sep 2009 17:20:27 +0000 (13:20 -0400)]
Properly pass the calender_id to ::listEvents()
is_a -> instanceof
check for error

16 years agoStqrt hashing out the isFree() method. Remove deprecated Resource.php file, phpdoc
Michael J. Rubinsky [Tue, 8 Sep 2009 16:44:47 +0000 (12:44 -0400)]
Stqrt hashing out the isFree() method. Remove deprecated Resource.php file, phpdoc

16 years agoFor now, don't use autocomplete for resource adding to attendees.inc -
Michael J. Rubinsky [Tue, 8 Sep 2009 16:43:07 +0000 (12:43 -0400)]
For now, don't use autocomplete for resource adding to attendees.inc -
we will need the resource's uid.

16 years agoresource event delettion, start building a useful resource page...
Michael J. Rubinsky [Fri, 4 Sep 2009 00:08:49 +0000 (20:08 -0400)]
resource event delettion, start building a useful resource page...

Make sure we delete the resource from the 'original' event when
directly deleting the resource's copy of the event.

Fix some variable/method names

Start building a resorce management page.

16 years agoBe sure to load the empty resources array when creating a new event.
Michael J. Rubinsky [Thu, 3 Sep 2009 22:39:30 +0000 (18:39 -0400)]
Be sure to load the empty resources array when creating a new event.

16 years agoActually remove this code
Michael J. Rubinsky [Thu, 3 Sep 2009 20:36:15 +0000 (16:36 -0400)]
Actually remove this code

16 years agoMore tweaks/fleshing out:
Michael J. Rubinsky [Thu, 3 Sep 2009 20:34:20 +0000 (16:34 -0400)]
More tweaks/fleshing out:

- Perms checks
- Remove Kronolith::getResource() - use the driver's getResource() method directly.
- have K_Driver_Resource::listResources() method return resource objects directly.

16 years agoFix method name
Michael J. Rubinsky [Thu, 3 Sep 2009 18:27:34 +0000 (14:27 -0400)]
Fix method name

16 years agoLarge bit of work on Kronolith Resources.
Michael J. Rubinsky [Thu, 3 Sep 2009 17:23:22 +0000 (13:23 -0400)]
Large bit of work on Kronolith Resources.

 - K_Event_Resource and k_Driver_Resource resources.
 - Implement viewing/editing a resource's events.
 - Show resource calendar title in panel
 - Get rid of lib/Resource.php (functionality moved to Kronolith::)

16 years agotweak panel display when displaying display_cals.
Michael J. Rubinsky [Wed, 2 Sep 2009 20:18:57 +0000 (16:18 -0400)]
tweak panel display when displaying display_cals.

Add displayed calendar(s) name, and allow expanding/collapsing.
Tweak text to display 'Return to calendars' when anonymous user.

16 years agoReplace calendar panel with a "Return to my calendars" link when displaying display_cals.
Michael J. Rubinsky [Wed, 2 Sep 2009 19:24:47 +0000 (15:24 -0400)]
Replace calendar panel with a "Return to my calendars" link when displaying display_cals.

16 years agoClarify the use of the display_cal parameter
Michael J. Rubinsky [Wed, 2 Sep 2009 16:43:31 +0000 (12:43 -0400)]
Clarify the use of the display_cal parameter

16 years agoSome ideas on feeling out a UI for administration...some of this will likely change
Michael J. Rubinsky [Thu, 20 Aug 2009 23:13:36 +0000 (19:13 -0400)]
Some ideas on feeling out a UI for administration...some of this will likely change

16 years agolistObjects API blurb
Michael J. Rubinsky [Thu, 20 Aug 2009 20:57:19 +0000 (16:57 -0400)]
listObjects API blurb

16 years agoimplement basic listing method...no filters yet.
Michael J. Rubinsky [Wed, 19 Aug 2009 14:47:53 +0000 (10:47 -0400)]
implement basic listing method...no filters yet.

16 years agoUse a static member to hold the Kronolith_Driver object
Michael J. Rubinsky [Wed, 19 Aug 2009 14:28:00 +0000 (10:28 -0400)]
Use a static member to hold the Kronolith_Driver object

16 years agoFirst attempt at displaying resource FreeBusy info on the attendee view
Michael J. Rubinsky [Wed, 19 Aug 2009 00:16:39 +0000 (20:16 -0400)]
First attempt at displaying resource FreeBusy info on the attendee view

16 years agoNeed to move the acceptance/denial of requests to the resource object
Michael J. Rubinsky [Tue, 18 Aug 2009 20:05:19 +0000 (16:05 -0400)]
Need to move the acceptance/denial of requests to the resource object
itself...otherwise, the internal properties array won't be serialized
before saving.

16 years agoCheck for cases where resource is not found
Michael J. Rubinsky [Tue, 18 Aug 2009 16:19:30 +0000 (12:19 -0400)]
Check for cases where resource is not found