[jira] [Commented] (VFS-831) No such file or directory

2023-01-25 Thread Hasan Diwan (Jira)


[ 
https://issues.apache.org/jira/browse/VFS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17680847#comment-17680847
 ] 

Hasan Diwan commented on VFS-831:
-

The original issue was that the URL given -- sftp://
ec2-u...@hasan.d8u.us/var/tmp/reminders.json.xz - threw an Exception, so
the VM fell through to /var/tmp/reminders.json.xz, which was then not
found, the reason being that the file exists at the remote location --
shown by the ls listing. The jscp dependency isn't automatically fetched --
I added it to my pom manually, ditto commons-lang3, The JVM is now throwing
problem with NumberUtils' constants. -- H

On Wed, 25 Jan 2023 at 16:43, Bernd Eckenfels (Jira) 



-- 
OpenPGP: https://hasan.d8u.us/openpgp.asc
If you wish to request my time, please do so using
*bit.ly/hd1AppointmentRequest
*.
Si vous voudrais faire connnaisance, allez a *bit.ly/hd1AppointmentRequest
*.

Sent
from my mobile device
Envoye de mon portable


> No such file or directory
> -
>
> Key: VFS-831
> URL: https://issues.apache.org/jira/browse/VFS-831
> Project: Commons VFS
>  Issue Type: Bug
>Affects Versions: 2.9.0
> Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
>Reporter: Hasan Diwan
>Priority: Blocker
> Attachments: id_ecdsa.pub
>
>
> % ls -l /var/tmp/reminders.json.xz
> -rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
> % hostname
> FileContent content = 
> manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
> throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
> "file:///var/tmp/reminders.json.xz" because it is not a file."
> When I try accessing it with "sftp", it gives:
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI 
> "sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz; because it is a 
> relative path, and no base URI was provided.
> It gives the same if I eliminate the double slash in the URL as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (VFS-831) No such file or directory

2023-01-25 Thread Bernd Eckenfels (Jira)


[ 
https://issues.apache.org/jira/browse/VFS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17680845#comment-17680845
 ] 

Bernd Eckenfels commented on VFS-831:
-

I am somewhat confused, how is a FileNotFound error related to maven 
dependencies?

> No such file or directory
> -
>
> Key: VFS-831
> URL: https://issues.apache.org/jira/browse/VFS-831
> Project: Commons VFS
>  Issue Type: Bug
>Affects Versions: 2.9.0
> Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
>Reporter: Hasan Diwan
>Priority: Blocker
> Attachments: id_ecdsa.pub
>
>
> % ls -l /var/tmp/reminders.json.xz
> -rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
> % hostname
> FileContent content = 
> manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
> throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
> "file:///var/tmp/reminders.json.xz" because it is not a file."
> When I try accessing it with "sftp", it gives:
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI 
> "sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz; because it is a 
> relative path, and no base URI was provided.
> It gives the same if I eliminate the double slash in the URL as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (VFS-831) No such file or directory

2023-01-25 Thread Hasan Diwan (Jira)


[ 
https://issues.apache.org/jira/browse/VFS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17680843#comment-17680843
 ] 

Hasan Diwan commented on VFS-831:
-

Gary,
Your first comment asked for a "failing test", my response provided one. 

I then did a deeper dive into the issue, reporting my findings in my 3rd. 
comment. Now., you have ignored everything in my 3rd comment, other than the 
pom.xml file, which is, IMO, completely irrelevant to VFS. What I am concluding 
is that VFS' pom.xml is missing (at least 2) dependencies -- which I have added 
to my code -- and may have further issues. 

