{"issue":{"milestone":null,"user":{"id":305837,"login":"lydiam","url":"https://api.github.com/users/lydiam","avatar_url":"https://secure.gravatar.com/avatar/7bd67e58e011c25ba9c0d62757386a27?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7bd67e58e011c25ba9c0d62757386a27"},"created_at":"2011-12-15T22:33:38Z","title":"enhancement: is it possible to break out \"invalid\" SIP reject messages?","updated_at":"2011-12-16T19:58:45Z","labels":[],"state":"open","id":2573565,"html_url":"https://github.com/daitss/core/issues/606","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Currently if GUI submission can't recognize submitted data as a SIP, the error message is fairly broad and difficult to troubleshoot:\r\n\r\n\"cannot extract sip archive, must be a valid tar or zip file containing directory with sip files\"\r\n\r\nWhat are the exact cases covered here, and can we distinguish between them with more specific error messages?\r\n\r\nI'm guessing that possible cases are:\r\n\r\n1.  The data is neither a tar file nor a zip file.  Recommended message: \"Submitted data is not a tar file or zip file.\"\r\n2.  The data is a tarfile or a zip file, but it's not a tarred or zipped *directory*.  Recommended message:  \"Submitted data is not a directory/folder. The top-level SIP directory/folder and its contents must be tarred or zipped prior to submission.\" \r\n\r\nSeveral Affiliates have created zip files from the contents of a SIP but have not zipped the top-level directory (in fact, almost all new users assume that they should zip only the contents of the SIP directory because initially they don't fully understand that the directory/folder is part of the SIP.  The reject messages we currently provide are not sufficient to inform new users of the exact problem with their data, and unless I can see the data they're attempting to submit I can't tell from the error message what the problem might be.\r\n\r\nAre there any other cases that GUI submission checks?  Can a file have a .zip extension yet not be zipped with the correct algorithm?  If so, is there a way to detect that?\r\n\r\nThe above recommendations would need to be reviewed by the Affiliates to determine if they're understandable.","number":606,"url":"https://api.github.com/repos/daitss/core/issues/606","comments":3,"assignee":null},"comment":{"user":{"id":305837,"login":"lydiam","url":"https://api.github.com/users/lydiam","avatar_url":"https://secure.gravatar.com/avatar/7bd67e58e011c25ba9c0d62757386a27?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7bd67e58e011c25ba9c0d62757386a27"},"created_at":"2011-12-16T19:58:45Z","updated_at":"2011-12-16T19:58:45Z","id":3181876,"body":"Also: please clarify what \"3.) Package not in top level directory\" means:  would that be a top-level directory that contains a subdirectory that is a valid SIP?  I'm trying to create a sample package for this and I'm not sure what it would look like and what exactly we're testing for.  Can the top-level directory have other contents besides a subdirectory?  I'm just wondering how this case would differ from a SIP with no descriptor at the top-level.","url":"https://api.github.com/repos/daitss/core/issues/comments/3181876"},"action":"created"}