Erratic Behavior with 2.1

When I attempt to create a new version of a raw image (NEF) in 2.1, either through cropping or color correcting, the screen often goes blank. When I go back to the browswer only mode, I can see the original image with a number on it, as though I have created a stack. However, I can't access the stacked image. The only way to get at it is by quitting Aperture, relaunching the app and going back to the browser where I now find all the variations unstacked.
This is very frustrating!

I've noticed that when making adjustments in 2.1 sometimes the image will go completely black. It seems to have only started doing this recently but it is doing it on two different Aperture installations. Not sure if any of the recent Apple updates did anything that broke it, but for now it's pretty much unusable.

Similar Messages

  • Cause of Erratic Behavior With Tethered Shooting

    The first time I tried tethered shooting with my Nikon D3 and D2XS, I experienced very erratic behavior, including the import window popping up and images not downloading from the camera even though the software said they were.
    I struggled with these issues for over an hour and discovered a very simple fix: Consult the camera manual. Nikon specifies a very specific procedure. First, make sure any CF cards you have in the camera are empty. Second, change the camera's USB setting to MTP/PTP. Third, TURN THE CAMERA OFF (VERY IMPORTANT). Fourth, connect the camera to your computer. Fifth, launch the software and go into Tether mode. Sixth, turn the camera on and start shooting.
    When I did this, everything worked perfectly. The erratic behavior disappeared.
    One other word of advice. Give a few extra seconds for the first image to download. They seem to speed up after that.

    I would set both express in bridge mode and set to join or create its own network.
    If you want excellent range then use ethernet to the express, set in bridge mode, set to create its own network and place the express more middle of the house.
    Regarding the TC , keep it in an open environment especially if using N only mode(signal strength).

  • Erratic behavior with multiple calls to the same RFC

    Hi,
    I am running into a strange problem invoking a custom RFC from a .NET application. I would appreciate it if someone has any insight into it.
    The steps to call the RFC are straightforward:
    1. Open the connection to SAP server
    2. Make the call
    3. Close the connection
    As you can imagine, the code is also quite simple. 
    In my simulation program, I have a button on a UI form that one can click and execute the above steps.
    The problem I am running into is that, on multiple calls, sometimes the parameter values that show up on the SAP side are not right. When the input parameter (a structure) is viewed in the ABAP debugger, the field values are all getting exchanged. For example, first name field contains values for the last name. Also, some fields that are supposed to have values do not have any.
    Just before the RFC call is made, when we look at the structures on the .NET side, the field values are the way they are supposed to be.
    I have not been able to establish a pattern. Sometimes, it takes two clicks to reproduce this problem. Sometimes it takes five.
    One of the team members thinks that this starts occurring right after one call fails for some valid reasons. However, I am not yet convinced.
    Having written many custom .NET applications using RFCs an BAPIs, I am fairly conversant with the technology. However, this one just baffles me. It appears something is getting messed up at the RFC layer itself. Does anyone have any idea on what could be happening?
    Thank you in advance for your help.
    Pradeep

    Indeed this is interesting .
    The problem is caused by an incompatible change from .NET Framework 1.1 to 2.0. Howerver, the documentation on the 1.1. API was not clear enough to decide if the incompatible change was adequate or not. Now in detail:
    NCo runtime uses the reflection API Type.GetProperties to read and cache all properties of a Proxy structure. NCo assumes that the order of the returned properties is the same on each call and especially that it is the order of the properties as they appear in source code. This was the behavior in .NET 1.1. It has changed in 2.0, see e.g. the internet forum discussion in http://www.thescripts.com/forum/thread455492.html .
    Calling Type.GetProperty(<PropertyName>) or Type.SetProperty(<PropertyName>)  in your code moves the mentioned properties up in the list returned by Type.GetProperties() later inside of NCo.
    We found the following work-arroud:
    When using late-binding, call a dummy Type.GetProperties()  before any GetProperty or SetProperty.

  • Erratic behavior with Snow Leopard

    This summer on vacation I was on the Internet via Wifi when my cursor started jumping around erratically. I couldn't get control of the trackpad, windows and programs would open by themselves. Desktop Icons changed size by themselves. The problems were intermittent; some days everything was normal.
    Since I got back home everything works normally except: the Desktop Icons still change size occasionally by themselves, and System Preferences crashes whenever I try to open it.
    Do I need to reinstall the OS?
    Thanks for suggestions.
    MB Pro i5, Snow Leopard 10.6.8.
    Roberto

    From a point of view of keeping your sanity (and your hair!) I would go with the ATI chip, I'm talking from over 15 years of experience with both Mac's and PC's using both ATI and Nvidia graphics chips and always found ATI products more robust and reliable yes on occasion Nvidia out performs ATI but in the next breath ATI out performs Nvidia and so the circle goes !! But as I say from a purely hardware point ATI all the way.
    custom mini

  • Erratic behavior with calculated fields

    A new issue,
    I am working on a form with a great many numeric input fields.
    These fields are used in a series of calculations
    Item one - The first calcualted field sub-totals a column of numbers
    Item two - The second calculated field subtracts a column of numbers from that sub-total
    Item 3 - The third calcualted field is the totals four columns like the one listed above.
    Item 4 - The last calculation is the total above divided by four.
    A simple calculation is uses to enter this total at the start of the next page and so forth throughout the form.
    The problem is that sometimes as I add figures to item one, the number does not always update in item four right away. I kind of have to jimmy with the entries a little. Itis like the totals column lags behind by one entry.
    I also get a number of issues when going backwards and removing entries.
    Any thoughts on what I am doing wrong?
    Steve

    Thanks much...this occured to me as well after I posted this...felt kind of dumb actually. But that was indeed the correct
    solution.
    Thanks much.
    Steve

  • Erratic behavior with Photoshop with layers

    Hello All
    I am writing for a friend of mine (here in Italy) who has not been able to resolve some major problems with his computer. I specified photoshop above as he generally on uses this program (he is a professional photographer), but it does appear to be a software problem. He has already changed his graphic card (Radeon 9600 Pro), so this is not the problem.
    I will try to summarize his problems (problems which have happened since he bought his computer two years ago):
    1. When he uses layers in photoshop, and only with layers, sometimes a channel is randomly moved and transformed into the complementary color. Although this happens in all three channels it is more prevalent in one of the channels. He is using CS2 (original), but had the same problem with CS1.
    2. there are also red pixels randomly on the files (this too, though, is sporadic)
    3. when he prints, he can go through the entire day of printing and all of the sudden one of the pictures will have a problem (and that problem will continue until he restarts the printer). His printer is an Epson 4000. The motherboard in this printer has also been changed.... two times!
    Do you think that this is a problem with reading and writing?
    He has reinstalled the system more than once, and now the problem is worse than it has ever been. While at the beginning it happened once in a great while, now these problems are getting worse and he is seriously worried about ruining his files (that he needs, obviously, for his work). Here in Italy he hasn't been able to find anyone who can fix these problems. As a photographer you can imagine how important it is for him to not have a reliable means to work on his photos.
    If any of you have advice we would greatly appreciate it.
    Thank you.
    Michael in Rome
    G5 dual 1.8 GHz   Mac OS X (10.4.3)   3 GB RAM

    Hi Michael,
    AHT (Apple Hardware Test), from the install CD/DVD will test ram. Another good one is Memtest that you can find on versiontracker.com:
    http://www.versiontracker.com/php/feedback/article.php?story=20051205101631305
    Gary

  • Siri "show reminders" command erratic behavior

    iPhone 4s and iPad 3 both with iOS 8.1
    when asking Siri to "show reminders" it sometimes show them on Siri's display and other times it just open the Reminder application.
    Before on iOS 7 it would only "show reminders" in Siri's display, and then open the application if asked for ("open Reminders application").
    Has also someone else noticed this erratic behavior with these commands, and have a solution to fix it?

    Thanks Tom,
    That's the crazy part - sometimes I'm doing nothing - I have no airport installed or any wireless accessories either.
    When it last acted upon (after writing 1st post) I played along - since it thought there was a disk in the drive I went ahead and gave a command to burn to it. When it said there was no cd inside , I canceled the operation. So far so good.
    My suscpicion is that there was/is an uncompleted command somewhere - but I've no idea what would trigger the drive to remind it of this. Weird huh?
    I would like to avoid the 10.4.9 upgrade as my research doesn't give enough favorable input on the Apple Discussions pages to warrant it.
    Any other ideas what it could be?
    John

  • Erratic Report Region Behavior with Dynamic SQL Queries

    I'm running HTMLDB v 1.5.1.00.12 and I've noticed some odd behavior with report regions using dynamic SQL queries. Every so often, our testers will run a page containing a dynamic sql report region and get the following error, (despite the fact the query was working only moments ago and no other developer has touched it):
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    or sometimes
    failed to parse SQL query:ORA-01403: no data found
    The only solution I've found so far is to:
    1) Make a copy of the failed report region.
    2) Disable or delete the original failed report region.
    The new copy of the report region runs without issue.
    My search of the forums turned up the following two threads, but neither provided me with a clear explanation of the cause, and how to avoid it:
    ORA-06502:PL/SQL: numeric or value error: character string buffer too small
    Re: Import Export Error (ORA-06502)
    The columns being returned are below the 4000 character limit, and the rows being returned are far less than 32k in size.
    Could this have anything to do with the way HTMLDB is internally storing the PL/SQL used to generate the dynamic SQL Query? Is there any known issue related to this with that version of HTMLDB?
    This problem occurs without any discernable pattern or consistency, making it hard to determine where I should focus my efforts in tracking down the cause.

    Hi all,
    My report seems to be behaving correctly once i set it to "Use Generic Column Names (parse query at runtime only)" :)
    Cheers,
    Joel

  • LaserJet 4L with Windows XP. Erratic behavior

    My LaserJet 4L has been gently used since I bought it many years ago.
    It was always a PERFECT machine.
    But suddenly it is not reliable. The test page works and sometimes it prints fine from documents or web pages, but the erratic behavior when I try to print  now includes:
        1. All lights coming on even though there is no paper jam and the paper tray is not empty.
         2. One blank sheet prints, instead of what I wanted.
    HP phone support said to buy a new machine but the store where I bought the machine said it might be just an easy fix like a wire or a driver.
    I prefer to fix the machine instead of buying a new one because it is more ecological!

    Honey, it's time to start saying your farewells to your beloved printer.  The behaviour you are describing is the beginnings of a serious hardware meltdown involving the High Voltage Power Suppy and your formatter board (and possibly the DC controller but generally when that goes the printer will not recover from whatever error or behaviour it is performing).
    insert signature here

  • Erratic behavior

    I am having a lot of problems with scripts from a book
    tutorial. The book is PHP 5 Advanced by Larry Ullman. I've worked
    through two of his other books with no problems. But with this book
    I am getting a lot of errors and erratic behavior.
    With a header.htm file in chapter 5, if I save the page as
    htm some of the code is exposed "($fcat\n"; } // end of while loop
    ?>" in the browser without the two end quotes. The same with the
    downloaded file. If I save the file with a php extension the code
    is not exposed. Does it really matter if I save it with .htm or
    .php? I know that the php files have to make a trip to the server,
    so there is a little more overhead. But I don't think it will
    matter that much with a few files.
    There is something wrong with my work environment. I use
    DreamWeaver CS3 as an IDE and the rest of my setup below. I have
    completed a semester of php at the community college, completed 4
    books on php and mysql with this setup. I am about ready to
    re-install DW, PHP, and Apache server to see if it resolves my
    problems.
    Some of the scripts work on my remote server but not on my
    local setup is why I think something might be wrong with my setup.
    Has anyone experienced similar problems? If so how did you
    resolve them. Since I have fairly recent versions of my programs I
    really don't want to re-install everything. The companion scripts
    that I downloaded also provide the same errors.
    I am getting ready to work through David Powers' book
    Dreamweaver CS3 with CSS, AJAX, and PHP. I would like not to have
    these problems but I don't want to re-install php, Apache and DW. I
    had trouble installing the Creative Suite Web Premium the first
    time I installed. I had to have help from tech support.
    I should add that older scripts that I have work as they
    should.
    Charlesp
    PHP Version 5.2.3
    MySQL Version 5.0.27
    Apache/2.0.58
    Windows XP, Professional, sp2

    I am unfamiliar with this book, but yes, if PHP code is
    contained in a page,
    you will use the .php extension to save your page. You have
    seen why.
    "> There is something wrong with my work environment. I
    use DreamWeaver CS3
    as an
    > IDE and the rest of my setup below. I have completed a
    semester of php at
    > the
    > community college, completed 4 books on php and mysql
    with this setup. I
    > am
    > about ready to re-install DW, PHP, and Apache server to
    see if it resolves
    > my
    > problems.
    >
    > Some of the scripts work on my remote server but not on
    my local setup is
    > why
    > I think something might be wrong with my setup.
    The setup below should work .. perhaps you didn't install
    correctly. Did
    you use an installer? If you create an info.php page with the
    code here,
    does it show you the PHP info page?
    <?php
    phpinfo();
    ?>
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development

  • Extremely slow navigation in full screen mode and other erratic behavior

    Hi,
    Is it me or every new release of PSE feels heavier and more bloated than the previous?
    I have PSE9 running on a dual core, one year old dell PC with W7 with 4GB of RAM. I have the maximum amount of recommended memory alloted to the program (set in preferences).
    Ever since I upgraded, moving forward (or backward) to the next pic (via pagedown, or up) through the filmstrip in fullscreen mode has become very, very sluggish. Sometimes it just will not move to the next image even when thi image is in the same directory as the previous one.
    Is this sluggish navigation normal? Or is there something that I can do to improve performance??
    I look at images in fullscreen mode to decide which ones to edit and which ones to delete so I use this feature a lot. Another example of sluggish-- or in this case erratic-- behavior happens when looking at an image in full screen and then I decide to edit the image. I load the image to the edito by clicking the editor icon on the left options pane. Even if the editor is already open, sometimes it brings the editor to the ferground with the image ready to be edited and sometimes it does not; I have to cycle with alt-tab to make the editor active. Why this erratic behavior? Then, after saving an image and selecting the close button, you are supposed to be returned to the organizer... well this happens sometimes, other times I have to manually swithc using alt-tab.
    Please help, this is very annoying.

    Pabloelchico wrote:
    ...I then import these as managed reference files into Aperture.
    I don't understand whether you have a Referenced-Masters Library or a Managed-Masters Library. Drives slow as they fill and with a Managed-Masters Library sooner or later the internal drive will become overfilled. I recommend a Referenced-Masters Library with Masters on an external drive and the Aperture Library on the internal drive.
    iMacs, laptops and Minis are by definition limiting to heavy Aperture usage, so work carefully to optimize setup and workflow.
    First is to max the RAM and make sure the hard drive stays less than 70% full. Restart the iMac prior to a major Aperture session and only have Aperture open. You should also investigate to see if a substantially more powerful video card is available at reasonable price.
    Set Preview size to be exactly screen size and build Previews manually when the box is otherwise not being aggressively used.
    HTH
    -Allen Wicks

  • Iphone 6+ touch screen issue erratic behavior

    iphone 6+ touch screen erratic behavior.  the main issue started this week, it comes and goes, and  starts with inability to even swipe the unlock slider, and which mimics that of trying to use phone with a wet hand. when tying who knows what will actually happen, app in use closes, opens, you end up on a different message while trying to respond to someones text.  clearly my inputs are not at all related to what the phone thinks is being pushed.  have done partial, settings, and a full restore and issues came back 2 days later.  deleted flesky and any apps installed in the last 30 days and the issues persist.  case on or off, factory charger and cables, zero moisture exposure all irrelevant to this issue manifesting itself.
    at this point i am thinking hardware and only because behavior of touch screen has been marginally flakey the last 6-8 weeks prior, i thought it might be certain apps, but certain areas of the touch screen seemed unresponsive especially near the center.  those issues too intermittent,  and because they were minor, i wrote them off to the apps themselves, or perhaps some bug in iOS8 that would be fixed in an update.
    so it seems likely the earlier issues were real and related to the phone and not too specific apps.  whatever it is it needs to be addressed immediately by apple as it is clear my issues are not isolated.  i do not have hours to spend at some genius bar trying to prove an intermittent issue exists.
    apple, what is your response?
    james

    Having the same issues with my 6+.  I've also seen these vertical stripes around the upper right of the screen periodically as well. I did some searches here and tried resetting the phone and a full restore from backup.  It seemed to resolve it for a little while then the erratic behavior came back.
    Today, I took it to the Genius Bar today and they are replacing the LCD screen under warranty.  When I get it back, I'll do another full restore and hope that fixes the issue.
    What's most frustrating is I've been an iPhone owner since the 3G and never experienced issues with the touchscreen like this.

  • Strange window behavior with CS5

    I have begun experiencing strange behavior with PS CS5. I should begun with the machine configuration: 2.66GHz iMac (8,1) Intel Core Duo with 4GB RAM and OSX 10.6.6, Radeon HD 2600 Pro graphics card. The initial symptom showed up suddenly as an inability to display an image window; that is, I could open PS normally, everything would show up properly, but when I opened an image file of any sort, there would be no image window. Other cues indicated that the file was open; for example, the window menu would show it selected, and the layers palette would show the file's layers.
    It did not seem to matter what type of file was involved: PSD, JPG, TIF, whatever. Occasionally, this behavior would begin during a session. Sometimes it would happen right off the bat. Sometimes, stopping and restarting PS seemed to clean things up; other times, this had no effect. After messing around quite a bit with different permutations and combinations, all I could say was that the problem was random.
    I might add that I've had PS CS5 on this machine pretty much since it was announced, and had not had problems with it before. So this issue came along quite suddenly a couple of weeks ago. This was a little after I'd installed an update for Nik's Viveza 2; and I began to suspect that. Although why Viveza should do such a strange thing was odd, and Viveza was never part of the files I was experiencing issues with. Anyway, I went back to an earlier version of Viveza and the problem persisted.
    Since I run Time Machine, I also went back to versions of the entire PS folder from a month back, and found the same problem. Along the way, I experimented with the files I was using with PS CS4 & CS3, which I also have installed on this machine. These two versions of PS run perfectly well. At least the CS4 version has precisely the same plugins as the CS5 folder, and this seems to discount the potential problem with plugins.
    To be sure about CS5, I completely deactivated, deinstalled, and reinstalled it. The same issues occurred. Now, I have to admit that I let PS run its update process so that I brought it back to the most recent version in this step of my troubleshooting. So, I can't be certain that the issue isn't with some update of CS5.
    I might add that I have been running CS5 in 32-bit mode, for compatibility with certain plugins. This may or may not be an issue, since I have limited experience with running in 64-bit mode. At this point, I should add a bit more about the confusing behavior.
    While messing around with CS5, I also suspected the GPU support, since my problem had to do with windows. When the problem presents itself, the usual cycle through window views that you get by pressing the "F" key seems to get messed up. In particular, the "F" key doesn't work at all. Next, if you use the View menu to select different views, the full screen with menu bar view will often have garbled pixels, while the full screen view will show a blank grey screen. Then, cycling back to a window view will show a window with blank grey contents. This is interesting since the starting point was no window at all; but going into full screen and then back will produce a window with bogus contents.
    Now, the next strange thing, having to do with the GPU, is that CS5 often fails to recognize the Radeon HD 2600 card. Oddly enough, it did originally. And I had it running in Basic mode. However, CS4 does recognize the GPU; and I can set it in any variety of modes: Basic, Normal, and Advanced. This behavior is not consistent at all either; that is, while CS5 almost always now fails to detect the GPU, sometimes it does. As near as I can tell, this failure to detect the card does not depend upon whether I start CS5 in 32-bit or 64-bit mode. OTOH, CS4 always recognizes the GPU.
    Another form of this odd behavior arises if I start CS5 cold, and then just open a new blank window. This almost always works. I get a blank white window, and I can paint on it with a brush, etc. However, if I go ahead at this point and open a file, then the new file takes over the window; and there are no tabs. If I select the original new file, usually labelled "Untitled", the window bar will show the change of filename but the window's contents and the layers palette will continue to show the old file that I had opened. Cycling through views can sometimes get back to the new Untitled file, but just selecting file windows never works.
    Yet another aspect of this messed up window behavior is that the workspace bar, which shows the Bridge, MiniBridge and view icons on the upper left and the various workspace options and CS Live on the upper right, is present but blank. OTOH, the tool bar is always displayed correctly, as is the horizontal bar that shows the various tool options. Likewise, the palettes for the workspace such as layers, swatches, adjustments, and so on, are always correctly displayed on the left.
    My next steps in trying to figure this out will be to ensure that I am running the latest of all plugins so that I can get everything running in 64-bit mode and try this again. However, the single factor that seems consistent in this whole mess is that whenever I do find this odd behavior, the performance preferences window will indicate that CS5 is not detecting the GPU. Whenever this happens, if I open up CS4 and check the same performance preference in it, the GPU is detected. I can have the two preference windows side by side on the screen in fact, CS4 sees the GPU and CS5 does not. The counter-indication is that sometimes CS5 will work properly and the preferences window still shows that the GPU has not been detected. Having said that, I can add that if I have opened up CS5, and it has found the GPU, and I have set it into, say, Basic mode, and then later found CS5 messing up, and I go back and check the performance preferences again, the GPU has always been lost. So, CS5 can mess up windows with or without the GPU detected and active; but when if it started with the GPU present, it will show up as lost after the weird behavior starts.
    To add one more observation, I have had Macs and other computers with failing GPUs. This computer is showing none of the typical signs of that. Every other program seems to be working just fine, and I have a lot of these, many graphics intensive; e.g., Corel Painter 11, Parallels v6 running Windows 7, PS CS4, Lightroom v3, Aperture v3, and so on. It is just CS5 that is messing up.
    I could load up this message with screen shots of all this nonsense, but I'm not sure what that would add to the strange tale, other than I'm not pulling your legs. I am, however, pulling out my own hair.
    As I stated before, this began quite suddenly a couple of weeks ago, early Feb 2011. My best guess as to cause is some combination of incompatible updates between CS5, OSX, and maybe some plugin or other. I found unusual behavior with onOne's FocalPoint v2 last year after Apple updated GPU drivers in some OSX update, and cratered that program. It took onOne a month or two to fix that. I have CS5 on a laptop with the same OSX version, and on that I haven't seen these issues; but then, I haven't been using it as intensely over there. Also, that machine has different CPU and GPU models than this iMac.
    So, to the community: is anybody else starting to see this odd stuff? Am I alone?

    Here's the reason I say that the same plugins exist for both CS4 & CS5. Sometime last year, the internal hard drive on this computer died (as they so often do), and it was replaced under the Apple care warranty. As a consequence, I decided to rebuild the OS and applications from scratch and bring back my user files from backup. I among other things, I reinstalled all of CS4 as well as CS5 (and I had to put CS3 back too for reasons having to do with printing calibration images for Quad Tone RIP). Then, I went to reinstall the plugins that I needed. I use Nik Software, onOne, Portrait Professional and various Topaz plugins. To my recollection, most of these install in PS CS3, CS4, CS5, Aperture, and Lightroom. In short, it is not that I've copied or moved plugin folders from one application folder to another, just that the installers automatically detect the presence of the various applications and put the various plugins into each, as appropriate.
    The only 32-bit plugins that I have that don't fit into this category are from Vincent Versace. He provides special versions of certain Nik plugins (Tonal Contrast, Contrast Only, etc) that function with some Acme Educational extensions for performing B&W conversion, sharpening, blah blah blah. These plugins are only 32-bit and the extensions are only CS5 compatible. I've installed these ones only into CS5; so, you've got me. OTOH, I've had these from Vincent as soon as CS5 was available; and they've worked so far without problems. Perhaps I should just edit the extensions so I could use the latest plugins direct from Nik instead of the Versace special editions...
    I've checked fonts and repaired permissions. I am presently going through the rather tedious process of disabling plugins and extensions to see if anything yields consistent results. The rather random arrival of the strangeness makes ensuring that a change is really having an effect more difficult to validate, as you will appreciate.
    I apologize for my long-winded original post. I add all of the detail so that anyone who'd experienced similar strange behaviors might properly pattern-match what they were seeing. On the one hand, in finding the cause of a problem, you look for what's changed; and theoretically nothing is new. On the other hand, there's always so much changing behind the scenes with automatic updates of this, that, and the other thing that it's impossible to make the claim that nothing's new. 

  • Strange Permissions Behavior with Public/Private Drop Box

    Strange Permissions Behavior with Non-Course Drop Box
    In an effort to promote iTunes U on campus this semester (and to get people working with audio and video more) we're having a contest in which people can submit personal or group audio/video projects.
    This being an iTunes promo, we intend for students to submit their contributions via a drop box.
    To that end, I began experimenting with drop boxes in iTunes U, which I haven't done much of previously. I've created a course called "iTunes U Drop Box Test" under "Campus Events". Within that, I have two tabs: "Featured Submissions" and "Dropbox". My goal with this drop box was to allow faculty, students and college folks the ability to use the drop box ("college" being a role I've defined for those who don't fit into the faculty/student roles).
    When I first started experimenting, access to the "iTunes U Drop Box Test" course looked like this:
    --- Credentials (System) ---
    Edit: Administrator@urn:mace:itunesu.com:sites:lafayette.edu
    Download: Authenticated@urn:mace:itunesu.com:sites:lafayette.edu
    Download: Unauthenticated@urn:mace:itunesu.com:sites:lafayette.edu
    Download: All@urn:mace:itunesu.com:sites:lafayette.edu
    --- Credentials ----
    Download: College@urn:mace:lafayette.edu
    Download: Instructor@urn:mace:lafayette.edu
    Download: Instructor@urn:mace:lafayette.edu:classes:${IDENTIFIER}
    Download: Student@urn:mace:lafayette.edu
    Download: Student@urn:mace:lafayette.edu:classes:${IDENTIFIER}
    For the "Featured" Submissions tab, I gave the non-system credentials the "download" right, and for the "Dropbox" tab I gave the non-system credentials the "dropbox" right.
    My understanding of this setup is that everyone should have had the ability to view the course and the contents of the "Featured Submissions" tab and that those in the College/Instructor/Student roles would be able to upload files via the "Dropbox" tab ... but not see the contents of said tab after the files were uploaded (aside from any files they uploaded themselves).
    This is not the behavior we saw however. While the College/Instructor/Student roles could upload files to the dropbox, everyone (including the unauthenticated public) was able to see all of the contents of the dropbox.
    The only way I could get this to work as advertised was to change all of the system credentials save the "Administrator" to "No Access":
    --- Credentials (System) ---
    Edit: Administrator@urn:mace:itunesu.com:sites:lafayette.edu
    No Access: Authenticated@urn:mace:itunesu.com:sites:lafayette.edu
    No Access: Unauthenticated@urn:mace:itunesu.com:sites:lafayette.edu
    No Access: All@urn:mace:itunesu.com:sites:lafayette.edu
    Once I did this, everything worked as advertised: College/Instructor/Student roles could upload tracks, and the "Dropbox" tab would only display tracks they uploaded.
    So my question is ... is this the correct behavior for the drop box? It looks like when the system credentials are in play, they're simply overriding whatever the normal "view" rule is for the drop box, which doesn't seem right.

    Your current configuration where things work as you wanted does seem correct to me. You are not using any System Credentials to accomplish the functionality and that's fine.
    Here's some more info to clarify how / why this is working for you and why you had to set "No Access" for the System Credentials:
    The System Credential "Authenticated@..." is going to get assigned to any user that goes through your transfer script. Even if you transfer script assigns no credentials to a user, upon entering iTunes U they will have at least 1 - the "Authenticated@..." credential. Therefore, unless you block access using "No Access", any user that passes through your transfer script is going to be able to access the area in question.
    When you change values for "Unauthenticated@..." or "All@..." you are defining what someone that DOES NOT pass through your transfer script can do. You want both of those to be "No Access" at the top level of your site if you do not want unauthenticated visitors.
    The distinction between "Unauthenticated" and "All" is that "All" applies to all users whether they pass through the transfer script or not.
    Here's another way to remember things:
    User passes through your transfer script, iTunes U automatically assigns:
    Authenticated@....
    All@....
    User does not pass through your transfer script and instead access your iTunes U site through derivable URL*, they get assigned:
    Unauthenticated@....
    All@....
    *The derivable URL for a site is: http://deimos.apple.com/WebObjects/Core.woa/Browse/site-domain-name
      Mac OS X (10.4.6)  

  • Get default audit field behavior with an external datasource

    Others have posted and blogged extensively about creating a robust audit trail for LightSwitch. However, if you are looking to achieve the default behavior with an external datasource, you could simply add the fields to your database
    and write code in every entity's Inserting() and Updating() method.  However, if you have many tables in your app this can be a lot of work.  Here is a very easy way to DRY this up. 
    1. Add the audit fields to your tables
    - CreatedBy
    - DateCreated
    - UpdatedBy
    - DateUpdated
    2. Use this code in the DataService class for your datasource.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.LightSwitch;
    using Microsoft.LightSwitch.Security.Server;
    namespace LightSwitchApplication
    public partial class ApplicationDataService
    partial void SaveChanges_Executing()
    EntityChangeSet changes = this.Details.GetChanges();
    IReadOnlyCollection<IEntityObject> addedEntities = changes.AddedEntities;
    IReadOnlyCollection<IEntityObject> modifiedEntities = changes.ModifiedEntities;
    if (addedEntities.Any())
    foreach (IEntityObject entity in addedEntities)
    InsertAuditFields(entity);
    if (modifiedEntities.Any())
    foreach (IEntityObject entity in modifiedEntities)
    UpdateAuditFields(entity);
    private void InsertAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["CreatedBy"].Value = userName;
    entity.Details.Properties["DateCreated"].Value = currentDateTime;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;
    private void UpdateAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;
    Hopefully this helps someone.

    This version will check whether the table has the audit properties, thus allowing you to opt in.  Paul's solution is going to be better in the long run because it checks at compile time.  This was meant to be a quick way to get the default behavior. 
    This is not a substitute for a full audit capability (see Paul's blog) if that is your requirement.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.LightSwitch;
    using Microsoft.LightSwitch.Security.Server;
    using Microsoft.LightSwitch.Details;
    namespace LightSwitchApplication
    public partial class ApplicationDataService
    partial void SaveChanges_Executing()
    EntityChangeSet changes = this.Details.GetChanges();
    IReadOnlyCollection<IEntityObject> addedEntities = changes.AddedEntities;
    IReadOnlyCollection<IEntityObject> modifiedEntities = changes.ModifiedEntities;
    if (addedEntities.Any())
    foreach (IEntityObject entity in addedEntities)
    if (AuditProperties(entity))
    InsertAuditFields(entity);
    if (modifiedEntities.Any())
    foreach (IEntityObject entity in modifiedEntities)
    if (AuditProperties(entity))
    UpdateAuditFields(entity);
    private bool AuditProperties(IEntityObject entity)
    bool hasAuditProperties = true;
    bool createdBy = entity.Details.Properties.Contains("CreatedBy");
    bool dateCreated = entity.Details.Properties.Contains("DateCreated");
    bool updatedBy = entity.Details.Properties.Contains("UpdatedBy");
    bool dateUpdated = entity.Details.Properties.Contains("DateUpdated");
    bool[] checkForAuditProperties = new bool[]
    createdBy,
    dateCreated,
    updatedBy,
    dateUpdated
    if (checkForAuditProperties.Any(a => a == false))
    hasAuditProperties = false;
    return hasAuditProperties;
    private void InsertAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["CreatedBy"].Value = userName;
    entity.Details.Properties["DateCreated"].Value = currentDateTime;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;
    private void UpdateAuditFields(IEntityObject entity)
    string userName = this.Application.User.FullName;
    DateTimeOffset currentDateTime = DateTimeOffset.Now;
    entity.Details.Properties["UpdatedBy"].Value = userName;
    entity.Details.Properties["DateUpdated"].Value = currentDateTime;

Maybe you are looking for