+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 24
Home Access Plus+ Thread, Bookings - Advanced Permissions in Projects:; Hi Nick Ive not upgraded to 7.10 yet - so apologies if youve fixed this already... Im trying to use ...
  1. #1
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,116
    Thank Post
    720
    Thanked 174 Times in 157 Posts
    Blog Entries
    78
    Rep Power
    86

    Bookings - Advanced Permissions

    Hi Nick

    Ive not upgraded to 7.10 yet - so apologies if youve fixed this already...

    Im trying to use the Advanced Booking Rights to extend the booking window for some staff. Ive entered their username, and changed the setting so that is is 10 weeks in advance - but it isnt setting it (the dates show greyed out still). It soes seemt to set the max bookings per week successfully though.

    Any ideas?

    Stuart

  2. #2
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,116
    Thank Post
    720
    Thanked 174 Times in 157 Posts
    Blog Entries
    78
    Rep Power
    86
    And another discrepancy surrounding rights on bookings...

    Ive now upgraded to v7.10... and these are the issues I've spotted:

    1. Advanced Booking Rights - Max number of bookings per weeks is applied, but number of weeks in advance isn't
    2. Additional Admins of a Room/Resource get the "over-ride" option on bookings, but they cannot book on behalf of someone else.

    Upgrade otherwise works nicely Nick. Great work. Still got that other bug with MyFiles not displaying and throwing that error as per other thread....

  3. #3
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,116
    Thank Post
    720
    Thanked 174 Times in 157 Posts
    Blog Entries
    78
    Rep Power
    86
    And a bit more digging on it. If I remove the users from the "Additional admins" on the Room/Resource - it doesn't look like it is reading the group membership of the AD group added on the HAP Config screen under Bookings > Administrators.

    Any troubleshooting ideas as this one is a major PITA!

    Stuart

  4. #4

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,675
    Thank Post
    43
    Thanked 557 Times in 465 Posts
    Rep Power
    122
    Ok, I think I've fixed both of these bugs, any chance you can test the attached dll.

    The 1st, I've added a loop that checks each week, and then adds any addition days.

    The 2nd, was only looking for usernames, not AD Groups, it now does both

  5. #5
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,116
    Thank Post
    720
    Thanked 174 Times in 157 Posts
    Blog Entries
    78
    Rep Power
    86
    Hi Nick. Ok - Ive replaced the DLL and restarted IIS. Sadly - no change.

    The user is listed as an additional admin on the HAP Config page, but doesnt get the ability to book on behalf of someone else. They can remove/override others though - so some parts of the additional admin are working. Ive given the user Advanced Permissions from the Bookings Control panel - and the number of bookings for the week sets correctly now, but the number of days in advance doesnt.

  6. #6

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,675
    Thank Post
    43
    Thanked 557 Times in 465 Posts
    Rep Power
    122
    ok, very odd, will keep looking into this

  7. #7

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,675
    Thank Post
    43
    Thanked 557 Times in 465 Posts
    Rep Power
    122
    very odd, the Advanced Rights work for me (for some reason it's -1 week from what is actually set (though that could because it's Monday))

    The admin rights also works, where the user can book as another user

  8. #8
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,116
    Thank Post
    720
    Thanked 174 Times in 157 Posts
    Blog Entries
    78
    Rep Power
    86
    Ok - Ive found one sort of fix. The username needed to be entered as DOMAIN\Username in the Advanced Permissions. Setting as a Room Admin (via HAP config generated the ability to remove and override booking; adding the user to the group defined at the top of the booking section gave the "As another user" option.

    So, Ive used a combo approach on that - and it is working ok now.

    Ive got a feature request on bookings - which I will put in the right area too; but as its related to bookings - I'll stick it here too!

    The ability to book a whole day rather than go for each session would be great. Kind of an option to copy to remainder of the day or something like that.

    Hope you can do it...

    Stuart

  9. #9

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,675
    Thank Post
    43
    Thanked 557 Times in 465 Posts
    Rep Power
    122
    You shouldn't have to use domain\ at all, unless there is a config issue. Are you using Forms or Windows Auth?

  10. #10
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,116
    Thank Post
    720
    Thanked 174 Times in 157 Posts
    Blog Entries
    78
    Rep Power
    86
    Im using Windows Auth - as Im one of your awkward ISA/TMG users. I will try taking it out just to confirm, but thats the change that seemed to make it work. What do you think of the feature request?

    Great work as always, thanks

    Stuart

  11. #11

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,675
    Thank Post
    43
    Thanked 557 Times in 465 Posts
    Rep Power
    122
    Ah, that could be why, it may need domain\username in that case

  12. #12
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,116
    Thank Post
    720
    Thanked 174 Times in 157 Posts
    Blog Entries
    78
    Rep Power
    86
    Hmmm.... there is still a discrepancy here somewhere! Im trying to find it...

    Ok... heres the scenario...

    In the HAP Config screen - Booking System - Administrators group selected as Staff-BookingsAdmin (thats our AD group that contains the higher level users)

    This correctly gives them the "book as someone else" option. It does not however over-ride the max days (cant tell if over-rides max bookings - but the info bar doesnt contain the entry "You have x bookings remaining this week").

    So, go to Advanced permissions to add this as DOMAIN\username, which works - so long as its not during a holiday (but it is now - which throws a lovely error... shown at the end).

    Can you set it so that being in the extra admin group correctly handles max bookings and bookings in advance (no limit) as it does on Domain Admins; or can we bug fix that new dll?

    Oh... and I went back to that dll, which doesnt produce the error below - but then we are back to the max bookings limit again!

    The added or subtracted value results in an un-representable DateTime.
    Parameter name: value
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
    Parameter name: value

    Source Error:


    Line 86: <script type="text/javascript">
    Line 87: var curdate, curres, curles;
    Line 88: var user = { <%=JSUser %> };
    Line 89: var resources = <%=JSResources %>;
    Line 90: var availbookings = [ 0, 0 ];


    Source File: d:\Program Files\HAP7\BookingSystem\Default.aspx Line: 88

    Stack Trace:


    [ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
    Parameter name: value]
    System.DateTime.AddTicks(Int64 value) +9624435
    System.DateTime.Add(Double value, Int32 scale) +136
    HAP.Web.BookingSystem._new.get_JSUser() +3055
    ASP.bookingsystem_default_aspx.__Render__control13 (HtmlTextWriter __w, Control parameterContainer) in d:\Program Files\HAP7\BookingSystem\Default.aspx:88
    System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +109
    System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
    System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer) +31
    HAP.Web.Controls.CompressJS.Render(HtmlTextWriter writer) +4
    System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    ASP.bookingsystem_default_aspx.__Render__control3( HtmlTextWriter __w, Control parameterContainer) in d:\Program Files\HAP7\BookingSystem\Default.aspx:82
    System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +109
    System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
    System.Web.UI.Control.Render(HtmlTextWriter writer) +10
    System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
    System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter writer) +173
    System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer) +31
    System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output) +53
    System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.HtmlControls.HtmlForm.RenderControl( HtmlTextWriter writer) +40
    System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
    System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
    System.Web.UI.Control.Render(HtmlTextWriter writer) +10
    System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
    System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
    System.Web.UI.Page.Render(HtmlTextWriter writer) +29
    System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

  13. #13
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,116
    Thank Post
    720
    Thanked 174 Times in 157 Posts
    Blog Entries
    78
    Rep Power
    86
    Extrra debug information - so long as the information i put in the <abr> for max weeks in advance is a single digit (ie up to 9) - then it works. Go to 10 - then the error appears.

  14. #14

    nickbro's Avatar
    Join Date
    Jul 2010
    Location
    Gilwern, Wales
    Posts
    3,675
    Thank Post
    43
    Thanked 557 Times in 465 Posts
    Rep Power
    122
    Just checked a code release into codeplex which may fix some of the issues you've addressed here, the date not moving to the next free day during a holiday was starting to annoy me, found out why it wasn't working, it is now.

    Can you try the attached dlls, they should enable correct line references for me to debug.

  15. #15
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,116
    Thank Post
    720
    Thanked 174 Times in 157 Posts
    Blog Entries
    78
    Rep Power
    86
    Ok... going to be a few separate posts here...

    Scenario 1: User has ABR's set - below 10 and over 10 days in advance (and is not a Booking Admin) results in the following

    Server Error in '/HAP7' Application.
    --------------------------------------------------------------------------------

    The added or subtracted value results in an un-representable DateTime.
    Parameter name: value
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
    Parameter name: value

    Source Error:


    Line 86: <script type="text/javascript">
    Line 87: var curdate, curres, curles;
    Line 88: var user = { <%=JSUser %> };
    Line 89: var resources = <%=JSResources %>;
    Line 90: var availbookings = [ 0, 0 ];


    Source File: d:\Program Files\HAP7\BookingSystem\Default.aspx Line: 88


    [ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
    Parameter name: value]
    System.DateTime.AddTicks(Int64 value) +9624435
    System.DateTime.Add(Double value, Int32 scale) +136
    HAP.Web.BookingSystem._new.get_JSUser() in H:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\BookingSystem\Default.aspx.cs:174
    ASP.bookingsystem_default_aspx.__Render__control13 (HtmlTextWriter __w, Control parameterContainer) in d:\Program Files\HAP7\BookingSystem\Default.aspx:88
    System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +109
    System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
    System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer) +31
    HAP.Web.Controls.CompressJS.Render(HtmlTextWriter writer) in H:\Documents\Visual Studio 2010\Projects\CHS Extranet\HAP.Web\Controls\CompressJS.cs:29
    System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    ASP.bookingsystem_default_aspx.__Render__control3( HtmlTextWriter __w, Control parameterContainer) in d:\Program Files\HAP7\BookingSystem\Default.aspx:82
    System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +109
    System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
    System.Web.UI.Control.Render(HtmlTextWriter writer) +10
    System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
    System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter writer) +173
    System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer) +31
    System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output) +53
    System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.HtmlControls.HtmlForm.RenderControl( HtmlTextWriter writer) +40
    System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
    System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
    System.Web.UI.Control.Render(HtmlTextWriter writer) +10
    System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
    System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
    System.Web.UI.Page.Render(HtmlTextWriter writer) +29
    System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
    System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060
    Last edited by TheScarfedOne; 13th April 2012 at 02:47 PM. Reason: Extra useful code spotted...



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 30
    Last Post: 21st June 2013, 01:31 AM
  2. Advances Folder Permission script
    By alunmjones in forum Scripts
    Replies: 5
    Last Post: 13th April 2012, 01:31 PM
  3. Windows Advanced Server 2000 book/manual
    By JPS in forum Windows Server 2000/2003
    Replies: 7
    Last Post: 3rd January 2011, 06:13 PM
  4. Advanced Permissions
    By FN-GM in forum EduGeek Joomla 1.5 Package
    Replies: 5
    Last Post: 6th August 2008, 02:19 PM
  5. Advanced file permissions in XP Home
    By crc-ict in forum Windows
    Replies: 2
    Last Post: 7th December 2006, 09:29 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •