-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[FEATURE REQUEST] Select correct user and navigate to the correct file when opening via deep link #4212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[FEATURE REQUEST] Select correct user and navigate to the correct file when opening via deep link #4212
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2b743a2
Changing account when file not found in first account.
manuelplazaspalacio 6abd0c4
Changing between users correctly.
manuelplazaspalacio 1954899
Getting path for OC10 files.
manuelplazaspalacio a828912
- Solving bugs when getting the file.
manuelplazaspalacio 0ec9ae9
- Added changelog file
manuelplazaspalacio 802ca09
Some CR changes
JuancaG05 22f1d54
Fix logs wording
JuancaG05 8747d22
Created new needed properties from PROPFIND response in meta endpoint…
JuancaG05 cb0a711
Adapted remote operations to new RemoteMetaFile
JuancaG05 7ee137b
Adapted service, remote datasource and repository to new OCMetaFile w…
JuancaG05 ef02d3d
Space ID doesn't have to be non-null necessarily (for oC10 it is null)
JuancaG05 6ab3ca6
Show just correct error message
JuancaG05 92f3f09
Calens changelog updated
JuancaG05 cbee224
Added unit tests for getMetaFile in OCRemoteFileDataSource
JuancaG05 5e9fefe
Fix for oC10 deep links to files located in the root folder
JuancaG05 642aa62
oC10 now uses meta endpoint to retrieve remote path, just like oCIS
JuancaG05 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Enhancement: Select user and navigate to file when opening via deep link | ||
|
||
Select the correct user owner of the deep link file, managing possible errors and navigating to the correct file. | ||
|
||
https://github.com/owncloud/android/issues/4194 | ||
https://github.com/owncloud/android/pull/4212 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
.../src/main/java/com/owncloud/android/lib/common/http/methods/webdav/properties/OCFileId.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* ownCloud Android Library is available under MIT license | ||
* Copyright (C) 2023 ownCloud GmbH. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS | ||
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN | ||
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
|
||
package com.owncloud.android.lib.common.http.methods.webdav.properties | ||
|
||
import at.bitfire.dav4jvm.Property | ||
import at.bitfire.dav4jvm.PropertyFactory | ||
import at.bitfire.dav4jvm.XmlUtils | ||
import org.xmlpull.v1.XmlPullParser | ||
|
||
data class OCFileId(val fileId: String) : Property { | ||
class Factory : PropertyFactory { | ||
override fun getName() = NAME | ||
|
||
override fun create(parser: XmlPullParser): OCFileId? { | ||
XmlUtils.readText(parser)?.let { | ||
return OCFileId(it) | ||
} | ||
return null | ||
} | ||
} | ||
|
||
companion object { | ||
@JvmField | ||
val NAME = Property.Name(XmlUtils.NS_OWNCLOUD, "fileid") | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
.../java/com/owncloud/android/lib/common/http/methods/webdav/properties/OCMetaPathForUser.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* ownCloud Android Library is available under MIT license | ||
* Copyright (C) 2023 ownCloud GmbH. | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS | ||
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN | ||
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
|
||
package com.owncloud.android.lib.common.http.methods.webdav.properties | ||
|
||
import at.bitfire.dav4jvm.Property | ||
import at.bitfire.dav4jvm.PropertyFactory | ||
import at.bitfire.dav4jvm.XmlUtils | ||
import org.xmlpull.v1.XmlPullParser | ||
|
||
data class OCMetaPathForUser(val path: String) : Property { | ||
class Factory : PropertyFactory { | ||
override fun getName() = NAME | ||
|
||
override fun create(parser: XmlPullParser): OCMetaPathForUser? { | ||
XmlUtils.readText(parser)?.let { | ||
return OCMetaPathForUser(it) | ||
} | ||
return null | ||
} | ||
} | ||
|
||
companion object { | ||
@JvmField | ||
val NAME = Property.Name(XmlUtils.NS_OWNCLOUD, "meta-path-for-user") | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.