Lastly, the issue tracker linked to from 
[github](https://github.com/apache/commons-vfs) is the [one I've 
used](https://issues.apache.org/jira/browse/VFS).

> No such file or directory
> -
>
> Key: VFS-831
> URL: https://issues.apache.org/jira/browse/VFS-831
> Project: Commons VFS
>  Issue Type: Bug
>Affects Versions: 2.9.0
> Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
>Reporter: Hasan Diwan
>Priority: Blocker
> Attachments: id_ecdsa.pub
>
>
> % ls -l /var/tmp/reminders.json.xz
> -rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
> % hostname
> FileContent content = 
> manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
> throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
> "file:///var/tmp/reminders.json.xz" because it is not a file."
> When I try accessing it with "sftp", it gives:
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI 
> "sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz; because it is a 
> relative path, and no base URI was provided.
> It gives the same if I eliminate the double slash in the URL as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (VFS-831) No such file or directory

2023-01-25 Thread Gary D. Gregory (Jira)


[ 
https://issues.apache.org/jira/browse/VFS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17680839#comment-17680839
 ] 

Gary D. Gregory commented on VFS-831:
-

You create a PR on GitHub with a failing test, then you would not have to deal 
with editing whatever pom.xml you are now editing. 

> No such file or directory
> -
>
> Key: VFS-831
> URL: https://issues.apache.org/jira/browse/VFS-831
> Project: Commons VFS
>  Issue Type: Bug
>Affects Versions: 2.9.0
> Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
>Reporter: Hasan Diwan
>Priority: Blocker
> Attachments: id_ecdsa.pub
>
>
> % ls -l /var/tmp/reminders.json.xz
> -rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
> % hostname
> FileContent content = 
> manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
> throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
> "file:///var/tmp/reminders.json.xz" because it is not a file."
> When I try accessing it with "sftp", it gives:
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI 
> "sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz; because it is a 
> relative path, and no base URI was provided.
> It gives the same if I eliminate the double slash in the URL as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (VFS-831) No such file or directory

2023-01-25 Thread Hasan Diwan (Jira)


[ 
https://issues.apache.org/jira/browse/VFS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17680837#comment-17680837
 ] 

Hasan Diwan commented on VFS-831:
-

A little more investigation showed I didn't have Jcsh in pom.xml. Inserted it, 
the same error message lead me to add commons-lang3 3.12, overriding the 
managed version 3.10, as it was complaining about DurationUtils. Added this, 
and it's complaining about LONG_INT_MIN_VALUE. This appears to be indicating 
NumberUtils.LONG_INT_MIN_VALUE, which is shown as being [equivalent to 
Long.valueOf(Integer.MAX_VALUE)](https://github.com/apache/commons-lang/blob/master/src/main/java/org/apache/commons/lang3/math/NumberUtils.java).
 And, now I'm stuck and am giving up for today.

> No such file or directory
> -
>
> Key: VFS-831
> URL: https://issues.apache.org/jira/browse/VFS-831
> Project: Commons VFS
>  Issue Type: Bug
>Affects Versions: 2.9.0
> Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
>Reporter: Hasan Diwan
>Priority: Blocker
> Attachments: id_ecdsa.pub
>
>
> % ls -l /var/tmp/reminders.json.xz
> -rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
> % hostname
> FileContent content = 
> manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
> throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
> "file:///var/tmp/reminders.json.xz" because it is not a file."
> When I try accessing it with "sftp", it gives:
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI 
> "sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz; because it is a 
> relative path, and no base URI was provided.
> It gives the same if I eliminate the double slash in the URL as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (VFS-831) No such file or directory

2023-01-25 Thread Hasan Diwan (Jira)


 [ 
https://issues.apache.org/jira/browse/VFS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hasan Diwan updated VFS-831:

Attachment: id_ecdsa.pub

> No such file or directory
> -
>
> Key: VFS-831
> URL: https://issues.apache.org/jira/browse/VFS-831
> Project: Commons VFS
>  Issue Type: Bug
>Affects Versions: 2.9.0
> Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
>Reporter: Hasan Diwan
>Priority: Blocker
> Attachments: id_ecdsa.pub
>
>
> % ls -l /var/tmp/reminders.json.xz
> -rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
> % hostname
> FileContent content = 
> manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
> throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
> "file:///var/tmp/reminders.json.xz" because it is not a file."
> When I try accessing it with "sftp", it gives:
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI 
> "sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz; because it is a 
> relative path, and no base URI was provided.
> It gives the same if I eliminate the double slash in the URL as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (VFS-831) No such file or directory

2023-01-25 Thread Hasan Diwan (Jira)


[ 
https://issues.apache.org/jira/browse/VFS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17680823#comment-17680823
 ] 

Hasan Diwan commented on VFS-831:
-

Ok... test enclosed:

@Test
public void testRetrieve() {
FileContent content = null;
try {
.  content = 
manager.resolveFile("sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz;).getContent();
} catch (org.apache.commons.vfs2.FileSystemException e) {
 content = manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
}

Assert.assertNotNull("Retrieval from remote falled!", content);
}

The relevant public key is attached to this comment.


> No such file or directory
> -
>
> Key: VFS-831
> URL: https://issues.apache.org/jira/browse/VFS-831
> Project: Commons VFS
>  Issue Type: Bug
>Affects Versions: 2.9.0
> Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
>Reporter: Hasan Diwan
>Priority: Blocker
> Attachments: id_ecdsa.pub
>
>
> % ls -l /var/tmp/reminders.json.xz
> -rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
> % hostname
> FileContent content = 
> manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
> throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
> "file:///var/tmp/reminders.json.xz" because it is not a file."
> When I try accessing it with "sftp", it gives:
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI 
> "sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz; because it is a 
> relative path, and no base URI was provided.
> It gives the same if I eliminate the double slash in the URL as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (VFS-831) No such file or directory

2023-01-25 Thread Gary D. Gregory (Jira)


[ 
https://issues.apache.org/jira/browse/VFS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17680796#comment-17680796
 ] 

Gary D. Gregory commented on VFS-831:
-

I'm not sure what you expect we can do without a reproducible use case or 
better yet, a unit test.

> No such file or directory
> -
>
> Key: VFS-831
> URL: https://issues.apache.org/jira/browse/VFS-831
> Project: Commons VFS
>  Issue Type: Bug
>Affects Versions: 2.9.0
> Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
>Reporter: Hasan Diwan
>Priority: Blocker
>
> % ls -l /var/tmp/reminders.json.xz
> -rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
> % hostname
> FileContent content = 
> manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
> throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
> "file:///var/tmp/reminders.json.xz" because it is not a file."
> When I try accessing it with "sftp", it gives:
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI 
> "sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz; because it is a 
> relative path, and no base URI was provided.
> It gives the same if I eliminate the double slash in the URL as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (VFS-831) No such file or directory

2023-01-25 Thread Hasan Diwan (Jira)


 [ 
https://issues.apache.org/jira/browse/VFS-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hasan Diwan updated VFS-831:

Description: 
% ls -l /var/tmp/reminders.json.xz
-rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
% hostname
FileContent content = 
manager.resolveFile("/var/tmp/reminders.json.xz").getContent();

throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
"file:///var/tmp/reminders.json.xz" because it is not a file."

When I try accessing it with "sftp", it gives:

org.apache.commons.vfs2.FileSystemException: Could not find file with URI 
"sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz; because it is a 
relative path, and no base URI was provided.

It gives the same if I eliminate the double slash in the URL as well.


  was:
% ls -l /var/tmp/reminders.json.xz
-rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
% hostname
FileContent content = 
manager.resolveFile("/var/tmp/reminders.json.xz").getContent();

throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
"file:///var/tmp/reminders.json.xz" because it is not a file."





> No such file or directory
> -
>
> Key: VFS-831
> URL: https://issues.apache.org/jira/browse/VFS-831
> Project: Commons VFS
>  Issue Type: Bug
>Affects Versions: 2.9.0
> Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
>Reporter: Hasan Diwan
>Priority: Blocker
>
> % ls -l /var/tmp/reminders.json.xz
> -rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
> % hostname
> FileContent content = 
> manager.resolveFile("/var/tmp/reminders.json.xz").getContent();
> throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
> "file:///var/tmp/reminders.json.xz" because it is not a file."
> When I try accessing it with "sftp", it gives:
> org.apache.commons.vfs2.FileSystemException: Could not find file with URI 
> "sftp://ec2-u...@hasan.d8u.us//var/tmp/reminders.json.xz; because it is a 
> relative path, and no base URI was provided.
> It gives the same if I eliminate the double slash in the URL as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (VFS-831) No such file or directory

2023-01-25 Thread Hasan Diwan (Jira)
Hasan Diwan created VFS-831:
---

 Summary: No such file or directory
 Key: VFS-831
 URL: https://issues.apache.org/jira/browse/VFS-831
 Project: Commons VFS
  Issue Type: Bug
Affects Versions: 2.9.0
 Environment: OpenJDK 14 FreeBSD 13.1-RELEASE
Reporter: Hasan Diwan


% ls -l /var/tmp/reminders.json.xz
-rw-r--r--  1 ec2-user  wheel  32 Jan 25 19:28 /var/tmp/reminders.json.xz
% hostname
FileContent content = 
manager.resolveFile("/var/tmp/reminders.json.xz").getContent();

throws an "org.apache.commons.vfs2.FileNotFoundException: Could not read from 
"file:///var/tmp/reminders.json.xz" because it is not a file."






--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Closed] (CONFIGURATION-828) Configuration file truncated then there isn't enough disk space for writing

2023-01-25 Thread Gary D. Gregory (Jira)


 [ 
https://issues.apache.org/jira/browse/CONFIGURATION-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory closed CONFIGURATION-828.
-
Resolution: Won't Do

Closing.

> Configuration file truncated then there isn't enough disk space for writing
> ---
>
> Key: CONFIGURATION-828
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-828
> Project: Commons Configuration
>  Issue Type: Bug
>  Components: File reloading
>Affects Versions: 2.8.0
>Reporter: Alla Gofman
>Priority: Major
>
> Please consider:
> 1) Not to create output stream to file in case there is not enough disk space 
> for writing it's content in case of save.
> 2) Enable to register some FileHandlerListener in this case to be notified on 
> such issue and can react by throwing some Exception. 
> The FileHandlerListener.saving(FileHandler handler) method not suitable, 
> because called after the file being already truncated.
> * Meanwhile, the workaround is to extend 
> DefaultFileSystem.getOutputStream(File file) method.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (CONFIGURATION-828) Configuration file truncated then there isn't enough disk space for writing

2023-01-25 Thread Michael Osipov (Jira)


[ 
https://issues.apache.org/jira/browse/CONFIGURATION-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17680492#comment-17680492
 ] 

Michael Osipov commented on CONFIGURATION-828:
--

Then let's close?

> Configuration file truncated then there isn't enough disk space for writing
> ---
>
> Key: CONFIGURATION-828
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-828
> Project: Commons Configuration
>  Issue Type: Bug
>  Components: File reloading
>Affects Versions: 2.8.0
>Reporter: Alla Gofman
>Priority: Major
>
> Please consider:
> 1) Not to create output stream to file in case there is not enough disk space 
> for writing it's content in case of save.
> 2) Enable to register some FileHandlerListener in this case to be notified on 
> such issue and can react by throwing some Exception. 
> The FileHandlerListener.saving(FileHandler handler) method not suitable, 
> because called after the file being already truncated.
> * Meanwhile, the workaround is to extend 
> DefaultFileSystem.getOutputStream(File file) method.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)