2015-12-05 14 views
5

1.0.0-beta-242 से Kotlin 1.0.0-beta-3595 को अपग्रेड करने के बाद निम्नलिखित कोड संकलन नहीं करता है:Kotlin वसंत सुरक्षा config

@Throws(Exception::class) 
override fun configure(http: HttpSecurity) 
{ 
    http.addFilterBefore(AuthenticationFilter(authenticationManager()), BasicAuthenticationFilter::class.java) 

    http.csrf().disable() 
      .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) 
      .and().authorizeRequests() 
      .antMatchers("/authorization/**", "/public/**").permitAll() 
      .antMatchers("/**").authenticated() 
} 

त्रुटि दी है:

SecurityAssembly.kt: (48, 65): Unresolved reference: permitAll 

संपादित करें:

के हस्ताक्षर परमिट सभी विधि, जो कि लोकप्रिय वसंत सुरक्षा ढांचे से है:

public ExpressionInterceptUrlRegistry permitAll() { 
    return access(permitAll); 
} 

क्या मुझे कुछ याद आ रहा है या यह एक बग है?

+1

क्या आप permitAll (उन्नयन से पहले) के लिए फ़ंक्शन हस्ताक्षर प्रदान कर सकते हैं? – mfulton26

+0

@ mfulton26 आह, हां बिल्कुल। जोड़ा thx। –

उत्तर

1

यह कोटलिन 1.0-बीटा 35 9 5 में एक बग था, और logged here रहा है।