In the example below it is expected that exception message is shown in
Artifactory with a orange bar and the message. I have used the
CancelException in other storage events such as beforeCreate and it works
fine.However, the below example with Artifactory Pro 2.6.6 simply shows in
the GUI as internal error and causes the user plugin to fail.    
beforePropertyCreate { item, name, values ->        echo "Before setting
property ${name} to ${values} on ${item.repoPath}"        //Reject property
names shorter than 4 chars        if (name?.length() < 4) {            throw
new CancelException("Property name is too short", 400)        }    }Is this
a bug?



--
View this message in context: 
http://forums.jfrog.org/User-Plugin-Storage-BeforePropertyCreate-CancelException-not-working-as-expected-tp7578511.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to