[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-02-08 Thread Ravi Singareddy (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15858919#comment-15858919
 ] 

Ravi Singareddy commented on SLING-6448:


Robert Munteanu and Oliver Lietz, We are using Sling.war in our custom web 
application. We are removing all test references from launchpad/testing-war and 
using this war file. If it works, it will be cleaner for us build war from 
launchpad/builder.

> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {elapsed microseconds,timer 
> name
> } optional message
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path=/content/landin
> g.html, selectorString=null, extension=html, suf
> fix=null
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 TIMER_END{143,handleError:status=405} Using handler 
> org.apache.sling.ser
> vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>5111 TIMER_END{5109,Request Processing} Dumping 
> SlingRequestProgressTracker E
> ntries
> 
> 
> ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit 
> Server
>  VM 1.8.0_102, Windows 8 6.2 amd64)
> 
> 
> ___
> But If start sling using executable jar able to upload the file using curl.
> java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
> target\org.apache.sling.launchpad-9-SNAPSHOT.jar start
> Thanks
> Ravi



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-02-04 Thread Ravi Singareddy (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15853157#comment-15853157
 ] 

Ravi Singareddy commented on SLING-6448:


Starting Launchpad using jar file
started sling launchpad using following command
>> java –jar target\org.apache.sling.launchpad-9-SNAPSHOT.jar 
>> Logged into http://localhost:8080/system/console/bundles  
Bundle information: 145 bundles in total - all 145 bundles active
_

Starting Launchpad using war file
started sling launchpad using following command
>> mvn jetty:run-war 
>> Logged into http://localhost:8080/system/console/bundles  
Bundle information: 142 bundles in total, 126 bundles active, 4 active 
fragments, 12 bundles installed
Looks like 12 bundles are in installed state and are not active.

87   
Apache Geronimo Bundles: jstl-1.2org.apache.geronimo.bundles.jstl
1.2.0.1 Installed

130  
Apache Sling JSP Tag Libraryorg.apache.sling.scripting.jsp.taglib
2.2.6   sling   Installed

134  
Apache Sling Scripting HTL JavaScript Use 
Providerorg.apache.sling.scripting.sightly.js.provider
1.0.18  sling   Installed
 
 
 
136  
Apache Sling Scripting HTL Read-Eval-Print Loop 
Environmentorg.apache.sling.scripting.sightly.repl
1.0.4   sling   Installed
 
 
 
135  
Apache Sling Scripting HTL Sling Models Use 
Providerorg.apache.sling.scripting.sightly.models.provider
1.0.6   sling   Installed   

129  
Apache Sling Scripting JSP Supportorg.apache.sling.scripting.jsp
2.2.7.SNAPSHOT  sling   Installed

141  
Apache Sling XSS Protection Bundleorg.apache.sling.xss
1.0.16  sling   Installed

73   
Composum Core Consolecom.composum.core.console
1.6.0   composum,core   Installed


72   
Composum Core Sling APIcom.composum.core.commons
1.6.0   composum,core   Installed
 
 
 
75   
Composum Package Managercom.composum.core.pckgmgr
1.6.0   composum,core   Installed
 
 
 
76   
Composum User Managmenentcom.composum.core.usermgnt
1.6.0   composum,core   Installed   

Because 12 Bundles are in installed state, lauchpad running using war is not 
working properly.



> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {elapsed microseconds,timer 
> name
> } optional message
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path=/content/landin
> g.html, selectorString=null, extension=html, suf
> fix=null
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 

[jira] [Created] (SLING-6505) Apache Sling Sample fling is not registering(not active) with karaf

2017-02-02 Thread Ravi Singareddy (JIRA)
Ravi Singareddy created SLING-6505:
--

 Summary: Apache Sling Sample fling is not registering(not active) 
with karaf
 Key: SLING-6505
 URL: https://issues.apache.org/jira/browse/SLING-6505
 Project: Sling
  Issue Type: Bug
  Components: Samples
Affects Versions: Samples Fling 0.0.2
 Environment: Windows, java 1.8
Reporter: Ravi Singareddy
 Fix For: Samples Fling 0.0.2


Compiled and installed Fling sample using
>mvn clean install -P karaf@localhost
Not able to open web page
 http://localhost:8181/fling.html

open installed Apache Sling Fling Sample in 
http://localhost:8181/system/console/install

showing following errors in Imported Packages:

Imported Packages   javax.annotation from org.apache.felix.framework (0)
javax.jcr,version=[2.0,3) -- Cannot be resolved
javax.mail,version=[1.4,2) from javax.mail (9)
javax.mail.internet,version=[1.4,2) from javax.mail (9)
javax.net from org.apache.felix.framework (0)
javax.net.ssl from org.apache.felix.framework (0)
javax.servlet,version=[3.1,4) from javax.servlet-api (10)
org.apache.jackrabbit.api.security.user,version=[2.4,3) -- Cannot be resolved
org.apache.sling.api,version=[2.3,3) -- Cannot be resolved
org.apache.sling.api.request,version=[2.4,3) -- Cannot be resolved
org.apache.sling.api.resource,version=[2.9,3) -- Cannot be resolved
org.apache.sling.api.servlets,version=[2.1,3) -- Cannot be resolved
org.apache.sling.api.wrappers,version=[2.5,3) -- Cannot be resolved
org.apache.sling.commons.messaging,version=[1.0,2) -- Cannot be resolved
org.apache.sling.jcr.base.util,version=[2.1,3) -- Cannot be resolved
org.apache.sling.models.annotations,version=[1.2,2) -- Cannot be resolved
org.apache.sling.models.annotations.injectorspecific,version=[1.1,2) -- Cannot 
be resolved
org.apache.sling.query,version=[3.0,4) -- Cannot be resolved
org.apache.sling.samples.fling from org.apache.sling.samples.fling (92)
org.apache.sling.samples.fling.form from org.apache.sling.samples.fling (92)
org.apache.sling.scripting.thymeleaf,version=[1.0,2) -- Cannot be resolved
org.apache.sling.validation,version=[1.0,2) -- Cannot be resolved
org.apache.sling.validation.model,version=[1.0,2) -- Cannot be resolved
org.apache.sling.validation.spi,version=[1.0,2) -- Cannot be resolved
org.osgi.framework,version=[1.8,2) from org.apache.felix.framework (0)
org.slf4j,version=[1.7,2) from org.ops4j.pax.logging.pax-logging-api (3)
org.thymeleaf,version=[3.0,4) -- Cannot be resolved
org.thymeleaf.context,version=[3.0,4) -- Cannot be resolved

I have also tried installing following items in karaf
karaf@root()> feature:repo-add 
mvn:org.apache.sling/org.apache.sling.launchpad.karaf-features/0.1.1-SNAPSHOT/xml/features
Successful

karaf@root()> feature:install sling-launchpad-oak-tar
giving following error:

Error executing command: Unable to resolve root: missing requirement [root] 
osgi.identity; osgi.identity=sling-launchpad-oak-tar; type=karaf.feature; 
version="[0.1.1.SNAPSHOT,0.1.1.SNAPSHOT]"; 
filter:="(&(osgi.identity=sling-launchpad-oak-tar)(type=karaf.feature)(version>=0.1.1.SNAPSHOT)(version<=0.1.1.SNAPSHOT))"
 [caused by: Unable to resolve sling-launchpad-oak-tar/0.1.1.SNAPSHOT: missing 
requirement [sling-launchpad-oak-tar/0.1.1.SNAPSHOT] osgi.identity; 
osgi.identity=sling-launchpad-oak; type=karaf.feature; 
version="[0.1.1.SNAPSHOT,0.1.1.SNAPSHOT]" [caused by: Unable to resolve 
sling-launchpad-oak/0.1.1.SNAPSHOT: missing requirement 
[sling-launchpad-oak/0.1.1.SNAPSHOT] osgi.identity; 
osgi.identity=sling-jcr-oak; type=karaf.feature; 
version="[0.1.1.SNAPSHOT,0.1.1.SNAPSHOT]" [caused by: Unable to resolve 
sling-jcr-oak/0.1.1.SNAPSHOT: missing requirement 
[sling-jcr-oak/0.1.1.SNAPSHOT] osgi.identity; 
osgi.identity=org.apache.sling.jcr.oak.server; type=osgi.bundle; 
version="[1.0.1.SNAPSHOT,1.0.1.SNAPSHOT]"; resolution:=mandatory [caused by: 
Unable to resolve org.apache.sling.jcr.oak.server/1.0.1.SNAPSHOT: missing 
requirement [org.apache.sling.jcr.oak.server/1.0.1.SNAPSHOT] 
osgi.wiring.package; 
filter:="(&(osgi.wiring.package=org.apache.jackrabbit.commons.jackrabbit.authorization)(version>=2.12.0)(!(version>=3.0.0)))"

I have made following changes to features.xml in karaf features for building 
karaf - 
sling_code\karaf\org.apache.sling.karaf-features\src\main\feature\feature.xml

   
mvn:org.apache.sling/org.apache.sling.commons.classloader/1.3.9-SNAPSHOT
 
  
mvn:org.apache.sling/org.apache.sling.jcr.davex/1.3.9-SNAPSHOT
   
 
mvn:org.apache.sling/org.apache.sling.jcr.webdav/2.3.9-SNAPSHOT







--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-01-11 Thread Ravi Singareddy (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15818124#comment-15818124
 ] 

Ravi Singareddy commented on SLING-6448:


Added jetty dependency in the pom.xml as follows: Build requires jetty plugin 
to run war file.

.
.
.



  org.eclipse.jetty
  jetty-maven-plugin
  9.3.12.v20160915


org.codehaus.mojo
ianal-maven-plugin



verify-legal-files




.
.
.
.

> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {elapsed microseconds,timer 
> name
> } optional message
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path=/content/landin
> g.html, selectorString=null, extension=html, suf
> fix=null
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 TIMER_END{143,handleError:status=405} Using handler 
> org.apache.sling.ser
> vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>5111 TIMER_END{5109,Request Processing} Dumping 
> SlingRequestProgressTracker E
> ntries
> 
> 
> ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit 
> Server
>  VM 1.8.0_102, Windows 8 6.2 amd64)
> 
> 
> ___
> But If start sling using executable jar able to upload the file using curl.
> java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
> target\org.apache.sling.launchpad-9-SNAPSHOT.jar start
> Thanks
> Ravi



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-01-10 Thread Ravi Singareddy (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15816842#comment-15816842
 ] 

Ravi Singareddy commented on SLING-6448:


>> mvn clean install
>> mvn jetty:run-war

> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {elapsed microseconds,timer 
> name
> } optional message
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path=/content/landin
> g.html, selectorString=null, extension=html, suf
> fix=null
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 TIMER_END{143,handleError:status=405} Using handler 
> org.apache.sling.ser
> vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>5111 TIMER_END{5109,Request Processing} Dumping 
> SlingRequestProgressTracker E
> ntries
> 
> 
> ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit 
> Server
>  VM 1.8.0_102, Windows 8 6.2 amd64)
> 
> 
> ___
> But If start sling using executable jar able to upload the file using curl.
> java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
> target\org.apache.sling.launchpad-9-SNAPSHOT.jar start
> Thanks
> Ravi



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-01-09 Thread Ravi Singareddy (JIRA)
Ravi Singareddy created SLING-6448:
--

 Summary: Not able to upload file when sling running as war file 
using curl
 Key: SLING-6448
 URL: https://issues.apache.org/jira/browse/SLING-6448
 Project: Sling
  Issue Type: Bug
  Components: Launchpad
Affects Versions: Launchpad Builder 9
 Environment: Windows, Apache 
Reporter: Ravi Singareddy


Here are steps followed
1) Checked out code from svn
svn co http://svn.apache.org/repos/asf/sling/trunk sling
2) cd sling
3) cd launchpad/builder
4) mvn --update-snapshots clean install
5) mvn jetty:run-war
(please note I have add jetty dependency in pom.xml to run above command)

I have used curl to upload file
>> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
>> test.html

is giving following error: PUT 405 Error

d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
http://localhost:8080/content/test.html --upload-file test.html



405 Method PUT not supported


Method PUT not supported (405)
The requested URL /content/test.html resulted in an error in Apache Sling
 Core Default Servlet.
Request Progress:

  0 TIMER_START{Request Processing}
  2 COMMENT timer_end format is {elapsed microseconds,timer name
} optional message
 10 LOG Method=PUT, PathInfo=null
 21 TIMER_START{handleSecurity}
   2418 TIMER_END{2395,handleSecurity} authenticator org.apache.sling.auth.core.
impl.SlingAuthenticator@68556f8e returns true
   3517 TIMER_START{ResourceResolution}
   3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
 Resource=NonExistingResource, path=/content/test.html
   3936 LOG Resource Path Info: SlingRequestPathInfo: path=/content/landin
g.html, selectorString=null, extension=html, suf
fix=null
   3936 TIMER_START{ServletResolution}
   3941 TIMER_START{resolveServlet(/content/test.html)}
   4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
he Sling Core Default Servlet
   4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
ervlet=Apache Sling Core Default Servlet
   4378 LOG Applying Requestfilters
   4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
   4392 LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTr
ackerLogFilter
   4397 LOG Applying Componentfilters
   4409 TIMER_START{Apache Sling Core Default Servlet#0}
   4425 LOG Applying Error filters
   4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
   4433 TIMER_START{handleError:status=405}
   4577 TIMER_END{143,handleError:status=405} Using handler org.apache.sling.ser
vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
   5111 TIMER_END{5109,Request Processing} Dumping SlingRequestProgressTracker E
ntries


ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit Server
 VM 1.8.0_102, Windows 8 6.2 amd64)


___

But If start sling using executable jar able to upload the file using curl.
java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
target\org.apache.sling.launchpad-9-SNAPSHOT.jar start

Thanks

Ravi



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)